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

This commit is contained in:
magnolia1234 2020-02-02 18:12:27 +01:00 committed by GitHub
parent 71e338b44a
commit a75ecb1c31
4 changed files with 12 additions and 13 deletions

View File

@ -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)

View File

@ -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/,

View File

@ -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) {

View File

@ -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",