faz: implement mobile unlocker
This commit is contained in:
parent
bbf26d6c8a
commit
f6161b6558
14
components/faz/mobile.js
Normal file
14
components/faz/mobile.js
Normal 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>'
|
||||||
|
};
|
@ -133,10 +133,16 @@
|
|||||||
"run_at": "document_end"
|
"run_at": "document_end"
|
||||||
}, {
|
}, {
|
||||||
"matches": [
|
"matches": [
|
||||||
"*://*.faz.net/*"
|
"*://www.faz.net/*"
|
||||||
],
|
],
|
||||||
"js": ["lib.js", "components/faz/faz.js"],
|
"js": ["lib.js", "components/faz/faz.js"],
|
||||||
"run_at": "document_end"
|
"run_at": "document_end"
|
||||||
|
}, {
|
||||||
|
"matches": [
|
||||||
|
"*://m.faz.net/*"
|
||||||
|
],
|
||||||
|
"js": ["lib.js", "components/faz/mobile.js"],
|
||||||
|
"run_at": "document_end"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user