Add 3 Australia News Corp sites

This commit is contained in:
magnolia1234 2023-01-22 17:36:13 +01:00
parent f2c43333bb
commit 0722d7394a
6 changed files with 17 additions and 7 deletions

View file

@ -741,19 +741,22 @@ Grouped in options:\
Grouped in options:\
*Australia News Corp* sites like\
[Code Sports](https://www.codesports.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 Mercury Tasmania](https://www.themercury.com.au) -
[The Weekly Times](https://www.weeklytimesnow.com.au)\
*Australia Nine Entertainment* sites like\
[Brisbane Times](https://www.brisbanetimes.com.au) -
[The Age](https://www.theage.com.au) -
[The Australian Financial Review](https://www.afr.com) -
[The Sydney Morning Herald](https://www.smh.com.au) -
[WAtoday](https://www.watoday.com.au)
[WAtoday](https://www.watoday.com.au)\
*Australian Community Media (daily)* sites like (opt-in to custom sites for unlisted)\
[Bendigo Advertiser](https://www.bendigoadvertiser.com.au) -
[Central Western Daily](https://www.centralwesterndaily.com.au) -

View file

@ -661,7 +661,7 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
);
// Australia News Corp redirect subscribe to amp
var au_news_corp_subscr = au_news_corp_domains.filter(domain => !['codesports.com.au', 'ntnews.com.au'].includes(domain)).map(domain => '*://www.' + domain + '/subscribe/*');
var au_news_corp_subscr = au_news_corp_domains.filter(domain => !['codesports.com.au', 'goldcoastbulletin.com.au', 'ntnews.com.au', 'thechronicle.com.au', 'weeklytimesnow.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;

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add AerzteBlatt.de
Add AerzteZeitung.de
Add 3 Australia News Corp sites
Add BusinessPost.ie
Add Cellesche Zeitung
Add DvhN.nl

View file

@ -262,7 +262,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', 'codesports.com.au', 'couriermail.com.au', 'dailytelegraph.com.au', 'heraldsun.com.au', 'theaustralian.com.au', 'themercury.com.au'];
let au_news_corp_domains = ['adelaidenow.com.au', 'codesports.com.au', 'couriermail.com.au', 'dailytelegraph.com.au', 'goldcoastbulletin.com.au', 'heraldsun.com.au', 'ntnews.com.au', 'theaustralian.com.au', 'thechronicle.com.au', 'themercury.com.au', 'weeklytimesnow.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');

View file

@ -260,6 +260,7 @@
"*://*.glassdoor.com/*",
"*://*.globes.co.il/*",
"*://*.globo.com/*",
"*://*.goldcoastbulletin.com.au/*",
"*://*.goodhousekeeping.com/*",
"*://*.gooieneemlander.nl/*",
"*://*.gq.com/*",
@ -594,6 +595,7 @@
"*://*.theatlantic.com/*",
"*://*.theaustralian.com.au/*",
"*://*.thebanker.com/*",
"*://*.thechronicle.com.au/*",
"*://*.thebulletin.org/*",
"*://*.thecourier.com.au/*",
"*://*.thecritic.co.uk/*",
@ -669,6 +671,7 @@
"*://*.washingtonpost.com/*",
"*://*.watoday.com.au/*",
"*://*.waz.de/*",
"*://*.weeklytimesnow.com.au/*",
"*://*.wellandtribune.ca/*",
"*://*.welt.de/*",
"*://*.weltkunst.de/*",
@ -726,5 +729,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.0.1.7"
"version": "3.0.1.8"
}

View file

@ -126,10 +126,13 @@ var defaultSites = {
"codesports.com.au",
"couriermail.com.au",
"dailytelegraph.com.au",
"goldcoastbulletin.com.au",
"heraldsun.com.au",
"ntnews.com.au",
"theaustralian.com.au",
"themercury.com.au"
"thechronicle.com.au",
"themercury.com.au",
"weeklytimesnow.com.au"
],
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
@ -2425,7 +2428,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 au_news_corp_nofix_domains = ['cairnspost.com.au', 'geelongadvertiser.com.au', 'townsvillebulletin.com.au'];
var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be'];
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com', 'repubblica.it'];
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.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', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'ruhrnachrichten.de', 'saarbruecker-zeitung.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains);