Background tinypass blocker work
This commit is contained in:
parent
e62115986e
commit
4ca617f717
@ -1,21 +0,0 @@
|
||||
// ____
|
||||
// __ _____ ___ ___ ___ ___ _____ _/ / /
|
||||
// / // / _ \/ _ \/ _ `/ // / |/|/ / _ `/ / /
|
||||
// \_,_/_//_/ .__/\_,_/\_, /|__,__/\_,_/_/_/
|
||||
// /_/ /___/
|
||||
//
|
||||
// lensing media component
|
||||
// github.com/tobimori/unpaywall
|
||||
//
|
||||
// notes:
|
||||
// blocking of funke script done in background.js
|
||||
//
|
||||
|
||||
const d = document;
|
||||
|
||||
if (d.getElementsByClassName('article__header__headline ispayedcontent')) {
|
||||
removeElements(
|
||||
d.getElementsByClassName("paging__wrapper"),
|
||||
d.getElementsByClassName("pager pager__bottom")
|
||||
);
|
||||
};
|
@ -11,4 +11,5 @@
|
||||
// blocking of tinypass script done in background.js
|
||||
//
|
||||
|
||||
// removes blur from content
|
||||
document.getElementById("BaseText").classList.contains("PianoContent") && document.getElementById("BaseText").classList.remove("PianoContent");
|
5
lib.js
5
lib.js
@ -18,6 +18,7 @@ const removeElements = (...arrays) => {
|
||||
|
||||
const listenerPaywalls = [
|
||||
"abendblatt",
|
||||
|
||||
"waz",
|
||||
"ikz-online"
|
||||
]
|
||||
const isListenerPaywalled = (details) => { if(listenerPaywalls.contains(details.originUrl.split("/", 3)[2].split(".",2)[1])) return true;};
|
||||
const isPaywalled = (details) => { if(listenerPaywalls.includes(details.originUrl.split(".",2)[1])) return true;};
|
Loading…
x
Reference in New Issue
Block a user