Skip to content

Support prevent-constructor scriptlet #4013

Description

@piquark6046

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

https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#-%EF%B8%8F-prevent-constructor

For example, Resolving uBlockOrigin/uAssets#33021 without every MutationObserver callback needs the scriptlet.

A specific URL where the issue occurs.

https://m.humoruniv.com/board/read.html?table=pds&number=1411273
https://github.com/uBlockOrigin/uBlock-discussions/discussions/916

Steps to Reproduce

Follow the attached issue's steps.

Expected behavior

Works well without an anti-adblock script or advert reinsertion.

Troubleshooting information

uBlock Origin: 1.70.0
Firefox: 152
filterset (summary):
 network: 172636
 cosmetic: 46000
 scriptlet: 33635
 html: 3415
listset (total-discarded, last-updated):
 added:
  KOR-1: 4766-101, 19h.26m
 default:
  user-filters: 0-0, never
  ublock-filters: 52401-71, now Δ
  ublock-badware: 11178-29, now Δ
  ublock-privacy: 4016-2, now Δ
  ublock-unbreak: 2822-1, now Δ
  ublock-quick-fixes: 475-13, now Δ
  easylist: 94897-165, now Δ
  easyprivacy: 55763-28, now Δ
  urlhaus-1: 27430-6, now
  plowe-0: 3511-1026, 5d.12h.30m
filterset (user): [empty]
userSettings:
 userFiltersTrusted: true
hiddenSettings: [none]
supportStats:
 allReadyAfter: 71 ms (selfie)
 maxAssetCacheWait: 37 ms
 cacheBackend: indexedDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions