Fix Codesports.com.au (js)

Plus remove 6 Australia News Corp sites (fix obsolete)
merge-requests/10/head
magnolia1234 1 year ago
parent 19e0cd7d56
commit 016ae496dd

@ -729,20 +729,14 @@ Grouped in options:\
Grouped in options:\
*Australia News Corp* sites like\
[Cairns Post](https://www.cairnspost.com.au) -
[Code Sports](https://www.codesports.com.au) -
[Geelong Advertiser](https://www.geelongadvertiser.com.au) -
[Gold Coast Bulletin](https://www.goldcoastbulletin.com.au) -
[Herald Sun](https://www.heraldsun.com.au) -
[Northern Territory News](https://www.ntnews.com.au) -
[The Advertiser/AdelaideNow](https://www.adelaidenow.com.au) -
[The Australian](https://www.theaustralian.com.au) -
[The Chronicle](https://www.thechronicle.com.au) -
[The Courier-Mail](https://www.couriermail.com.au) -
[The Daily Telegraph](https://www.dailytelegraph.com.au) -
[The Mercury Tasmania](https://www.themercury.com.au) -
[The Weekly Times](https://www.weeklytimesnow.com.au) -
[Townsville Bulletin](https://www.townsvillebulletin.com.au)\
[The Mercury Tasmania](https://www.themercury.com.au)
*Australia Nine Entertainment* sites like\
[Brisbane Times](https://www.brisbanetimes.com.au) -
[The Age](https://www.theage.com.au) -

@ -667,7 +667,7 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
);
// Australia News Corp redirect subscribe to amp
var au_news_corp_subscr = au_news_corp_domains.map(domain => '*://www.' + domain + '/subscribe/*');
var au_news_corp_subscr = au_news_corp_domains.filter(domain => !['codesports.com.au', 'ntnews.com.au'].includes(domain)).map(domain => '*://www.' + domain + '/subscribe/*');
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
if (!isSiteEnabled(details) || details.url.includes('/digitalprinteditions') || !(details.url.includes('dest=') && details.url.split('dest=')[1].split('&')[0])) {
return;
@ -915,8 +915,9 @@ if (matchUrlDomain(change_headers, details.url) && !ignore_types.includes(detail
!(matchUrlDomain(es_grupo_vocento_domains, details.url) && mobile) &&
!(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) &&
!(matchUrlDomain(['economictimes.com', 'economictimes.indiatimes.com'], details.url) && !details.url.split(/\?|#/)[0].endsWith('.cms')) &&
!(matchUrlDomain('theaustralian.com.au', details.url) && !details.url.startsWith('https://www.theaustralian.com.au/the-oz/')) &&
!(matchUrlDomain(au_news_corp_domains, details.url) && details.url.includes('?amp')) &&
!(matchUrlDomain(au_news_corp_domains, details.url) &&
((matchUrlDomain('theaustralian.com.au', details.url) && !details.url.startsWith('https://www.theaustralian.com.au/the-oz/')) ||
(!matchUrlDomain('theaustralian.com.au', details.url) && (details.url.includes('?amp') || enabledSites.includes('#options_disable_gb_au_news_corp'))))) &&
!(matchUrlDomain('uol.com.br', details.url) && !matchUrlDomain('folha.uol.com.br', details.url)) &&
!(matchUrlDomain('wsj.com', details.url) && (enabledSites.includes('#options_disable_gb_wsj') || !details.url.includes('/articles/')));
var bingbotEnabled = matchUrlDomain(use_bing_bot, details.url) &&

@ -3,8 +3,10 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Handelsblatt
Remove 6 Australia News Corp sites (fix obsolete)
Remove Law360 (fix obsolete)
Fix Business Standard (images)
Fix Codesports.com.au (js)
Fix DN.no (images)
Fix Noz.de (no amp)
Fix Substack (redundant text)

@ -307,7 +307,7 @@ else {
removeDOMElement(story_generic_iframe, blocker, ...overlays, ...ads);
} else if (window.location.hostname.endsWith('.com.au')) {
// Australia News Corp
let au_news_corp_domains = ['adelaidenow.com.au', 'cairnspost.com.au', 'codesports.com.au', 'couriermail.com.au', 'dailytelegraph.com.au', 'geelongadvertiser.com.au', 'goldcoastbulletin.com.au', 'heraldsun.com.au', 'ntnews.com.au', 'theaustralian.com.au', 'thechronicle.com.au', 'themercury.com.au', 'townsvillebulletin.com.au', 'weeklytimesnow.com.au'];
let au_news_corp_domains = ['adelaidenow.com.au', 'codesports.com.au', 'couriermail.com.au', 'dailytelegraph.com.au', 'heraldsun.com.au', 'theaustralian.com.au', 'themercury.com.au'];
if (matchDomain(au_news_corp_domains)) {
if (window.location.hostname.startsWith('amp.') || window.location.search.match(/(\?|&)amp/)) {
let figure_stretch = document.querySelectorAll('figure.stretch');
@ -326,6 +326,13 @@ else {
}
removeDOMElement(comments);
} else {
if (matchDomain('codesports.com.au')) {
let lazy_images = document.querySelectorAll('img.lazyload[data-src]:not([src])');
for (let elem of lazy_images) {
elem.src = elem.getAttribute('data-src');
elem.classList.remove('lazyload');
}
}
let ads = document.querySelectorAll('.header_ads-container, .ad-block, .ad-container');
removeDOMElement(...ads);
}

@ -121,7 +121,6 @@
"*://*.business-standard.com/*",
"*://*.businessinsider.com/*",
"*://*.businessoffashion.com/*",
"*://*.cairnspost.com.au/*",
"*://*.calgaryherald.com/*",
"*://*.canberratimes.com.au/*",
"*://*.capitalgazette.com/*",
@ -250,14 +249,12 @@
"*://*.ftm.nl/*",
"*://*.ga.de/*",
"*://*.gazzetta.it/*",
"*://*.geelongadvertiser.com.au/*",
"*://*.gelderlander.nl/*",
"*://*.genomeweb.com/*",
"*://*.gestion.pe/*",
"*://*.glassdoor.com/*",
"*://*.globes.co.il/*",
"*://*.globo.com/*",
"*://*.goldcoastbulletin.com.au/*",
"*://*.goodhousekeeping.com/*",
"*://*.gooieneemlander.nl/*",
"*://*.gq.com/*",
@ -591,7 +588,6 @@
"*://*.theatlantic.com/*",
"*://*.theaustralian.com.au/*",
"*://*.thebanker.com/*",
"*://*.thechronicle.com.au/*",
"*://*.thecourier.com.au/*",
"*://*.thecritic.co.uk/*",
"*://*.thecut.com/*",
@ -632,7 +628,6 @@
"*://*.torontosun.com/*",
"*://*.towardsdatascience.com/*",
"*://*.townandcountrymag.com/*",
"*://*.townsvillebulletin.com.au/*",
"*://*.tradewindsnews.com/*",
"*://*.trailrunnermag.com/*",
"*://*.tri-cityherald.com/*",
@ -666,7 +661,6 @@
"*://*.washingtonpost.com/*",
"*://*.watoday.com.au/*",
"*://*.waz.de/*",
"*://*.weeklytimesnow.com.au/*",
"*://*.wellandtribune.ca/*",
"*://*.welt.de/*",
"*://*.weltkunst.de/*",
@ -719,5 +713,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.9.6.6"
"version": "2.9.6.7"
}

@ -115,38 +115,28 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/
},
"Australia News Corp": {
"Australia News Corp (when blocked disable Googlebot in BPC-settings)": {
domain: "###_au_news_corp",
group: [
"adelaidenow.com.au",
"cairnspost.com.au",
"codesports.com.au",
"couriermail.com.au",
"dailytelegraph.com.au",
"geelongadvertiser.com.au",
"goldcoastbulletin.com.au",
"heraldsun.com.au",
"ntnews.com.au",
"theaustralian.com.au",
"thechronicle.com.au",
"themercury.com.au",
"townsvillebulletin.com.au",
"weeklytimesnow.com.au"
"themercury.com.au"
],
allow_cookies: 1,
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
exception: [{
domain: "ntnews.com.au",
domain: "codesports.com.au",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js/,
useragent: "googlebot"
}, {
domain: "theaustralian.com.au",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js/,
useragent: "googlebot"
block_js_inline: /\.codesports\.com\.au\/.+\/news-story\//,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
}
]
],
useragent: "googlebot"
},
"Australian Community Media (daily)": {
domain: "###_au_comm_media",
@ -201,7 +191,7 @@ var defaultSites = {
domain: "bnn.de",
useragent: "googlebot"
},
"Barron's": {
"Barron's (when blocked disable Googlebot in BPC-settings)": {
domain: "barrons.com",
allow_cookies: 1,
block_regex: /(cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/,
@ -2038,7 +2028,7 @@ var defaultSites = {
allow_cookies: 1,
block_regex: "(\\.{domain}\\/script\\.js|\\.blueconic\\.net\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)"
},
"The Wall Street Journal": {
"The Wall Street Journal (when blocked disable Googlebot in BPC-settings)": {
domain: "wsj.com",
allow_cookies: 1,
block_regex: /(cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/,
@ -2299,6 +2289,9 @@ var defaultSites = {
"Check for update rules at startup": {
domain: "#options_optin_update_rules"
},
"Australia News Corp - no Googlebot (blocked)": {
domain: "#options_disable_gb_au_news_corp"
},
"Barron's - no Googlebot (http error 500)": {
domain: "#options_disable_gb_barrons"
},
@ -2386,6 +2379,7 @@ function init_custom_flex_domains() {
init_custom_flex_domains();
// sites with no fix (background)
var au_news_corp_nofix_domains = ['cairnspost.com.au', 'geelongadvertiser.com.au', 'goldcoastbulletin.com.au', 'thechronicle.com.au', 'townsvillebulletin.com.au', 'weeklytimesnow.com.au'];
var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be'];
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com'];
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'golem.de', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'suedkurier.de', 'swp.de', 'tagesanzeiger.ch', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, it_gedi_nofix_domains);
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'golem.de', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'suedkurier.de', 'swp.de', 'tagesanzeiger.ch', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains);

Loading…
Cancel
Save