Skip to content

addEventListener-defuser.js #3970

@ghajini

Description

@ghajini

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

  • on uBO 1.70.1b3 when using tourister.ru##+js(aeld) it does not log following event listener
<script type="text/javascript">
document.addEventListener(
  'DOMContentLoaded',
  function () {
    jQuery('#stm7').html(
      '<div class="nt-menu-city-old-item"><a href="/go?item=tutu_head&url=https://c45.travelpayouts.com/click?shmarker=11675.head_menu&promo_id=1770&source_type=customlink&type=click&custom_url=https%3A%2F%2Fwww.tutu.ru%2Fpoezda%2F" rel="nofollow" target="_blank">ЖД билеты</a><a href="/go?item=busfor_head&url=https://unitiki.com?reference=www.tourister.ru" rel="nofollow" target="_blank">Автобусные билеты</a><a href="/go?item=raileurope_head&url=https://tp.media/r?marker=11675.top_menu&trs=63139&p=1935&u=https%3A%2F%2Fwww.raileurope.com&campaign_id=69" rel="nofollow" target="_blank">Автобусные и ЖД билеты по Европе</a><a href="/go?item=12go_head&url=https://c44.travelpayouts.com/click?shmarker=11675.top_menu&promo_id=1764&source_type=customlink&type=click&custom_url=https%3A%2F%2F12go.asia%2Fru" rel="nofollow" target="_blank">Автобусные и ЖД билеты по Азии</a></div>'
    );
  }
);
</script>
  • while tourister.ru##+js(aeld) works fine uBO 1.70, checked on firefox

A specific URL where the issue occurs.

https://www.tourister.ru/world/europe/russia/city/krasnoyarsk/snow/29583

Steps to Reproduce

  1. Add tourister.ru##+js(aeld) to my filters
  2. visit site
  3. check for logger

Expected behavior

logs corresponding event listener

Troubleshooting information

uBlock Origin: 1.70.1b3
Chromium: 146
filterset (summary):
 network: 172403
 cosmetic: 43426
 scriptlet: 35389
 html: 0
listset (total-discarded, last-updated):
 default:
  user-filters: 1382-3, never
  ublock-filters: 50680-158, 4h.5m Δ
  ublock-badware: 10595-30, 4h.5m Δ
  ublock-privacy: 3908-4, 4h.5m Δ
  ublock-unbreak: 2738-1, 4h.5m Δ
  ublock-quick-fixes: 452-0, 4h.5m Δ
  easylist: 97540-519, 4h.5m Δ
  easyprivacy: 55601-700, 4h.5m Δ
  urlhaus-1: 26370-10, 4h.5m
  plowe-0: 3515-4, 12d.22h.28m
filterset (user): [array of 1286 redacted]
userSettings:
 advancedUserEnabled: true
 userFiltersTrusted: true
hiddenSettings:
 filterAuthorMode: true
supportStats:
 allReadyAfter: 338 ms (selfie)
 maxAssetCacheWait: 90 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 19
 network:
  doubleclick.net: 3
  googletagmanager.com: 1
  luxcdn.com: 1
  mail.ru: 1
  maps.googleapis.com: 2
  newrelic.com: 2
  yadro.ru: 1
  yandex.ru: 4
  youtube.com: 4
 extended:
  ##+js(prevent-addEventListener)
  ##+js(set-attr, c-wiz[data-p] [data-query] a[target="_blank"][ro…
  ##+js(set-constant, rwt, noopFunc)
  ##+js(prevent-xhr, '/\/api\/stats\/atr\?.+?&rt=\d+\.\d+.+?&volum…
  ##+js(json-prune, entries.[-].command.reelWatchEndpoint.adClient…
  ##+js(json-prune-fetch-response, reelWatchSequenceResponse.entri…
  ##+js(set-constant, playerResponse.adPlacements, undefined)
  ##+js(set-constant, ytInitialPlayerResponse.adSlots, undefined)
  ##+js(set-constant, ytInitialPlayerResponse.adPlacements, undefi…
  ##+js(set-constant, ytInitialPlayerResponse.playerAds, undefined…
  ##+js(trusted-replace-fetch-response, '"adSlots"', '"no_ads"', /…
  ##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, JS…
  ##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, Re…
  ##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, fe…
  ##+js(remove-node-text, script, 'window,"fetch"')
  ##+js(trusted-replace-fetch-response, '"adSlots"', '"no_ads"', p…
  ##+js(trusted-replace-fetch-response, '"adPlacements"', '"no_ads…
  ##+js(trusted-replace-xhr-response, /"adPlacements.*?("adSlots"|…
  ##+js(trusted-replace-xhr-response, '/"adPlacements.*?([A-Z]"\}|…
  ##+js(json-prune-xhr-response, adPlacements adSlots playerRespon…
  ##+js(json-prune-fetch-response, adPlacements adSlots playerResp…
  ##+js(adjust-setTimeout, [native code], 17000, 0.001)
  ##+js(trusted-json-edit-xhr-request, '[?..userAgent=/adunit|chan…
  ##+js(trusted-json-edit-xhr-request, [?..userAgent*="channel"]..…
  ##+js(trusted-replace-node-text, script, (function serverContrac…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions