diff --git a/README.md b/README.md index 8ff799a..d819f87 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/background.js b/background.js index 30bf57a..2fbcdc9 100644 --- a/background.js +++ b/background.js @@ -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/, diff --git a/contentScript.js b/contentScript.js index 124e824..acdc71b 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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) { diff --git a/sites.json b/sites.json index 7a5d350..4f706f1 100644 --- a/sites.json +++ b/sites.json @@ -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",