mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:31:57 +01:00
Remove (custom) Substack
Update custom sites/popup (remove Google Search Tool)
This commit is contained in:
parent
900a33e6b0
commit
3d272a896a
11 changed files with 38 additions and 250 deletions
|
@ -176,7 +176,6 @@ Grouped in options:\
|
|||
|
||||
##### Magazines/Blogs
|
||||
[Medium](https://www.medium.com)\
|
||||
[Substack](https://substack.com) (link to Google Search Tool; opt-in to custom sites for custom domains)\
|
||||
Grouped in options:\
|
||||
*Medium custom domains* like (opt-in to custom sites for unlisted)\
|
||||
[Better Programming](https://betterprogramming.pub) -
|
||||
|
@ -909,7 +908,7 @@ Remember to check the [previous requests](https://gitlab.com/magnolia1234/bypass
|
|||
3. Disable Javascript on the site (by browser, uBlock Origin or other add-on).
|
||||
4. Add the domain as custom site for more bypass options.
|
||||
5. Open page in reader view (by browser or add-on).
|
||||
6. Try one of the archive sites (for Google Search Tool test url & copy html (tab) code to https://codebeautify.org/htmlviewer or https://html.onlineviewer.net).
|
||||
6. Try one of the archive sites.
|
||||
|
||||
### Add custom site
|
||||
Add your own custom site (also for testing).
|
||||
|
|
|
@ -35,6 +35,7 @@ var restrictions = {
|
|||
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
||||
'seekingalpha.com': /\/seekingalpha\.com($|\/($|(amp\/)?(article|news)\/|samw\/))/,
|
||||
'statista.com': /^((?!\.statista\.com\/study\/).)*$/,
|
||||
'tagesspiegel.de': /^((?!\/(background|checkpoint)\.tagesspiegel\.de\/).)*$/,
|
||||
'techinasia.com': /\.techinasia\.com\/.+/,
|
||||
'theatlantic.com': /^((?!\/newsletters\.theatlantic\.com\/).)*$/,
|
||||
'thetimes.co.uk': /^((?!epaper\.thetimes\.co\.uk).)*$/,
|
||||
|
@ -395,6 +396,9 @@ ext_api.storage.local.get({
|
|||
optionSites = sites;
|
||||
var sites_default = items.sites_default;
|
||||
customSites = items.sites_custom;
|
||||
customSites = filterObject(customSites, function (val, key) {
|
||||
return !(val.add_ext_link && (!val.add_ext_link_type || val.add_ext_link_type === 'google_search_tool'))
|
||||
});
|
||||
customSites_domains = Object.values(customSites).map(x => x.domain);
|
||||
updatedSites = items.sites_updated;
|
||||
updatedSites_domains_new = Object.values(updatedSites).filter(x => (x.domain && !defaultSites_domains.includes(x.domain) || x.group)).map(x => x.group ? x.group.filter(y => !defaultSites_domains.includes(y)) : x.domain).flat();
|
||||
|
@ -1360,7 +1364,7 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
|
|||
let custom_domain = message.data.domain;
|
||||
let group = message.data.group;
|
||||
if (group) {
|
||||
let nofix_groups = ['###_be_mediahuis', '###_ch_tamedia', '###_de_rp_aachen_medien', '###_fi_alma_talent', '###_it_citynews'];
|
||||
let nofix_groups = ['###_be_mediahuis', '###_ch_tamedia', '###_de_rp_aachen_medien', '###_fi_alma_talent', '###_it_citynews', '###_substack_custom'];
|
||||
if (!custom_flex_domains.includes(custom_domain)) {
|
||||
if (enabledSites.includes(group)) {
|
||||
let rules = Object.values(defaultSites).filter(x => x.domain === group)[0];
|
||||
|
|
|
@ -3,6 +3,9 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||
|
||||
Post-release
|
||||
Remove (custom) Substack (fix obsolete)
|
||||
Fix Tagesspiegel.de (not background/checkpoint)
|
||||
Update custom sites/popup (remove Google Search Tool)
|
||||
|
||||
* v3.1.8.0 (2023-05-14)
|
||||
Add Dagens Nyheter (link to archive.is)
|
||||
|
|
|
@ -175,9 +175,6 @@ if (bg2csData.add_ext_link) {
|
|||
case '12ft.io':
|
||||
article.firstChild.before(ext_12ftLink(url));
|
||||
break;
|
||||
case 'google_search_tool':
|
||||
article.firstChild.before(googleSearchToolLink(url));
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -966,20 +963,12 @@ else if (matchDomain('tagesanzeiger.ch')) {
|
|||
|
||||
else if (matchDomain('tagesspiegel.de')) {
|
||||
let url = window.location.href;
|
||||
let paywall = document.querySelector('div.article--paid > div:not([id])');
|
||||
let paywall = document.querySelector('div#paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let article = document.querySelector('div.article--paid');
|
||||
if (article)
|
||||
article.firstChild.before(archiveLink(url));
|
||||
} else {
|
||||
paywall = document.querySelector('section.ts-paywall, div#pw');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let article = document.querySelector('main p');
|
||||
if (article)
|
||||
article.firstChild.before(googleSearchToolLink(url));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2203,6 +2192,11 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
|||
for (let child of item.children) {
|
||||
if (child.text) {
|
||||
addParText(elem, child.text, true);
|
||||
} else if (child.href && child.href.length > 2) {
|
||||
let par_link = document.createElement('a');
|
||||
par_link.href = child.href;
|
||||
par_link.innerText = child.children[0].text;
|
||||
elem.appendChild(par_link);
|
||||
} else if (child.children) {
|
||||
for (let sub_child of child.children) {
|
||||
if (sub_child.text) {
|
||||
|
@ -5211,10 +5205,6 @@ function googleWebcacheLink(url, text_fail = 'BPC > Full article text:\r\n') {
|
|||
return externalLink(['webcache.googleusercontent.com'], 'https://{domain}/search?q=cache:{url}', url, text_fail);
|
||||
}
|
||||
|
||||
function googleSearchToolLink(url, text_fail = 'BPC > Full article text (test url & copy html (tab) code to [https://codebeautify.org/htmlviewer] or [https://html.onlineviewer.net]):\r\n') {
|
||||
return externalLink(['search.google.com'], 'https://search.google.com/test/rich-results?url={url}', encodeURIComponent(url), text_fail);
|
||||
}
|
||||
|
||||
function ext_12ftLink(url, text_fail = 'BPC > Full article text:\r\n') {
|
||||
return externalLink(['12ft.io'], 'https://{domain}/{url}', url, text_fail);
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ window.setTimeout(function () {
|
|||
else if (document.querySelector('script[src*="/leaky-paywall"], link[href*="/leaky-paywall"]'))
|
||||
group = '###_wp_leaky_paywall';
|
||||
else if (document.querySelector('script[src*="/substackcdn.com/"], link[rel="stylesheet"][href*="/substackcdn.com/"]'))
|
||||
group = '###_substack_custom';
|
||||
group = '###_substack_custom';// no fix
|
||||
else if (document.querySelector('script[src*="/wp-content/themes/pmgnews/scripts/promedia.js"], form[action^="https://go.promedia.nl/"]'))
|
||||
group = '###_nl_promedia';
|
||||
else if (hostname.match(/\.(com|net)\.au$/)) {
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.1.8.0"
|
||||
"version": "3.1.8.1"
|
||||
}
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
"block_regex": "\\.piano\\.io",
|
||||
"domain": "abajournal.com"
|
||||
},
|
||||
"Africaintelligence.fr": {
|
||||
"add_ext_link": "div#poool-widget,div#landing|div.landing",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "africaintelligence.fr"
|
||||
},
|
||||
"Arkansasonline.com": {
|
||||
"domain": "arkansasonline.com"
|
||||
},
|
||||
|
@ -23,12 +17,6 @@
|
|||
"domain": "bauernzeitung.ch",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Bild.de": {
|
||||
"add_ext_link": "div.offer-module|div.article-body",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "bild.de"
|
||||
},
|
||||
"Bisnisindonesia.id": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "bisnisindonesia.id",
|
||||
|
@ -57,12 +45,6 @@
|
|||
"domain": "bt.no",
|
||||
"useragent": "facebookbot"
|
||||
},
|
||||
"Businessinsider.de": {
|
||||
"add_ext_link": "div.piano-article__paywall|div.piano-article__content>p",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "businessinsider.de"
|
||||
},
|
||||
"Businessnews.com.au": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "businessnews.com.au",
|
||||
|
@ -101,12 +83,6 @@
|
|||
"block_regex": "\\.tinypass\\.com",
|
||||
"domain": "dailyherald.com"
|
||||
},
|
||||
"Deutsche-wirtschafts-nachrichten.de": {
|
||||
"add_ext_link": "div#article-teaser-blocks|div.teaser_extra",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "deutsche-wirtschafts-nachrichten.de"
|
||||
},
|
||||
"Diabeteshealth.co.in": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "diabeteshealth.co.in",
|
||||
|
@ -119,12 +95,6 @@
|
|||
"cs_code": "[{\"cond\":\"section.txt\",\"rm_elem\":1}]",
|
||||
"domain": "diariodenavarra.es"
|
||||
},
|
||||
"Die-glocke.de": {
|
||||
"add_ext_link": "div.cardPw|div.mainContent",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "die-glocke.de"
|
||||
},
|
||||
"Doorbraak.be": {
|
||||
"allow_cookies": 1,
|
||||
"cs_code": "[{\"cond\":\"div#aanbod-nieuwe-abonnee\",\"rm_elem\":1,\"elems\":[{\"cond\":\"div#excerpt-inhoud-abo\",\"rm_elem\":1},{\"cond\":\"div#plus-inhoud\",\"rm_attrib\":\"style\"}]}]",
|
||||
|
@ -198,12 +168,6 @@
|
|||
"domain": "gplanet.co.il",
|
||||
"ld_json": "div.subscription-form|div.content-inner"
|
||||
},
|
||||
"Handelsblatt.com": {
|
||||
"add_ext_link": "div.temp-paywall2|div.vhb-article-area--read>p",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "handelsblatt.com"
|
||||
},
|
||||
"Hartenergy.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "js\\.pelcro\\.com",
|
||||
|
@ -230,35 +194,11 @@
|
|||
"block_regex": "\\.tinypass\\.com",
|
||||
"domain": "heraldscotland.com"
|
||||
},
|
||||
"Huffingtonpost.it": {
|
||||
"add_ext_link": "iframe#__limio_frame|div.main-content",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "huffingtonpost.it"
|
||||
},
|
||||
"Ilglobo.com": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "ilglobo.com",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Ilsecoloxix.it": {
|
||||
"add_ext_link": "iframe#__limio_frame|div.story__wrapper",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "ilsecoloxix.it"
|
||||
},
|
||||
"Intelligenceonline.com": {
|
||||
"add_ext_link": "div#poool-widget,div#landing|div.landing",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "intelligenceonline.com"
|
||||
},
|
||||
"Intelligenceonline.fr": {
|
||||
"add_ext_link": "div#poool-widget,div#landing|div.landing",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "intelligenceonline.fr"
|
||||
},
|
||||
"Interestingengineering.com": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "interestingengineering.com",
|
||||
|
@ -287,12 +227,6 @@
|
|||
"block_regex": "\\.irishnews\\.com\\/.+\\/js\\/mpppaywall\\.js",
|
||||
"domain": "irishnews.com"
|
||||
},
|
||||
"Jeuneafrique.com": {
|
||||
"add_ext_link": "div#poool-widget|article",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "jeuneafrique.com"
|
||||
},
|
||||
"Kapital.no": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "kapital.no",
|
||||
|
@ -303,48 +237,11 @@
|
|||
"domain": "lagazettedescommunes.com",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Lalettrea.fr": {
|
||||
"add_ext_link": "div#poool-widget,div#landing|div.landing",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "lalettrea.fr"
|
||||
},
|
||||
"Lastampa.it": {
|
||||
"add_ext_link": "iframe#__limio_frame|header",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "lastampa.it"
|
||||
},
|
||||
"Lavozdegalicia.es": {
|
||||
"add_ext_link": "div#paywall_box|div.date",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "lavozdegalicia.es"
|
||||
},
|
||||
"Law360.com": {
|
||||
"add_ext_link": "div.feature-box|div#teaser",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.law360news\\.com\\/assets\\/www\\/free_trial_modal-.+\\.js",
|
||||
"domain": "law360.com"
|
||||
},
|
||||
"Lemonde.fr": {
|
||||
"add_ext_link": "section.paywall|article",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "lemonde.fr"
|
||||
},
|
||||
"Libraryjournal.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.libraryjournal.com\\.com\\/.+\\/js\\/metering\\.js",
|
||||
"domain": "libraryjournal.com"
|
||||
},
|
||||
"Limesonline.com": {
|
||||
"add_ext_link": "div#paywall|div.sommario",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "limesonline.com"
|
||||
},
|
||||
"Lindipendente.online": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "lindipendente.online",
|
||||
|
@ -370,12 +267,6 @@
|
|||
"domain": "makorrishon.co.il",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Manager-magazin.de": {
|
||||
"add_ext_link": "div[data-area='paywall']|div[data-area='body']",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "manager-magazin.de"
|
||||
},
|
||||
"Manilatimes.net": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "manilatimes.net",
|
||||
|
@ -384,19 +275,6 @@
|
|||
"Marketscreener.com (only free articles)": {
|
||||
"domain": "marketscreener.com"
|
||||
},
|
||||
"Mediahuis België": {
|
||||
"add_ext_link": "div[data-cj-root=\"subscription-wall\"]|div.intro,span[data-testid=\"article-author\"]",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.be\\/extra\\/shared\\/user\\/user\\.js",
|
||||
"domain": "###_be_mediahuis"
|
||||
},
|
||||
"Mediapart.fr": {
|
||||
"add_ext_link": "div#paywall_no_variance|main",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "mediapart.fr"
|
||||
},
|
||||
"Medpagetoday.com": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "medpagetoday.com",
|
||||
|
@ -457,12 +335,6 @@
|
|||
"domain": "onet.pl",
|
||||
"remove_cookies": 1
|
||||
},
|
||||
"Ouest-france.fr": {
|
||||
"add_ext_link": "div.mur|div#article-detail",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "ouest-france.fr"
|
||||
},
|
||||
"Oz-online.de": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "oz-online.de",
|
||||
|
@ -471,12 +343,6 @@
|
|||
"Physicsworld.com": {
|
||||
"domain": "physicsworld.com"
|
||||
},
|
||||
"Politiken.dk": {
|
||||
"add_ext_link": "div.stopsign|div.article__body",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "politiken.dk"
|
||||
},
|
||||
"Pressandjournal.co.uk": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "pressandjournal.co.uk",
|
||||
|
@ -487,45 +353,14 @@
|
|||
"block_regex": "loader-cdn\\.azureedge\\.net",
|
||||
"domain": "pressherald.com"
|
||||
},
|
||||
"Puck.news": {
|
||||
"add_ext_link": "div.paywall|div.entry-content",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"cs_code": "[{\"cond\":\"body.paywall-active\", \"rm_class\":\"paywall-active\"},{\"cond\":\"article[style]\", \"rm_attrib\":\"style\"}]",
|
||||
"domain": "puck.news"
|
||||
},
|
||||
"Quickmath.com": {
|
||||
"domain": "quickmath.com"
|
||||
},
|
||||
"Repubblica.it": {
|
||||
"add_ext_link": "iframe#__limio_frame|div.story__wrapper",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "repubblica.it"
|
||||
},
|
||||
"Reviewjournal.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "js\\.matheranalytics\\.com",
|
||||
"domain": "reviewjournal.com"
|
||||
},
|
||||
"Risk.net": {
|
||||
"add_ext_link": "div.barrier-block|article",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "risk.net"
|
||||
},
|
||||
"Rp_aachen_medien": {
|
||||
"add_ext_link": "div.paid-content,span.park-widget|article",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "###_de_rp_aachen_medien"
|
||||
},
|
||||
"Saechsische.de": {
|
||||
"add_ext_link": "div#piano-inline|div.article-detail-content>p",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "saechsische.de"
|
||||
},
|
||||
"Schwaebische-post.de": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.schwaebische-post\\.de\\/sub\\/js\\/pc-offer-west\\.js",
|
||||
|
@ -581,13 +416,6 @@
|
|||
"amp_redirect": "div#story-notification",
|
||||
"domain": "swarajyamag.com"
|
||||
},
|
||||
"Tamedia.ch": {
|
||||
"add_ext_link": "div#piano-premium>div|article p>span",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.piano\\.io\\/xbuilder\\/experience\\/execute",
|
||||
"domain": "###_ch_tamedia"
|
||||
},
|
||||
"The-past.com": {
|
||||
"domain": "the-past.com"
|
||||
},
|
||||
|
@ -617,12 +445,6 @@
|
|||
"block_regex": "\\.thefashionlaw\\.com\\/evolok\\/.+\\/ev-widgets\\.min\\.js",
|
||||
"domain": "thefashionlaw.com"
|
||||
},
|
||||
"Theinformation.com": {
|
||||
"add_ext_link": "div[data-paywall]|div.locked",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "theinformation.com"
|
||||
},
|
||||
"Themonthly.com.au": {
|
||||
"domain": "themonthly.com.au"
|
||||
},
|
||||
|
@ -667,27 +489,9 @@
|
|||
"block_regex": "\\.tinypass\\.com",
|
||||
"domain": "washingtontimes.com"
|
||||
},
|
||||
"Welt.de": {
|
||||
"add_ext_link": "div.contains_walled_content|article",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "welt.de"
|
||||
},
|
||||
"Wiwo.de": {
|
||||
"add_ext_link": "div.o-paywall|div.o-article__element>p",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "wiwo.de"
|
||||
},
|
||||
"Wuv.de": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "wuv.de",
|
||||
"ld_google_webcache": "div.paid-article|div.font-serif"
|
||||
},
|
||||
"Zeit.de": {
|
||||
"add_ext_link": "aside#paywall|article",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
"allow_cookies": 1,
|
||||
"domain": "zeit.de"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -582,7 +582,6 @@
|
|||
"*://*.stratfor.com/*",
|
||||
"*://*.studocu.com/*",
|
||||
"*://*.stylist.co.uk/*",
|
||||
"*://*.substack.com/*",
|
||||
"*://*.sudinfo.be/*",
|
||||
"*://*.sudouest.fr/*",
|
||||
"*://*.sueddeutsche.de/*",
|
||||
|
@ -741,7 +740,6 @@
|
|||
"*://*.californiatimes.com/*",
|
||||
"*://*.cedscdn.it/*",
|
||||
"*://*.cedsdigital.it/*",
|
||||
"*://*.codebeautify.org/*",
|
||||
"*://*.corriereobjects.it/*",
|
||||
"*://*.emol.cl/*",
|
||||
"*://*.flip-pay.com/*",
|
||||
|
@ -752,10 +750,8 @@
|
|||
"*://*.ndcmediagroep.nl/*",
|
||||
"*://*.nyt.com/*",
|
||||
"*://*.pasedigital.cl/*",
|
||||
"*://*.substackcdn.com/*",
|
||||
"*://*.wallkit.net/*",
|
||||
"*://html.onlineviewer.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.1.8.0"
|
||||
"version": "3.1.8.1"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ var url_loc = (typeof browser === 'object') ? 'firefox' : 'chrome';
|
|||
var useragent_options = ['', 'googlebot', 'bingbot', 'facebookbot'];
|
||||
var referer_options = ['', 'facebook', 'google', 'twitter'];
|
||||
var random_ip_options = ['', 'all', 'eu'];
|
||||
var add_ext_link_type_options = ['', 'archive.is', '12ft.io', 'google_search_tool']
|
||||
var add_ext_link_type_options = ['', 'archive.is', '12ft.io']
|
||||
|
||||
function capitalize(str) {
|
||||
return (typeof str === 'string') ? str.charAt(0).toUpperCase() + str.slice(1) : '';
|
||||
|
@ -18,12 +18,23 @@ function sortJson(json) {
|
|||
}, {});
|
||||
}
|
||||
|
||||
function filterObject(obj, filterFn, mapFn = function (val, key) {
|
||||
return [key, val];
|
||||
}) {
|
||||
return Object.fromEntries(Object.entries(obj).
|
||||
filter(([key, val]) => filterFn(val, key)).map(([key, val]) => mapFn(val, key)));
|
||||
}
|
||||
|
||||
// Saves options to ext_api.storage
|
||||
function save_options() {
|
||||
var textareaEl = document.querySelector('#bypass_sites textarea');
|
||||
var sites_custom = {};
|
||||
if (textareaEl.value)
|
||||
if (textareaEl.value) {
|
||||
var sites_custom = JSON.parse(textareaEl.value);
|
||||
sites_custom = filterObject(sites_custom, function (val, key) {
|
||||
return !(val.add_ext_link && (!val.add_ext_link_type || val.add_ext_link_type === 'google_search_tool'))
|
||||
});
|
||||
}
|
||||
ext_api.storage.local.set({
|
||||
sites_custom: sites_custom
|
||||
}, function () {
|
||||
|
@ -74,6 +85,9 @@ function import_json(result) {
|
|||
var sites_custom_new = JSON.parse(result);
|
||||
for (let site in sites_custom_new)
|
||||
sites_custom[site] = sites_custom_new[site];
|
||||
sites_custom = filterObject(sites_custom, function (val, key) {
|
||||
return !(val.add_ext_link && (!val.add_ext_link_type || val.add_ext_link_type === 'google_search_tool'))
|
||||
});
|
||||
ext_api.storage.local.set({
|
||||
sites_custom: sites_custom
|
||||
}, function () {
|
||||
|
@ -116,7 +130,7 @@ function import_options(e) {
|
|||
|
||||
function _imp() {
|
||||
var result = this.result;
|
||||
import_json(result)
|
||||
import_json(result);
|
||||
}
|
||||
|
||||
// Add custom site to ext_api.storage
|
||||
|
|
|
@ -84,8 +84,7 @@ function showArchiveLinks() {
|
|||
let archive_array = {
|
||||
'Archive.today': 'https://archive.today?run=1&url=' + url_enc,
|
||||
'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url_enc,
|
||||
'12ft.io': 'https://12ft.io/' + url,
|
||||
'Google Search Tool\n(use online html-viewer - no fix)': 'https://search.google.com/test/rich-results?url=' + url_enc
|
||||
'12ft.io': 'https://12ft.io/' + url
|
||||
};
|
||||
let archive_id = document.querySelector('span#archive');
|
||||
if (archive_id) {
|
||||
|
@ -94,7 +93,7 @@ function showArchiveLinks() {
|
|||
let elem_div = document.createElement('div');
|
||||
let elem = document.createElement('a');
|
||||
elem.innerText = key;
|
||||
if (!(matchDomain(['12ft.io', 'google.com', 'googleusercontent.com'], hostname) || hostname.match(/^archive\.\w{2}$/))) {
|
||||
if (!(matchDomain(['12ft.io', 'googleusercontent.com'], hostname) || hostname.match(/^archive\.\w{2}$/))) {
|
||||
elem.href = archive_array[key];
|
||||
elem.target = '_blank';
|
||||
elem_div.appendChild(elem);
|
||||
|
|
23
sites.js
23
sites.js
|
@ -2411,27 +2411,6 @@ var defaultSites = {
|
|||
domain: "stylist.co.uk",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"Substack (link to Google Search Tool; opt-in to custom sites for custom domains)": {
|
||||
domain: "###_substack_custom",
|
||||
group: [
|
||||
"substack.com",
|
||||
"codebeautify.org",
|
||||
"html.onlineviewer.net"
|
||||
],
|
||||
add_ext_link: "div.paywall:not(.modal-paywall)|article",
|
||||
add_ext_link_type: "google_search_tool",
|
||||
allow_cookies: 1,
|
||||
exception: [{
|
||||
domain: "html.onlineviewer.net",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\/substackcdn\.com\/.+\/main(.+)?\.bundle\.js/
|
||||
}, {
|
||||
domain: "codebeautify.org",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\/substackcdn\.com\/.+\/main(.+)?\.bundle\.js/
|
||||
}
|
||||
]
|
||||
},
|
||||
"TownNews sites (Blox CMS; not encrypted)": {
|
||||
domain: "###_usa_townnews",
|
||||
block_regex_general: /\/shared-content\/art\/tncms\/user\/user\.js/
|
||||
|
@ -2561,4 +2540,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', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'business-standard.com', 'businessinsider.de', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nationaljournal.com', 'manager-magazin.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'thedispatch.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zeit.de'].concat(it_gedi_nofix_domains);
|
||||
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'business-standard.com', 'businessinsider.de', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nationaljournal.com', 'manager-magazin.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'thedispatch.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zeit.de'].concat(it_gedi_nofix_domains);
|
||||
|
|
Loading…
Reference in a new issue