mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Inject scriptlets et al. in embedded frames
Not doing so prevented uBO Lite from properly defusing many anti-blockers.
This commit is contained in:
parent
13b6554ddb
commit
d4bd6f0251
1 changed files with 5 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ function registerProcedural(context, proceduralDetails) {
|
|||
context.toAdd.push({
|
||||
id: 'css-procedural',
|
||||
js,
|
||||
allFrames: true,
|
||||
matches,
|
||||
excludeMatches,
|
||||
runAt: 'document_end',
|
||||
|
|
@ -323,6 +324,7 @@ function registerDeclarative(context, declarativeDetails) {
|
|||
context.toAdd.push({
|
||||
id: 'css-declarative',
|
||||
js,
|
||||
allFrames: true,
|
||||
matches,
|
||||
excludeMatches,
|
||||
runAt: 'document_start',
|
||||
|
|
@ -396,6 +398,7 @@ function registerScriptlet(context, scriptletDetails) {
|
|||
context.toAdd.push({
|
||||
id,
|
||||
js: [ `/rulesets/scripting/scriptlet/${id}.js` ],
|
||||
allFrames: true,
|
||||
matches,
|
||||
excludeMatches,
|
||||
runAt: 'document_start',
|
||||
|
|
@ -460,6 +463,7 @@ function registerScriptletEntity(context) {
|
|||
context.toAdd.push({
|
||||
id: 'scriptlet.entity',
|
||||
js,
|
||||
allFrames: true,
|
||||
matches,
|
||||
excludeMatches,
|
||||
runAt: 'document_start',
|
||||
|
|
@ -664,6 +668,7 @@ function registerSpecificEntity(context) {
|
|||
context.toAdd.push({
|
||||
id: 'css-specific.entity',
|
||||
js,
|
||||
allFrames: true,
|
||||
matches,
|
||||
excludeMatches,
|
||||
runAt: 'document_start',
|
||||
|
|
|
|||
Loading…
Reference in a new issue