Add 3 Australia News Corp sites

merge-requests/14/head
magnolia1234 1 year ago
parent b88170eebd
commit 046a73394a

@ -775,7 +775,9 @@ 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) -
@ -785,7 +787,8 @@ Grouped in options:\
[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)\
[The Weekly Times](https://www.weeklytimesnow.com.au) -
[Townsville Bulletin](https://www.townsvillebulletin.com.au)\
*Australia Nine Entertainment* sites like\
[Brisbane Times](https://www.brisbanetimes.com.au) -
[The Age](https://www.theage.com.au) -
@ -907,7 +910,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 copy html (tab) code to https://html.onlineviewer.net).
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).
### Add custom site
Add your own custom site (also for testing).

@ -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 Cairns Post, Geelong Advertiser & Townsville Bulletin (Australia News Corp)
Add Arizent sites (opt-in to custom sites)
Fix Adweek (premium)
Fix Modern Healthcare (sponsored)
@ -176,7 +177,7 @@ Update block general paywall script (Steady)
* v3.0.2.0 (2023-01-22)
Add AerzteBlatt.de
Add AerzteZeitung.de
Add 3 Australia News Corp sites
Add Gold Coast Bulletin, The Chronicle & The Weekly Times (Australia News Corp)
Add BusinessPost.ie
Add Cellesche Zeitung
Add DvhN.nl

@ -303,9 +303,9 @@ 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', 'goldcoastbulletin.com.au', 'heraldsun.com.au', 'ntnews.com.au', 'theaustralian.com.au', 'thechronicle.com.au', 'themercury.com.au', 'weeklytimesnow.com.au'];
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'];
if (matchDomain(au_news_corp_domains)) {
if (window.location.hostname.startsWith('amp.') || window.location.search.match(/(\?|&)amp/)) {
if (window.location.hostname.startsWith('amp.') || window.location.search.match(/[&\?]amp/)) {
let figure_stretch = document.querySelectorAll('figure.stretch');
for (let elem of figure_stretch)
elem.classList.remove('stretch');
@ -5083,7 +5083,7 @@ 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 (copy html (tab) code to html.onlineviewer.net):\r\n') {
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);
}
@ -5095,7 +5095,11 @@ function externalLink(domains, ext_url_templ, url, text_fail = 'BPC > Full artic
let text_fail_div = document.createElement('div');
text_fail_div.id = 'bpc_archive';
text_fail_div.setAttribute('style', 'margin: 20px; font-weight: bold; color: red;');
text_fail_div.appendChild(document.createTextNode(text_fail));
let parser = new DOMParser();
text_fail = text_fail.replace(/\[([^\]]+)\]/g, "<a href='$1' target='_blank' style='color: red'>$1</a>");
let doc = parser.parseFromString('<span>' + text_fail + '</span>', 'text/html');
let elem = doc.querySelector('span');
text_fail_div.appendChild(elem);
for (let domain of domains) {
let ext_url = ext_url_templ.replace('{domain}', domain).replace('{url}', url.split('?')[0]);
let a_link = document.createElement('a');

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.1.6.2"
"version": "3.1.6.3"
}

@ -84,6 +84,12 @@
"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",
@ -298,6 +304,13 @@
"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",
@ -423,6 +436,12 @@
"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",
@ -447,6 +466,24 @@
"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-online.de": {
"add_ext_link": "div.paid-content|article",
"add_ext_link_type": "google_search_tool",
"allow_cookies": 1,
"domain": "rp-online.de"
},
"Saarbruecker-zeitung.de": {
"add_ext_link": "div.paid-content|article",
"add_ext_link_type": "google_search_tool",
"allow_cookies": 1,
"domain": "saarbruecker-zeitung.de"
},
"Saechsische.de": {
"add_ext_link": "div#piano-inline|div.article-detail-content>p",
"add_ext_link_type": "google_search_tool",

@ -125,6 +125,7 @@
"*://*.businessinsider.com/*",
"*://*.businessoffashion.com/*",
"*://*.businesspost.ie/*",
"*://*.cairnspost.com.au/*",
"*://*.calgaryherald.com/*",
"*://*.canberratimes.com.au/*",
"*://*.capitalgazette.com/*",
@ -260,6 +261,7 @@
"*://*.ft.com/*",
"*://*.ftm.nl/*",
"*://*.gazzetta.it/*",
"*://*.geelongadvertiser.com.au/*",
"*://*.gelderlander.nl/*",
"*://*.genomeweb.com/*",
"*://*.gestion.pe/*",
@ -655,6 +657,7 @@
"*://*.torontosun.com/*",
"*://*.towardsdatascience.com/*",
"*://*.townandcountrymag.com/*",
"*://*.townsvillebulletin.com.au/*",
"*://*.tradewindsnews.com/*",
"*://*.trailrunnermag.com/*",
"*://*.tri-cityherald.com/*",
@ -737,6 +740,7 @@
"*://*.bwbx.io/*",
"*://*.californiatimes.com/*",
"*://*.cedsdigital.it/*",
"*://*.codebeautify.org/*",
"*://*.corriereobjects.it/*",
"*://*.emol.cl/*",
"*://*.flip-pay.com/*",
@ -752,5 +756,5 @@
"*://html.onlineviewer.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.1.6.2"
"version": "3.1.6.3"
}

@ -119,29 +119,44 @@ var defaultSites = {
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"
],
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
useragent: "googlebot",
exception: [{
domain: "cairnspost.com.au",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
}, {
domain: "codesports.com.au",
allow_cookies: 1,
block_js_inline: /\.codesports\.com\.au\/.+\/news-story\//,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
}, {
domain: "geelongadvertiser.com.au",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
}, {
domain: "theaustralian.com.au",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
}, {
domain: "townsvillebulletin.com.au",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
}
]
},
@ -2391,6 +2406,7 @@ var defaultSites = {
domain: "###_substack_custom",
group: [
"substack.com",
"codebeautify.org",
"html.onlineviewer.net"
],
add_ext_link: "div.paywall:not(.modal-paywall)|article",
@ -2400,6 +2416,10 @@ var defaultSites = {
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/
}
]
},
@ -2530,8 +2550,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', 'townsvillebulletin.com.au'];
var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be'];
var de_rp_medien_nofix_domains = ['ga.de', 'rp-online.de', 'saarbruecker-zeitung.de', 'volksfreund.de'];
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', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.se', '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', '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', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nknews.org', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'rheinpfalz.de', '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(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, de_rp_medien_nofix_domains, 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', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.se', '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', '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', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nknews.org', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', '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(be_mediahuis_nofix_domains, de_rp_medien_nofix_domains, it_gedi_nofix_domains);

Loading…
Cancel
Save