Fix-update TheSaturdayPaper.com.au

This commit is contained in:
magnolia1234 2020-08-12 08:37:21 +02:00
parent 8d9de28e68
commit 19c129a46c

View file

@ -6,8 +6,13 @@ if (!matchDomain(arr_localstorage_hold)){
// Content workarounds/domain
if (matchDomain("thesaturdaypaper.com.au")) {
let paywall = document.querySelector('div.paywall-hard-always-show');
removeDOMElement(paywall);
}
// Australian Community Media newspapers
if (window.location.hostname.endsWith(".com.au") || window.location.hostname.endsWith(".net.au")) {
else if (window.location.hostname.endsWith(".com.au") || window.location.hostname.endsWith(".net.au")) {
let au_sites = ['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_piano_script = document.querySelector('script[src="https://cdn-au.piano.io/api/tinypass.min.js"]');
if (matchDomain(au_sites) || au_piano_script) {
@ -21,12 +26,6 @@ if (window.location.hostname.endsWith(".com.au") || window.location.hostname.end
}
}
else if (matchDomain("thesaturdaypaper.com.au")) {
const expand_button = document.querySelector('.continue-reading-button');
if (expand_button)
expand_button.click();
}
else if (matchDomain('rep.repubblica.it')) {
window.setTimeout(function () {
if (window.location.href.includes('/pwa/')) {