diff --git a/README.md b/README.md index 998a78b..7e045d5 100755 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Due to [Google internal policy](https://developer.chrome.com/webstore/program_po 2. In your browser go to the extensions page. 3. Enable Developer Mode. 4. Drag your .crx file anywhere on the page to import it. +5. If dragging crx does not work, try Chrome procedure (above). #### Firefox Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-firefox-clean) of Bypass Paywall Clean. @@ -128,11 +129,13 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f [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 25a7d8d..8c2c343 100755 --- a/background.js +++ b/background.js @@ -144,6 +144,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..ac579ef 100755 --- a/contentScript.js +++ b/contentScript.js @@ -327,7 +327,7 @@ if (window.location.href.indexOf("afr.com") !== -1) { } if (window.location.href.indexOf("theglobeandmail.com") !== -1) { - document.addEventListener('DOMContentLoaded', () => { + document.addEventListener('DOMContentLoaded', () => { const lazy_image = document.querySelectorAll('.js-lazyimage'); for (let i = 0; i < lazy_image.length; i++) { lazy_image[i].classList.remove('js-lazyimage'); @@ -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 b3c16af..b8e2d44 100644 --- a/sites.json +++ b/sites.json @@ -5,8 +5,8 @@ "American Banker": "americanbanker.com", "Baltimore Sun": "baltimoresun.com", "Barron's": "barrons.com", - "Bloomberg Quint (free articles only)": "bloombergquint.com", "Bloomberg": "bloomberg.com", + "Bloomberg Quint (free articles only)": "bloombergquint.com", "Business Insider": "businessinsider.com", "Cairns Post": "cairnspost.com.au", "Caixin Global": "caixinglobal.com", @@ -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",