Remove NewcastleHerald.com.au (fix obsolete)

This commit is contained in:
magnolia1234 2022-02-27 15:24:00 +01:00
parent b66aa109a6
commit 0b09c18b49
6 changed files with 3 additions and 23 deletions

View file

@ -616,7 +616,6 @@ Grouped in options:\
[Central Western Daily](https://www.centralwesterndaily.com.au) - [Central Western Daily](https://www.centralwesterndaily.com.au) -
[Daily Liberal](https://www.dailyliberal.com.au) - [Daily Liberal](https://www.dailyliberal.com.au) -
[Illawarra Mercury](https://www.illawarramercury.com.au) - [Illawarra Mercury](https://www.illawarramercury.com.au) -
[Newcastle Herald](https://www.newcastleherald.com.au)* -
[The Advocate](https://www.theadvocate.com.au) - [The Advocate](https://www.theadvocate.com.au) -
[The Border Mail](https://www.bordermail.com.au) - [The Border Mail](https://www.bordermail.com.au) -
[The Canberra Times](https://www.canberratimes.com.au) - [The Canberra Times](https://www.canberratimes.com.au) -

View file

@ -8,7 +8,7 @@ var ext_name = manifestData.name;
var ext_version = manifestData.version; var ext_version = manifestData.version;
const cs_limit_except = ['elespanol.com', 'faz.net', 'inkl.com', 'nation.africa', 'nationalgeographic.com', 'thetimes.co.uk']; const cs_limit_except = ['elespanol.com', 'faz.net', 'inkl.com', 'nation.africa', 'nationalgeographic.com', 'thetimes.co.uk'];
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'lesechos.fr', 'marianne.net', 'newcastleherald.com.au', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(fr_groupe_sud_ouest_domains, nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains); const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(fr_groupe_sud_ouest_domains, nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains);
var currentTabUrl = ''; var currentTabUrl = '';
var csDone = false; var csDone = false;
var optin_setcookie = false; var optin_setcookie = false;

View file

@ -5,6 +5,7 @@ Post-release
Add Cycling Tips Add Cycling Tips
Add Iltalehti.fi Add Iltalehti.fi
Add Postmedia Network (Canada) Add Postmedia Network (Canada)
Remove NewcastleHerald.com.au (fix obsolete)
Fix Westfalen-Blatt (gallery) Fix Westfalen-Blatt (gallery)
Fix update check (GitLab CORS issue or BitBucket http error 429) Fix update check (GitLab CORS issue or BitBucket http error 429)
Update custom sites (load text from json) Update custom sites (load text from json)

View file

@ -228,27 +228,9 @@ else if (domain = matchDomain(["brisbanetimes.com.au", "smh.com.au", "theage.com
else { else {
// Australian Community Media newspapers // Australian Community Media newspapers
let au_comm_media_domains = ['bendigoadvertiser.com.au', 'bordermail.com.au', 'canberratimes.com.au', 'centralwesterndaily.com.au', 'dailyadvertiser.com.au', 'dailyliberal.com.au', 'examiner.com.au', 'illawarramercury.com.au', 'newcastleherald.com.au', 'northerndailyleader.com.au', 'portnews.com.au', 'standard.net.au', 'theadvocate.com.au', 'thecourier.com.au', 'westernadvocate.com.au']; let au_comm_media_domains = ['bendigoadvertiser.com.au', 'bordermail.com.au', 'canberratimes.com.au', 'centralwesterndaily.com.au', 'dailyadvertiser.com.au', 'dailyliberal.com.au', 'examiner.com.au', 'illawarramercury.com.au', 'northerndailyleader.com.au', 'portnews.com.au', 'standard.net.au', 'theadvocate.com.au', 'thecourier.com.au', 'westernadvocate.com.au'];
let au_piano_script = document.querySelector('script[src="https://cdn-au.piano.io/api/tinypass.min.js"]'); let au_piano_script = document.querySelector('script[src="https://cdn-au.piano.io/api/tinypass.min.js"]');
if (matchDomain(au_comm_media_domains) || au_piano_script) { if (matchDomain(au_comm_media_domains) || au_piano_script) {
if (matchDomain('newcastleherald.com.au')) {
let paywall = document.querySelector('div[style^="-webkit-mask-image"]');
if (paywall) {
paywall.removeAttribute('style');
let url_src = window.location.href.replace('newcastleherald.com.au', 'canberratimes.com.au');
replaceDomElementExt(url_src, true, false, 'p[class^="Paragraph_wrapper__"]', 'BPC > text not available on other group site: ', 'div.article__body');
}
let hidden_images = document.querySelectorAll('img[src^="data:image/"][data-src]');
for (let hidden_image of hidden_images)
hidden_image.setAttribute('src', hidden_image.getAttribute('data-src'));
let lead_image = document.querySelector('div#story-body img.w-full[src]');
if (lead_image) {
let lead_src = lead_image.src.split(/\.(png|jpg)/i)[0];
let body_image = document.querySelector('div.article__body img[src]');
if (lead_src && body_image && body_image.src.includes(lead_src))
removeDOMElement(body_image);
}
}
let subscribe_truncate = document.querySelector('.subscribe-truncate'); let subscribe_truncate = document.querySelector('.subscribe-truncate');
if (subscribe_truncate) if (subscribe_truncate)
subscribe_truncate.classList.remove('subscribe-truncate'); subscribe_truncate.classList.remove('subscribe-truncate');

View file

@ -379,7 +379,6 @@
"*://*.nationalreview.com/*", "*://*.nationalreview.com/*",
"*://*.nautil.us/*", "*://*.nautil.us/*",
"*://*.neuepresse.de/*", "*://*.neuepresse.de/*",
"*://*.newcastleherald.com.au/*",
"*://*.newleftreview.org/*", "*://*.newleftreview.org/*",
"*://*.newrepublic.com/*", "*://*.newrepublic.com/*",
"*://*.newsday.com/*", "*://*.newsday.com/*",

View file

@ -140,7 +140,6 @@ var defaultSites = {
"dailyliberal.com.au", "dailyliberal.com.au",
"examiner.com.au", "examiner.com.au",
"illawarramercury.com.au", "illawarramercury.com.au",
"newcastleherald.com.au",
"northerndailyleader.com.au", "northerndailyleader.com.au",
"portnews.com.au", "portnews.com.au",
"standard.net.au", "standard.net.au",