Add Spectator.com.au & TheCourier.com.au

This commit is contained in:
magnolia1234 2020-02-02 18:20:33 +01:00 committed by GitHub
parent 947906c825
commit 3941b8dc27
4 changed files with 9 additions and 11 deletions

View file

@ -103,11 +103,13 @@
[The Australian](https://www.theaustralian.com.au) -
[The Australian Financial Review](https://www.afr.com) -
[The Canberra Times](https://www.canberratimes.com.au) -
[The Courier](https://www.thecourier.com.au) -
[The Courier-Mail](https://www.couriermail.com.au)
[The Daily Telegraph](https://www.dailytelegraph.com.au)
[The Examiner](https://www.examiner.com.au) -
[The Mercury Tasmania](https://www.themercury.com.au) -
[The Saturday Paper](https://www.thesaturdaypaper.com.au) -
[The Spectator Australia](https://www.spectator.com.au) -
[The Sydney Morning Herald](https://www.smh.com.au)
[The Weekly Times](https://www.weeklytimesnow.com.au)
[Townsville Bulletin](https://www.townsvillebulletin.com.au)

View file

@ -143,6 +143,8 @@ var blockedRegexes = {
'repubblica.it': /scripts\.repubblica\.it\/pw\/pw\.js.+/,
'sloanreview.mit.edu': /.+\.tinypass\.com\/.+/,
'spectator.co.uk': /.+\.tinypass\.com\/.+/,
'spectator.com.au': /.+\.tinypass\.com\/.+/,
'thecourier.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/,
'thedailybeast.com': /.+\.tinypass\.com\/.+/,
'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/,
'thenation.com': /thenation\.com\/.+\/paywall-script\.php/,

View file

@ -347,7 +347,9 @@ if (window.location.href.indexOf("theglobeandmail.com") !== -1) {
});
}
if (window.location.href.indexOf("newcastleherald.com.au") !== -1) {
if (window.location.href.indexOf("newcastleherald.com.au") !== -1
|| window.location.href.indexOf("examiner.com.au") !== -1
|| window.location.href.indexOf("thecourier.com.au") !== -1) {
const subscribe_truncate = document.querySelector('.subscribe-truncate');
if (subscribe_truncate)
subscribe_truncate.classList.remove('subscribe-truncate');
@ -421,16 +423,6 @@ if (window.location.href.indexOf("thesaturdaypaper.com.au") !== -1) {
expand_button.click();
}
if (window.location.href.indexOf("examiner.com.au") !== -1) {
const subscribe_truncate = document.querySelector('.subscribe-truncate');
if (subscribe_truncate)
subscribe_truncate.classList.remove('subscribe-truncate');
const subscriber_hider = document.querySelectorAll('.subscriber-hider');
for (let i = 0; i < subscriber_hider.length; i++) {
subscriber_hider[i].classList.remove('subscriber-hider');
}
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View file

@ -106,6 +106,7 @@
"The Business Journals": "bizjournals.com",
"The Canberra Times": "canberratimes.com.au",
"The Christian Science Monitor": "csmonitor.com",
"The Courier": "thecourier.com.au",
"The Courier-Mail": "couriermail.com.au",
"The Daily Beast (free articles only)": "thedailybeast.com",
"The Daily Telegraph": "dailytelegraph.com.au",
@ -131,6 +132,7 @@
"The Saturday Paper": "thesaturdaypaper.com.au",
"The Seattle Times": "seattletimes.com",
"The Spectator": "spectator.co.uk",
"The Spectator Australia": "spectator.com.au",
"The Sydney Morning Herald": "smh.com.au",
"The Telegraph": "telegraph.co.uk",
"The Times": "thetimes.co.uk",