mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:04:16 +01:00
Add America's Test Kitchen
Update popup (Clearthis.page)
This commit is contained in:
parent
2cd01faf87
commit
457fbdaa3b
10 changed files with 32 additions and 16 deletions
|
@ -185,6 +185,7 @@ Grouped in options:\
|
||||||
[Better Programming](https://betterprogramming.pub) -
|
[Better Programming](https://betterprogramming.pub) -
|
||||||
[Towards Data Science](https://towardsdatascience.com)
|
[Towards Data Science](https://towardsdatascience.com)
|
||||||
|
|
||||||
|
[America's Test Kitchen](https://www.americastestkitchen.com) -
|
||||||
[Apollo Magazine](https://www.apollo-magazine.com) -
|
[Apollo Magazine](https://www.apollo-magazine.com) -
|
||||||
[Artforum](https://www.artforum.com) -
|
[Artforum](https://www.artforum.com) -
|
||||||
[Artnet](https://www.artnet.com) -
|
[Artnet](https://www.artnet.com) -
|
||||||
|
|
|
@ -358,7 +358,7 @@ function set_rules(sites, sites_updated, sites_custom) {
|
||||||
if (!custom) {
|
if (!custom) {
|
||||||
let isCustomSite = matchDomain(customSites_domains, domain);
|
let isCustomSite = matchDomain(customSites_domains, domain);
|
||||||
let customSite_title = isCustomSite ? Object.keys(customSites).find(key => customSites[key].domain === isCustomSite) : '';
|
let customSite_title = isCustomSite ? Object.keys(customSites).find(key => customSites[key].domain === isCustomSite) : '';
|
||||||
if (customSite_title && !rule.add_ext_link) {
|
if (customSite_title && !(rule.add_ext_link || ['swarajyamag.com'].includes(isCustomSite))) {
|
||||||
// add default block_regex
|
// add default block_regex
|
||||||
let block_regex_default = '';
|
let block_regex_default = '';
|
||||||
if (rule.hasOwnProperty('block_regex'))
|
if (rule.hasOwnProperty('block_regex'))
|
||||||
|
@ -462,7 +462,7 @@ ext_api.storage.local.get({
|
||||||
} else {
|
} else {
|
||||||
ext_api.management.getSelf(function (result) {
|
ext_api.management.getSelf(function (result) {
|
||||||
if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) {
|
if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) {
|
||||||
let new_groups = ['###_ch_esh_medias', '###_de_mhs', '###_nl_eu_ftm'];
|
let new_groups = ['###_de_mhs', '###_nl_eu_ftm'];
|
||||||
let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain)));
|
let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain)));
|
||||||
if (open_options)
|
if (open_options)
|
||||||
ext_api.runtime.openOptionsPage();
|
ext_api.runtime.openOptionsPage();
|
||||||
|
@ -1358,6 +1358,8 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
|
||||||
} else if (group === '###_usa_townnews') {
|
} else if (group === '###_usa_townnews') {
|
||||||
if (!dompurify_sites.includes(custom_domain))
|
if (!dompurify_sites.includes(custom_domain))
|
||||||
dompurify_sites.push(custom_domain);
|
dompurify_sites.push(custom_domain);
|
||||||
|
if (['berkshireeagle.com'].includes(custom_domain))
|
||||||
|
rules.useragent = 'googlebot';
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
rules = Object.values(customSites).filter(x => x.domain === group)[0];
|
rules = Object.values(customSites).filter(x => x.domain === group)[0];
|
||||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Add America's Test Kitchen
|
||||||
Add Autocar.co.uk
|
Add Autocar.co.uk
|
||||||
Add Bar and Bench (India)
|
Add Bar and Bench (India)
|
||||||
Add Crikey.com.au
|
Add Crikey.com.au
|
||||||
|
@ -13,6 +14,7 @@ Fix Grupo Vocento (limit amp-redirect)
|
||||||
Fix The Economic Times (update mobile redirect)
|
Fix The Economic Times (update mobile redirect)
|
||||||
Fix The Economist (interactive)
|
Fix The Economist (interactive)
|
||||||
Update custom sites (add_ext_link: Google webcache)
|
Update custom sites (add_ext_link: Google webcache)
|
||||||
|
Update popup (Clearthis.page)
|
||||||
|
|
||||||
* v3.2.7.0 (2023-07-30)
|
* v3.2.7.0 (2023-07-30)
|
||||||
Add Mannheimer-Morgen.de (Haas)
|
Add Mannheimer-Morgen.de (Haas)
|
||||||
|
|
|
@ -312,7 +312,7 @@ if (matchDomain('medium.com') || matchDomain(medium_custom_domains) || document.
|
||||||
paywall.firstChild.before(googleWebcacheLink(url));
|
paywall.firstChild.before(googleWebcacheLink(url));
|
||||||
}
|
}
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
let banner = pageContains('div > h2 > div, div > div > h2', /(Read (the full story with|this story from)|Get unlimited access to)/);
|
let banner = pageContains('div > div > p', /author made this story available to/);
|
||||||
if (banner.length)
|
if (banner.length)
|
||||||
removeDOMElement(banner[0].parentNode.parentNode);
|
removeDOMElement(banner[0].parentNode.parentNode);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
|
@ -51,5 +51,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.2.7.8"
|
"version": "3.2.7.9"
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,11 @@
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"domain": "airmail.news"
|
"domain": "airmail.news"
|
||||||
},
|
},
|
||||||
|
"Al-monitor.com": {
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"cs_code": "[{\"cond\":\"body.nodetype--memo\", \"rm_class\":\"nodetype--memo\"}, {\"cond\":\"div.memo--callout--wrapper\",\"rm_elem\":1}]",
|
||||||
|
"domain": "al-monitor.com"
|
||||||
|
},
|
||||||
"Arkansasonline.com": {
|
"Arkansasonline.com": {
|
||||||
"domain": "arkansasonline.com"
|
"domain": "arkansasonline.com"
|
||||||
},
|
},
|
||||||
|
@ -60,6 +65,7 @@
|
||||||
"add_ext_link": "div.paywall|div.entry-content",
|
"add_ext_link": "div.paywall|div.entry-content",
|
||||||
"add_ext_link_type": "archive.is",
|
"add_ext_link_type": "archive.is",
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
|
"cs_code": "[{\"cond\":\"div.text-gradient\", \"rm_class\":\"text-gradient\"}]",
|
||||||
"domain": "businessam.be"
|
"domain": "businessam.be"
|
||||||
},
|
},
|
||||||
"Businessnews.com.au": {
|
"Businessnews.com.au": {
|
||||||
|
@ -409,12 +415,6 @@
|
||||||
"block_regex": "js\\.matheranalytics\\.com",
|
"block_regex": "js\\.matheranalytics\\.com",
|
||||||
"domain": "reviewjournal.com"
|
"domain": "reviewjournal.com"
|
||||||
},
|
},
|
||||||
"Rp-online.de": {
|
|
||||||
"add_ext_link": "div.paid-content|div[data-cy=\"article_content\"]",
|
|
||||||
"add_ext_link_type": "archive.is",
|
|
||||||
"allow_cookies": 1,
|
|
||||||
"domain": "rp-online.de"
|
|
||||||
},
|
|
||||||
"Schwaebische-post.de": {
|
"Schwaebische-post.de": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"block_regex": "\\.schwaebische-post\\.de\\/sub\\/js\\/pc-offer-west\\.js",
|
"block_regex": "\\.schwaebische-post\\.de\\/sub\\/js\\/pc-offer-west\\.js",
|
||||||
|
@ -496,11 +496,10 @@
|
||||||
"block_regex": "js\\.pelcro\\.com",
|
"block_regex": "js\\.pelcro\\.com",
|
||||||
"domain": "theday.com"
|
"domain": "theday.com"
|
||||||
},
|
},
|
||||||
"Thedispatch.com": {
|
"Thedriftmag.com": {
|
||||||
"add_ext_link": "section.paywall-section|div.content",
|
|
||||||
"add_ext_link_type": "archive.is",
|
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"domain": "thedispatch.com"
|
"block_regex": "\\.thedriftmag\\.com\\/wp-content\\/plugins\\/drift-paywall-plugin",
|
||||||
|
"domain": "thedriftmag.com"
|
||||||
},
|
},
|
||||||
"Theepochtimes.com": {
|
"Theepochtimes.com": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
"*://*.ambito.com/*",
|
"*://*.ambito.com/*",
|
||||||
"*://*.americanaffairsjournal.org/*",
|
"*://*.americanaffairsjournal.org/*",
|
||||||
"*://*.americanbanker.com/*",
|
"*://*.americanbanker.com/*",
|
||||||
|
"*://*.americastestkitchen.com/*",
|
||||||
"*://*.apollo-magazine.com/*",
|
"*://*.apollo-magazine.com/*",
|
||||||
"*://*.ara.cat/*",
|
"*://*.ara.cat/*",
|
||||||
"*://*.arabalears.cat/*",
|
"*://*.arabalears.cat/*",
|
||||||
|
@ -776,5 +777,5 @@
|
||||||
"*://*.wyleex.com/*",
|
"*://*.wyleex.com/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.2.7.8"
|
"version": "3.2.7.9"
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,7 @@ function showArchiveLinks() {
|
||||||
let archive_array = {
|
let archive_array = {
|
||||||
'Archive.today': 'https://archive.today?run=1&url=' + url_enc,
|
'Archive.today': 'https://archive.today?run=1&url=' + url_enc,
|
||||||
'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url_enc,
|
'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url_enc,
|
||||||
|
'Clearthis.page': 'https://clearthis.page?u=' + url,
|
||||||
'12ft.io': 'https://12ft.io/' + url,
|
'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
|
'Google Search Tool\n(use online html-viewer - no fix)': 'https://search.google.com/test/rich-results?url=' + url_enc
|
||||||
};
|
};
|
||||||
|
@ -96,7 +97,7 @@ function showArchiveLinks() {
|
||||||
let elem_div = document.createElement('div');
|
let elem_div = document.createElement('div');
|
||||||
let elem = document.createElement('a');
|
let elem = document.createElement('a');
|
||||||
elem.innerText = key;
|
elem.innerText = key;
|
||||||
if (!(matchDomain(['12ft.io', 'google.com', 'googleusercontent.com'], hostname) || hostname.match(/^archive\.\w{2}$/))) {
|
if (!(matchDomain(['12ft.io', 'clearthis.page', 'google.com', 'googleusercontent.com'], hostname) || hostname.match(/^archive\.\w{2}$/))) {
|
||||||
elem.href = archive_array[key];
|
elem.href = archive_array[key];
|
||||||
elem.target = '_blank';
|
elem.target = '_blank';
|
||||||
elem_div.appendChild(elem);
|
elem_div.appendChild(elem);
|
||||||
|
|
5
sites.js
5
sites.js
|
@ -52,6 +52,11 @@ var defaultSites = {
|
||||||
domain: "ambito.com",
|
domain: "ambito.com",
|
||||||
remove_cookies_select_drop: ["TDNotesRead"]
|
remove_cookies_select_drop: ["TDNotesRead"]
|
||||||
},
|
},
|
||||||
|
"America's Test Kitchen": {
|
||||||
|
domain: "americastestkitchen.com",
|
||||||
|
allow_cookies: 1,
|
||||||
|
block_regex: /\.tinypass\.com\//
|
||||||
|
},
|
||||||
"American Affairs": {
|
"American Affairs": {
|
||||||
domain: "americanaffairsjournal.org",
|
domain: "americanaffairsjournal.org",
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{
|
{
|
||||||
|
"America's Test Kitchen": {
|
||||||
|
"domain": "americastestkitchen.com",
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"block_regex": "\\.tinypass\\.com"
|
||||||
|
},
|
||||||
"Australian Community Media (daily)": {
|
"Australian Community Media (daily)": {
|
||||||
"domain": "###_au_comm_media",
|
"domain": "###_au_comm_media",
|
||||||
"group": [
|
"group": [
|
||||||
|
|
Loading…
Reference in a new issue