Trying to implement ze.tt gr.een bypass
This commit is contained in:
parent
0bb5a2c0e6
commit
132b6d74c7
@ -46,3 +46,4 @@ chrome.webRequest.onBeforeRequest.addListener(
|
|||||||
["blocking"]
|
["blocking"]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// block ze.tt steady
|
||||||
|
25
components/zettgreen.js
Normal file
25
components/zettgreen.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// ____
|
||||||
|
// __ _____ ___ ___ ___ ___ _____ _/ / /
|
||||||
|
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
|
||||||
|
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
|
||||||
|
// /_/ /___/
|
||||||
|
//
|
||||||
|
// ze.tt green component
|
||||||
|
// github.com/tobimori/unpaywall
|
||||||
|
//
|
||||||
|
// notes:
|
||||||
|
// function ph.callIfNoPaywall is defined in header.js which also includes
|
||||||
|
// serveral other functions to keep the site working, blocking scripts is no option to keep site working
|
||||||
|
// or at least header working
|
||||||
|
//
|
||||||
|
|
||||||
|
const d = document;
|
||||||
|
|
||||||
|
const observer = new MutationObserver(function (mutations, me) {
|
||||||
|
[...d.getElementsByTagName("script")].map(n => !n.getAttribute("src") && n.remove());
|
||||||
|
});
|
||||||
|
|
||||||
|
observer.observe(d, {
|
||||||
|
childList: true,
|
||||||
|
subtree: true
|
||||||
|
});
|
@ -110,6 +110,12 @@
|
|||||||
],
|
],
|
||||||
"js": ["lib.js", "components/lensingmedia.js"],
|
"js": ["lib.js", "components/lensingmedia.js"],
|
||||||
"run_at": "document_end"
|
"run_at": "document_end"
|
||||||
|
}, {
|
||||||
|
"matches": [
|
||||||
|
"*://*.ze.tt/*"
|
||||||
|
],
|
||||||
|
"js": ["lib.js", "components/zettgreen.js"],
|
||||||
|
"run_at": "document_start"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user