Add America's Test Kitchen

Update popup (Clearthis.page)
This commit is contained in:
magnolia1234 2023-08-06 08:21:45 +02:00
parent 2cd01faf87
commit 457fbdaa3b
10 changed files with 32 additions and 16 deletions

View file

@ -185,6 +185,7 @@ Grouped in options:\
[Better Programming](https://betterprogramming.pub) -
[Towards Data Science](https://towardsdatascience.com)
[America's Test Kitchen](https://www.americastestkitchen.com) -
[Apollo Magazine](https://www.apollo-magazine.com) -
[Artforum](https://www.artforum.com) -
[Artnet](https://www.artnet.com) -

View file

@ -358,7 +358,7 @@ function set_rules(sites, sites_updated, sites_custom) {
if (!custom) {
let isCustomSite = matchDomain(customSites_domains, domain);
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
let block_regex_default = '';
if (rule.hasOwnProperty('block_regex'))
@ -462,7 +462,7 @@ ext_api.storage.local.get({
} else {
ext_api.management.getSelf(function (result) {
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)));
if (open_options)
ext_api.runtime.openOptionsPage();
@ -1358,6 +1358,8 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
} else if (group === '###_usa_townnews') {
if (!dompurify_sites.includes(custom_domain))
dompurify_sites.push(custom_domain);
if (['berkshireeagle.com'].includes(custom_domain))
rules.useragent = 'googlebot';
}
} else
rules = Object.values(customSites).filter(x => x.domain === group)[0];

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Add America's Test Kitchen
Add Autocar.co.uk
Add Bar and Bench (India)
Add Crikey.com.au
@ -13,6 +14,7 @@ Fix Grupo Vocento (limit amp-redirect)
Fix The Economic Times (update mobile redirect)
Fix The Economist (interactive)
Update custom sites (add_ext_link: Google webcache)
Update popup (Clearthis.page)
* v3.2.7.0 (2023-07-30)
Add Mannheimer-Morgen.de (Haas)

View file

@ -312,7 +312,7 @@ if (matchDomain('medium.com') || matchDomain(medium_custom_domains) || document.
paywall.firstChild.before(googleWebcacheLink(url));
}
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)
removeDOMElement(banner[0].parentNode.parentNode);
}, 1000);

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.2.7.8"
"version": "3.2.7.9"
}

View file

@ -10,6 +10,11 @@
"allow_cookies": 1,
"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": {
"domain": "arkansasonline.com"
},
@ -60,6 +65,7 @@
"add_ext_link": "div.paywall|div.entry-content",
"add_ext_link_type": "archive.is",
"allow_cookies": 1,
"cs_code": "[{\"cond\":\"div.text-gradient\", \"rm_class\":\"text-gradient\"}]",
"domain": "businessam.be"
},
"Businessnews.com.au": {
@ -409,12 +415,6 @@
"block_regex": "js\\.matheranalytics\\.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": {
"allow_cookies": 1,
"block_regex": "\\.schwaebische-post\\.de\\/sub\\/js\\/pc-offer-west\\.js",
@ -496,11 +496,10 @@
"block_regex": "js\\.pelcro\\.com",
"domain": "theday.com"
},
"Thedispatch.com": {
"add_ext_link": "section.paywall-section|div.content",
"add_ext_link_type": "archive.is",
"Thedriftmag.com": {
"allow_cookies": 1,
"domain": "thedispatch.com"
"block_regex": "\\.thedriftmag\\.com\\/wp-content\\/plugins\\/drift-paywall-plugin",
"domain": "thedriftmag.com"
},
"Theepochtimes.com": {
"allow_cookies": 1,

View file

@ -72,6 +72,7 @@
"*://*.ambito.com/*",
"*://*.americanaffairsjournal.org/*",
"*://*.americanbanker.com/*",
"*://*.americastestkitchen.com/*",
"*://*.apollo-magazine.com/*",
"*://*.ara.cat/*",
"*://*.arabalears.cat/*",
@ -776,5 +777,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.2.7.8"
"version": "3.2.7.9"
}

View file

@ -86,6 +86,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,
'Clearthis.page': 'https://clearthis.page?u=' + 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
};
@ -96,7 +97,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', 'clearthis.page', 'google.com', 'googleusercontent.com'], hostname) || hostname.match(/^archive\.\w{2}$/))) {
elem.href = archive_array[key];
elem.target = '_blank';
elem_div.appendChild(elem);

View file

@ -52,6 +52,11 @@ var defaultSites = {
domain: "ambito.com",
remove_cookies_select_drop: ["TDNotesRead"]
},
"America's Test Kitchen": {
domain: "americastestkitchen.com",
allow_cookies: 1,
block_regex: /\.tinypass\.com\//
},
"American Affairs": {
domain: "americanaffairsjournal.org",
allow_cookies: 1,

View file

@ -1,4 +1,9 @@
{
"America's Test Kitchen": {
"domain": "americastestkitchen.com",
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com"
},
"Australian Community Media (daily)": {
"domain": "###_au_comm_media",
"group": [