-
Notifications
You must be signed in to change notification settings - Fork 81
Scriptlet PoC #3014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Scriptlet PoC #3014
Conversation
Don't forget to add an individual reviewer (in addition to those already added, this should create a task for them in Asana). |
Generated file outputs:Time updated: Thu, 24 Apr 2025 12:35:21 GMT legacytrackers-unprotected-temporary.txtv3/android-config.json (13 more)
--- v3/windows-config.json
+++ v3/windows-config.json
@@ -7156,8 +7156,237 @@
}
],
"settings": {}
},
+ "scriptlets": {
+ "state": "enabled",
+ "exceptions": [],
+ "settings": {
+ "scriptlets": [
+ {
+ "name": "setConstant",
+ "attrs": {
+ "property": "test",
+ "value": "no"
+ }
+ },
+ {
+ "name": "abortCurrentInlineScript",
+ "attrs": {
+ "property": "test",
+ "search": "test"
+ }
+ },
+ {
+ "name": "abortOnPropertyRead",
+ "attrs": {
+ "property": "test"
+ }
+ },
+ {
+ "name": "abortOnPropertyWrite",
+ "attrs": {
+ "property": "test"
+ }
+ }
+ ],
+ "conditionalChanges": [
+ {
+ "condition": {
+ "domain": "example.com"
+ },
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "trustedReplaceNodeText",
+ "attrs": {
+ "nodeName": "a",
+ "textMatch": "More information...",
+ "pattern": "...",
+ "replacement": "!",
+ "extraArgs": [
+ "verbose"
+ ]
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "trustedSetAttr",
+ "attrs": {
+ "selector": "a",
+ "attr": "href",
+ "value": "#"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setCookie",
+ "attrs": {
+ "domain": "example.com",
+ "name": "test",
+ "value": "accepted"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "removeCookie",
+ "attrs": {
+ "domain": "example.com",
+ "match": "bloop"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "condition": {
+ "domain": "xnxx.com"
+ },
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "preventAddEventListener",
+ "attrs": {
+ "typeSearch": "DOMContentLoaded",
+ "listenerSearch": "/dyn\\.ads|loadAdsDelayed/"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "xv.sda.pp.init",
+ "value": "noopFunc"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "condition": {
+ "domain": "pornhub.com"
+ },
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setCookie",
+ "attrs": {
+ "name": "views",
+ "value": "1"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "condition": [
+ {
+ "domain": "redtube.com"
+ },
+ {
+ "domain": "redtube.net"
+ }
+ ],
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "preventWindowOpen"
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "abortCurrentInlineScript",
+ "attrs": {
+ "property": "Object.defineProperty",
+ "search": "trafficjunky"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "page_params.holiday_promo",
+ "value": true
+ }
+ }
+ }
+ ]
+ },
+ {
+ "condition": {
+ "domain": "spankbang.com"
+ },
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "preventWindowOpen"
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "BJSShowUnder",
+ "value": {}
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "BJSShowUnder.bindTo",
+ "value": "noopFunc"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "BJSShowUnder.add",
+ "value": "noopFunc"
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ },
"sendFullPackageInstallSource": {
"state": "enabled",
"settings": {},
"exceptions": []
latestv4/android-config.json (13 more)
--- v4/windows-config.json
+++ v4/windows-config.json
@@ -6604,8 +6604,237 @@
}
],
"settings": {}
},
+ "scriptlets": {
+ "state": "enabled",
+ "exceptions": [],
+ "settings": {
+ "scriptlets": [
+ {
+ "name": "setConstant",
+ "attrs": {
+ "property": "test",
+ "value": "no"
+ }
+ },
+ {
+ "name": "abortCurrentInlineScript",
+ "attrs": {
+ "property": "test",
+ "search": "test"
+ }
+ },
+ {
+ "name": "abortOnPropertyRead",
+ "attrs": {
+ "property": "test"
+ }
+ },
+ {
+ "name": "abortOnPropertyWrite",
+ "attrs": {
+ "property": "test"
+ }
+ }
+ ],
+ "conditionalChanges": [
+ {
+ "condition": {
+ "domain": "example.com"
+ },
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "trustedReplaceNodeText",
+ "attrs": {
+ "nodeName": "a",
+ "textMatch": "More information...",
+ "pattern": "...",
+ "replacement": "!",
+ "extraArgs": [
+ "verbose"
+ ]
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "trustedSetAttr",
+ "attrs": {
+ "selector": "a",
+ "attr": "href",
+ "value": "#"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setCookie",
+ "attrs": {
+ "domain": "example.com",
+ "name": "test",
+ "value": "accepted"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "removeCookie",
+ "attrs": {
+ "domain": "example.com",
+ "match": "bloop"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "condition": {
+ "domain": "xnxx.com"
+ },
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "preventAddEventListener",
+ "attrs": {
+ "typeSearch": "DOMContentLoaded",
+ "listenerSearch": "/dyn\\.ads|loadAdsDelayed/"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "xv.sda.pp.init",
+ "value": "noopFunc"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "condition": {
+ "domain": "pornhub.com"
+ },
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setCookie",
+ "attrs": {
+ "name": "views",
+ "value": "1"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "condition": [
+ {
+ "domain": "redtube.com"
+ },
+ {
+ "domain": "redtube.net"
+ }
+ ],
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "preventWindowOpen"
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "abortCurrentInlineScript",
+ "attrs": {
+ "property": "Object.defineProperty",
+ "search": "trafficjunky"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "page_params.holiday_promo",
+ "value": true
+ }
+ }
+ }
+ ]
+ },
+ {
+ "condition": {
+ "domain": "spankbang.com"
+ },
+ "patchSettings": [
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "preventWindowOpen"
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "BJSShowUnder",
+ "value": {}
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "BJSShowUnder.bindTo",
+ "value": "noopFunc"
+ }
+ }
+ },
+ {
+ "op": "add",
+ "path": "/scriptlets/-",
+ "value": {
+ "name": "setConstant",
+ "attrs": {
+ "property": "BJSShowUnder.add",
+ "value": "noopFunc"
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ },
"sendFullPackageInstallSource": {
"state": "enabled",
"settings": {},
"exceptions": []
|
d96880d
to
0f56da5
Compare
4684e3e
to
5ec0703
Compare
bd16f0b
to
aa1eb89
Compare
aa1eb89
to
8745dc3
Compare
Asana Task/Github Issue:
Description
Feature change process:
Additional info:
Site breakage mitigation process:
Brief explanation
Reported URL:
Problems experienced:
Platforms affected:
Tracker(s) being unblocked:
Feature being disabled:
I have referenced the URL of this PR as the "reason" value for the exception (where applicable).
This change is a speculative mitigation to fix reported breakage.
Reference