mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 04:01:58 +01:00
Update custom sites (ld_json_url)
This commit is contained in:
parent
f1f3ec4440
commit
29df7419bc
8 changed files with 199 additions and 124 deletions
|
@ -82,6 +82,8 @@ var cs_code;
|
|||
var ld_json;
|
||||
// load text from json (script#__NEXT_DATA__)
|
||||
var ld_json_next;
|
||||
// load text from json (link[rel="alternate"][type="application/json"][href])
|
||||
var ld_json_url;
|
||||
// load text from Google webcache
|
||||
var ld_google_webcache;
|
||||
// add external link to article
|
||||
|
@ -109,6 +111,7 @@ function initSetRules() {
|
|||
cs_code = {};
|
||||
ld_json = {};
|
||||
ld_json_next = {};
|
||||
ld_json_url = {};
|
||||
ld_google_webcache = {};
|
||||
add_ext_link = {};
|
||||
block_js_custom = [];
|
||||
|
@ -266,7 +269,7 @@ function addRules(domain, rule) {
|
|||
if (rule.amp_unhide > 0 && !amp_unhide.includes(domain))
|
||||
amp_unhide.push(domain);
|
||||
if (rule.amp_redirect)
|
||||
amp_redirect[domain] = rule.amp_redirect.paywall ? rule.amp_redirect : {paywall: rule.amp_redirect};
|
||||
amp_redirect[domain] = rule.amp_redirect;
|
||||
if (rule.cs_code) {
|
||||
if (typeof rule.cs_code === 'string') {
|
||||
try {
|
||||
|
@ -282,9 +285,11 @@ function addRules(domain, rule) {
|
|||
ld_json[domain] = rule.ld_json;
|
||||
if (rule.ld_json_next)
|
||||
ld_json_next[domain] = rule.ld_json_next;
|
||||
if (rule.ld_json_url)
|
||||
ld_json_url[domain] = rule.ld_json_url;
|
||||
if (rule.ld_google_webcache)
|
||||
ld_google_webcache[domain] = rule.ld_google_webcache;
|
||||
if (rule.ld_json || rule.ld_json_next || rule.ld_google_webcache || rule.cs_dompurify)
|
||||
if (rule.ld_json || rule.ld_json_next || rule.ld_json_url || rule.ld_google_webcache || rule.cs_dompurify)
|
||||
if (!dompurify_sites.includes(domain))
|
||||
dompurify_sites.push(domain);
|
||||
if (rule.add_ext_link && rule.add_ext_link_type)
|
||||
|
@ -789,23 +794,26 @@ if (typeof browser !== 'object') {
|
|||
bg2csData.optin_setcookie = 1;
|
||||
if (matchUrlDomain(amp_unhide, url))
|
||||
bg2csData.amp_unhide = 1;
|
||||
let amp_redirect_domain = '';
|
||||
if (amp_redirect_domain = matchUrlDomain(Object.keys(amp_redirect), url))
|
||||
let amp_redirect_domain = matchUrlDomain(Object.keys(amp_redirect), url);
|
||||
if (amp_redirect_domain)
|
||||
bg2csData.amp_redirect = amp_redirect[amp_redirect_domain];
|
||||
let cs_code_domain = '';
|
||||
if (cs_code_domain = matchUrlDomain(Object.keys(cs_code), url))
|
||||
let cs_code_domain = matchUrlDomain(Object.keys(cs_code), url);
|
||||
if (cs_code_domain)
|
||||
bg2csData.cs_code = cs_code[cs_code_domain];
|
||||
let ld_json_domain = '';
|
||||
if (ld_json_domain = matchUrlDomain(Object.keys(ld_json), url))
|
||||
let ld_json_domain = matchUrlDomain(Object.keys(ld_json), url);
|
||||
if (ld_json_domain)
|
||||
bg2csData.ld_json = ld_json[ld_json_domain];
|
||||
let ld_json_next_domain = '';
|
||||
if (ld_json_next_domain = matchUrlDomain(Object.keys(ld_json_next), url))
|
||||
let ld_json_next_domain = matchUrlDomain(Object.keys(ld_json_next), url);
|
||||
if (ld_json_next_domain)
|
||||
bg2csData.ld_json_next = ld_json_next[ld_json_next_domain];
|
||||
let ld_google_webcache_domain = '';
|
||||
if (ld_google_webcache_domain = matchUrlDomain(Object.keys(ld_google_webcache), url))
|
||||
let ld_json_url_domain = matchUrlDomain(Object.keys(ld_json_url), url);
|
||||
if (ld_json_url_domain)
|
||||
bg2csData.ld_json_url = ld_json_url[ld_json_url_domain];
|
||||
let ld_google_webcache_domain = matchUrlDomain(Object.keys(ld_google_webcache), url);
|
||||
if (ld_google_webcache_domain)
|
||||
bg2csData.ld_google_webcache = ld_google_webcache[ld_google_webcache_domain];
|
||||
let add_ext_link_domain = '';
|
||||
if (add_ext_link_domain = matchUrlDomain(Object.keys(add_ext_link), url))
|
||||
let add_ext_link_domain = matchUrlDomain(Object.keys(add_ext_link), url);
|
||||
if (add_ext_link_domain)
|
||||
bg2csData.add_ext_link = add_ext_link[add_ext_link_domain];
|
||||
let tab_runs = 5;
|
||||
for (let n = 0; n < tab_runs; n++) {
|
||||
|
|
|
@ -12,6 +12,7 @@ Fix Stylist.co.uk (css)
|
|||
Fix The Toronto Star (homepage)
|
||||
Fix Times of India (css)
|
||||
Fix mobile user-agent for Google webcache (proper)
|
||||
Update custom sites (ld_json_url)
|
||||
|
||||
* v3.2.8.0 (2023-08-06)
|
||||
Add America's Test Kitchen
|
||||
|
|
266
contentScript.js
266
contentScript.js
|
@ -57,7 +57,7 @@ if (!matchDomain(arr_localstorage_hold)) {
|
|||
}
|
||||
|
||||
function runOnMessage(bg2csData, dompurify_loaded) {
|
||||
// custom/updated sites: load text from json
|
||||
// custom/updated sites: load text from json (script[type="application/ld+json"])
|
||||
if (bg2csData.ld_json && dompurify_loaded) {
|
||||
if (bg2csData.ld_json.includes('|')) {
|
||||
window.setTimeout(function () {
|
||||
|
@ -82,14 +82,14 @@ if (bg2csData.ld_json && dompurify_loaded) {
|
|||
json_key = Object.keys(json).find(key => key.match(/^articlebody$/i)) || Object.keys(json).find(key => key.match(/^text$/i));
|
||||
json_text = parseHtmlEntities(json[json_key]);
|
||||
}
|
||||
if (json_text && article.parentNode) {
|
||||
if (json_text) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div style="margin: 25px 0px">' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||
let doc = parser.parseFromString('<div style="margin: 25px 0px">' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe'], ADD_ATTR: ['frameborder']}) + '</div>', 'text/html');
|
||||
let article_new = doc.querySelector('div');
|
||||
if (article_append || !article.parentNode) {
|
||||
article.innerHTML = '';
|
||||
article.appendChild(article_new);
|
||||
} else
|
||||
} else if (article.parentNode)
|
||||
article.parentNode.replaceChild(article_new, article);
|
||||
}
|
||||
} catch (err) {
|
||||
|
@ -101,6 +101,7 @@ if (bg2csData.ld_json && dompurify_loaded) {
|
|||
}
|
||||
}
|
||||
|
||||
// custom/updated sites: load text from json (script#__NEXT_DATA__)
|
||||
if (bg2csData.ld_json_next && dompurify_loaded) {
|
||||
if (bg2csData.ld_json_next.includes('|')) {
|
||||
window.setTimeout(function () {
|
||||
|
@ -109,25 +110,29 @@ if (bg2csData.ld_json_next && dompurify_loaded) {
|
|||
let article_sel = ld_json_next_split[1];
|
||||
let paywall = document.querySelectorAll(paywall_sel);
|
||||
let article = document.querySelector(article_sel);
|
||||
let article_append = ld_json_next_split[2];// optional
|
||||
let article_append = ld_json_next_split[2]; // optional
|
||||
if (paywall.length && article) {
|
||||
removeDOMElement(...paywall);
|
||||
let json_script = document.querySelector('script#__NEXT_DATA__');
|
||||
let json = JSON.parse(json_script.text);
|
||||
if (json) {
|
||||
let url_next = findKeyJson(json, ['slug']);
|
||||
if (url_next && !window.location.pathname.endsWith(url_next))
|
||||
refreshCurrentTab();
|
||||
let json_text = parseHtmlEntities(findKeyJson(json, ['body', 'content', 'description'], 500));
|
||||
if (json_text && article.parentNode) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||
if (json_script) {
|
||||
try {
|
||||
let json = JSON.parse(json_script.text);
|
||||
let url_next = findKeyJson(json, ['slug']);
|
||||
if (url_next && !window.location.pathname.endsWith(url_next))
|
||||
refreshCurrentTab();
|
||||
let json_text = parseHtmlEntities(findKeyJson(json, ['body', 'content', 'description'], 500));
|
||||
if (json_text) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe'], ADD_ATTR: ['frameborder']}) + '</div>', 'text/html');
|
||||
let article_new = doc.querySelector('div');
|
||||
if (article_append || !article.parentNode) {
|
||||
article.innerHTML = '';
|
||||
article.appendChild(article_new);
|
||||
} else
|
||||
} else if (article.parentNode)
|
||||
article.parentNode.replaceChild(article_new, article);
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -135,6 +140,45 @@ if (bg2csData.ld_json_next && dompurify_loaded) {
|
|||
}
|
||||
}
|
||||
|
||||
// custom/updated sites: load text from json (link[rel="alternate"][type="application/json"][href])
|
||||
if (bg2csData.ld_json_url && dompurify_loaded) {
|
||||
if (bg2csData.ld_json_url.includes('|')) {
|
||||
window.setTimeout(function () {
|
||||
let ld_json_url_split = bg2csData.ld_json_url.split('|');
|
||||
let paywall_sel = ld_json_url_split[0];
|
||||
let article_sel = ld_json_url_split[1];
|
||||
let paywall = document.querySelectorAll(paywall_sel);
|
||||
let article = document.querySelector(article_sel);
|
||||
let article_append = ld_json_url_split[2]; // optional
|
||||
if (paywall.length && article) {
|
||||
removeDOMElement(...paywall);
|
||||
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"][href]');
|
||||
if (json_url_dom) {
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = parseHtmlEntities(json.content.rendered);
|
||||
if (json_text) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div style="margin: 25px 0px">' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe'], ADD_ATTR: ['frameborder']}) + '</div>', 'text/html');
|
||||
let article_new = doc.querySelector('div');
|
||||
if (article_append || !article.parentNode) {
|
||||
article.innerHTML = '';
|
||||
article.appendChild(article_new);
|
||||
} else if (article.parentNode)
|
||||
article.parentNode.replaceChild(article_new, article);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
// custom/updated sites: load text from Google webcache
|
||||
if (bg2csData.ld_google_webcache && dompurify_loaded) {
|
||||
if (bg2csData.ld_google_webcache.includes('|')) {
|
||||
|
@ -211,9 +255,7 @@ if (bg2csData.amp_redirect) {
|
|||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
let amp_page = amp_script && !amphtml;
|
||||
if (!amp_page) {
|
||||
let paywall = true;
|
||||
if (bg2csData.amp_redirect.paywall)
|
||||
paywall = document.querySelector(bg2csData.amp_redirect.paywall);
|
||||
let paywall = document.querySelector(bg2csData.amp_redirect);
|
||||
if (paywall && amphtml) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
|
@ -325,22 +367,24 @@ if (matchDomain('crikey.com.au')) {
|
|||
if (paywall && dompurify_loaded) {
|
||||
removeDOMElement(paywall);
|
||||
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"][href]');
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = json.content.rendered;
|
||||
let content = document.querySelector('div.article-body > div.paywall');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.parentNode.replaceChild(content_new, content);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if (json_url_dom) {
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = json.content.rendered;
|
||||
let content = document.querySelector('div.article-body > div.paywall');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.parentNode.replaceChild(content_new, content);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
let fade = document.querySelector('article.article-locked');
|
||||
if (fade)
|
||||
fade.classList.remove('article-locked');
|
||||
|
@ -1113,22 +1157,24 @@ else if (matchDomain('ruhrnachrichten.de') || document.querySelector('div.mgw-in
|
|||
if (paywall && dompurify_loaded) {
|
||||
paywall.classList.remove('is_plus_article');
|
||||
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"][href]');
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = json.content.rendered;
|
||||
let content = document.querySelector('article');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe']}) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.appendChild(content_new);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if (json_url_dom) {
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = json.content.rendered;
|
||||
let content = document.querySelector('article');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe']}) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.appendChild(content_new);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
let ads = document.querySelector('div.OUTBRAIN');
|
||||
removeDOMElement(ads);
|
||||
|
@ -2869,22 +2915,24 @@ else if (matchDomain('the-tls.co.uk')) {
|
|||
if (paywall && dompurify_loaded) {
|
||||
removeDOMElement(paywall);
|
||||
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"][href]');
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = json.content.rendered;
|
||||
let content = document.querySelector('div.tls-article-body');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div class="tls-article-body">' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.parentNode.replaceChild(content_new, content);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if (json_url_dom) {
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = json.content.rendered;
|
||||
let content = document.querySelector('div.tls-article-body');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div class="tls-article-body">' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.parentNode.replaceChild(content_new, content);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
let fade = document.querySelector('div.tls-single-article__closed-paywall-wrapper');
|
||||
removeDOMElement(fade);
|
||||
|
@ -4403,27 +4451,29 @@ else if (matchDomain('stereogum.com')) {
|
|||
if (paywall && dompurify_loaded) {
|
||||
removeDOMElement(paywall);
|
||||
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"][href]');
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
try {
|
||||
let json_text = json.acf.article_modules[0].copy.replace(/data-src/g, 'src');
|
||||
let content = document.querySelector('div.article__content div.text-block__inner');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe'], ADD_ATTR: ['frameborder', 'allow', 'allowfullscreen']}) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.innerHTML = '';
|
||||
content.appendChild(content_new);
|
||||
if (json_url_dom) {
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
try {
|
||||
let json_text = json.acf.article_modules[0].copy.replace(/data-src/g, 'src');
|
||||
let content = document.querySelector('div.article__content div.text-block__inner');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe'], ADD_ATTR: ['frameborder', 'allow', 'allowfullscreen']}) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.innerHTML = '';
|
||||
content.appendChild(content_new);
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4515,27 +4565,29 @@ else if (matchDomain('theamericanconservative.com')) {
|
|||
if (paywall && dompurify_loaded) {
|
||||
paywall.classList.remove('c-blog-post__body--locked');
|
||||
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"][href]');
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = json.content.rendered;
|
||||
if (json_text.includes('<p class="has-drop-cap">')) {
|
||||
let split = json_text.split(/(<p class="has-drop-cap">)/);
|
||||
json_text = split[1] + split[2];
|
||||
}
|
||||
let content = document.querySelector('div.c-blog-post__content');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.innerHTML = '';
|
||||
content.appendChild(content_new, content);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if (json_url_dom) {
|
||||
let json_url = json_url_dom.href;
|
||||
fetch(json_url)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
response.json().then(json => {
|
||||
let json_text = json.content.rendered;
|
||||
if (json_text.includes('<p class="has-drop-cap">')) {
|
||||
let split = json_text.split(/(<p class="has-drop-cap">)/);
|
||||
json_text = split[1] + split[2];
|
||||
}
|
||||
let content = document.querySelector('div.c-blog-post__content');
|
||||
if (json_text && content) {
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||
let content_new = doc.querySelector('div');
|
||||
content.innerHTML = '';
|
||||
content.appendChild(content_new, content);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
let img_dark = document.querySelector('div.c-hero-article__image-img.o-image');
|
||||
if (img_dark)
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.2.8.6"
|
||||
"version": "3.2.8.7"
|
||||
}
|
||||
|
|
|
@ -143,6 +143,11 @@
|
|||
"block_regex": "\\.tinypass\\.com",
|
||||
"domain": "eluniversal.com.mx"
|
||||
},
|
||||
"Energy-storage.news": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "energy-storage.news",
|
||||
"ld_json_url": "div.wkwp-paywall|div.wpwp-non-paywall"
|
||||
},
|
||||
"Eviemagazine.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.eviemagazine\\.com\\/api\\/trpc\\/post\\.paywall",
|
||||
|
@ -407,6 +412,11 @@
|
|||
"block_regex": "loader-cdn\\.azureedge\\.net",
|
||||
"domain": "pressherald.com"
|
||||
},
|
||||
"Pv-tech.org": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "pv-tech.org",
|
||||
"ld_json_url": "div.wkwp-paywall|div.wpwp-non-paywall"
|
||||
},
|
||||
"Quickmath.com": {
|
||||
"domain": "quickmath.com"
|
||||
},
|
||||
|
|
|
@ -782,5 +782,5 @@
|
|||
"*://*.wyleex.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.2.8.6"
|
||||
"version": "3.2.8.7"
|
||||
}
|
||||
|
|
|
@ -248,6 +248,7 @@ function edit_options() {
|
|||
document.querySelector('input[data-key="amp_redirect"]').value = edit_site.amp_redirect ? edit_site.amp_redirect : '';
|
||||
document.querySelector('input[data-key="ld_json"]').value = edit_site.ld_json ? edit_site.ld_json : '';
|
||||
document.querySelector('input[data-key="ld_json_next"]').value = edit_site.ld_json_next ? edit_site.ld_json_next : '';
|
||||
document.querySelector('input[data-key="ld_json_url"]').value = edit_site.ld_json_url ? edit_site.ld_json_url : '';
|
||||
document.querySelector('input[data-key="ld_google_webcache"]').value = edit_site.ld_google_webcache ? edit_site.ld_google_webcache : '';
|
||||
document.querySelector('input[data-key="add_ext_link"]').value = edit_site.add_ext_link ? edit_site.add_ext_link : '';
|
||||
document.querySelector('select[data-key="add_ext_link_type"]').selectedIndex = add_ext_link_type_options.indexOf(edit_site.add_ext_link_type);
|
||||
|
@ -321,6 +322,7 @@ function renderOptions() {
|
|||
'amp_redirect': 0,
|
||||
'ld_json': 0,
|
||||
'ld_json_next': 0,
|
||||
'ld_json_url': 0,
|
||||
'ld_google_webcache': 0,
|
||||
'add_ext_link': 0,
|
||||
'add_ext_link_type': 0,
|
||||
|
@ -363,6 +365,7 @@ function renderOptions() {
|
|||
amp_redirect: 'div.paywall',
|
||||
ld_json: 'div.paywall|div.article',
|
||||
ld_json_next: 'div.paywall|div.article',
|
||||
ld_json_url: 'div.paywall|div.article',
|
||||
ld_google_webcache: 'div.paywall|div.article',
|
||||
add_ext_link: 'div.paywall|div.article',
|
||||
cs_code: 'for dev: check GitLab examples',
|
||||
|
@ -409,6 +412,7 @@ function renderOptions() {
|
|||
(sites_custom[key]['amp_redirect'] ? ' | amp_redirect' : '') +
|
||||
(sites_custom[key]['ld_json'] ? ' | ld_json' : '') +
|
||||
(sites_custom[key]['ld_json_next'] ? ' | ld_json_next' : '') +
|
||||
(sites_custom[key]['ld_json_url'] ? ' | ld_json_url' : '') +
|
||||
(sites_custom[key]['ld_google_webcache'] ? ' | ld_google_webcache' : '') +
|
||||
(sites_custom[key]['add_ext_link'] && sites_custom[key]['add_ext_link_type'] ? ' | add_ext_link' : '') +
|
||||
(sites_custom[key]['cs_code'] ? ' | cs_code' : '');
|
||||
|
|
2
sites.js
2
sites.js
|
@ -2674,4 +2674,4 @@ init_custom_flex_domains();
|
|||
|
||||
// sites with no fix (background)
|
||||
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com', 'repubblica.it'];
|
||||
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftonbladet.se', 'aftenposten.no', 'allgaeuer-zeitung.de', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'lefigaro.fr', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'mainpost.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nachrichten.at', 'nationaljournal.com', 'manager-magazin.de', 'mz.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'volksstimme.de', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(it_gedi_nofix_domains);
|
||||
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftonbladet.se', 'aftenposten.no', 'allgaeuer-zeitung.de', 'asiatimes.com', 'autosport.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'lefigaro.fr', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'mainpost.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nachrichten.at', 'nationaljournal.com', 'manager-magazin.de', 'mz.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'volksstimme.de', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(it_gedi_nofix_domains);
|
||||
|
|
Loading…
Reference in a new issue