faz: implement mobile unlocker

This commit is contained in:
tobimori 2020-03-30 22:36:25 +02:00
parent bbf26d6c8a
commit f6161b6558
2 changed files with 21 additions and 1 deletions

14
components/faz/mobile.js Normal file
View File

@ -0,0 +1,14 @@
// ____
// ___ ___ ___ ___ _____ _/ / /___
// / _ \/ _ `/ // / |/|/ / _ `/ / / __/
// / .__/\_,_/\_, /|__,__/\_,_/_/_/_/
// /_/ /___/
//
// faz mobile component
// github.com/tobimori/paywallr
//
if(d.getElementById("paywall-form-container-outer")) {
d.getElementById("paywall-form-container-outer").remove();
d.getElementsByClassName("article_text paywall")[0].innerHTML = '<p class="First">' + JSON.parse(d.getElementById("schemaOrgJson").innerHTML).ArticleBody + '</p>'
};

View File

@ -133,10 +133,16 @@
"run_at": "document_end"
}, {
"matches": [
"*://*.faz.net/*"
"*://www.faz.net/*"
],
"js": ["lib.js", "components/faz/faz.js"],
"run_at": "document_end"
}, {
"matches": [
"*://m.faz.net/*"
],
"js": ["lib.js", "components/faz/mobile.js"],
"run_at": "document_end"
}
]