mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Fix Vogue Business (fetch from archive.is)
This commit is contained in:
parent
46b2f3bee6
commit
d8825d64e6
3 changed files with 10 additions and 17 deletions
|
@ -10,7 +10,7 @@ Fix El Espanol (Cronica Global)
|
|||
Fix Grupo Prensa Iberica (css)
|
||||
Fix National Geographic USA (js-regwall)
|
||||
Fix The Indian Express (js)
|
||||
Fix Vogue Business (member-json)
|
||||
Fix Vogue Business (fetch from archive.is)
|
||||
Update block general paywall script (Sophi.io)
|
||||
Update block general paywall script (update FewCents)
|
||||
|
||||
|
|
|
@ -5737,23 +5737,15 @@ else if (matchDomain('vikatan.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('voguebusiness.com')) {
|
||||
let article = document.querySelector('div.body__inner-container');
|
||||
let article_sel = 'div[data-testid="ArticlePageChunks"]';
|
||||
let article = document.querySelector(article_sel);
|
||||
if (article) {
|
||||
let pars = article.querySelectorAll('p');
|
||||
if (pars.length < 5) {
|
||||
let json_script = getArticleJsonScript();
|
||||
if (json_script) {
|
||||
let json = JSON.parse(json_script.text);
|
||||
if (json) {
|
||||
let json_text = json.articleBody.replace(/\n/g, '\n\n');
|
||||
if (json_text) {
|
||||
csDoneOnce = true;
|
||||
article.innerText = json_text;
|
||||
let url = window.location.href;
|
||||
article.firstChild.before(archiveLink(url));
|
||||
}
|
||||
}
|
||||
}
|
||||
let url = window.location.href;
|
||||
let url_archive = 'https://' + archiveRandomDomain() + '/' + url.split(/[#\?]/)[0];
|
||||
csDoneOnce = true;
|
||||
replaceDomElementExt(url_archive, true, false, article_sel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
5
sites.js
5
sites.js
|
@ -2728,10 +2728,11 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
cs_dompurify: 1
|
||||
},
|
||||
"Vogue Business (member-text only)": {
|
||||
"Vogue Business (fetch from archive.is)": {
|
||||
domain: "voguebusiness.com",
|
||||
block_regex: /\.voguebusiness\.com\/journey\/compiler\/build-.+\.js/,
|
||||
remove_cookies_select_drop: ["userId"]
|
||||
remove_cookies_select_drop: ["userId"],
|
||||
cs_dompurify: 1
|
||||
},
|
||||
"Volksstimme": {
|
||||
domain: "volksstimme.de",
|
||||
|
|
Loading…
Reference in a new issue