Add The Port Macquarie News (AU)

This commit is contained in:
magnolia1234 2020-03-02 14:55:44 +01:00 committed by GitHub
parent 7968ee185c
commit 18570ee92c
4 changed files with 4 additions and 1 deletions

View file

@ -116,6 +116,7 @@
[The Examiner](https://www.examiner.com.au) -
[The Mercury Tasmania](https://www.themercury.com.au) -
[The Northern Daily Leader](https://www.northerndailyleader.com.au) -
[The Port Macquarie News](https://www.portnews.com.au) -
[The Saturday Paper](https://www.thesaturdaypaper.com.au) -
[The Spectator Australia](https://www.spectator.com.au) -
[The Standard](https://www.standard.net.au) -

View file

@ -154,6 +154,7 @@ var blockedRegexes = {
'newcastleherald.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/,
'nytimes.com': /(.+meter-svc\.nytimes\.com\/meter\.js.+|.+mwcm\.nyt\.com\/.+\.js)/,
'nzherald.co.nz': /nzherald\.co\.nz\/.+\/headjs\/.+\.js/,
'portnews.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/,
'repubblica.it': /scripts\.repubblica\.it\/pw\/pw\.js.+/,
'sloanreview.mit.edu': /.+\.tinypass\.com\/.+/,
'spectator.co.uk': /.+\.tinypass\.com\/.+/,

View file

@ -338,7 +338,7 @@ if (window.location.href.indexOf("theglobeandmail.com") !== -1) {
// Australian Community Media newspapers
if (window.location.href.indexOf(".com.au") !== -1 || window.location.href.indexOf(".net.au") !== -1) {
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', 'standard.net.au', 'theadvocate.com.au', 'thecourier.com.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'];
let domain = new URL(window.location.href).hostname.replace('www.', '');
if (au_sites.includes(domain)) {
const subscribe_truncate = document.querySelector('.subscribe-truncate');

View file

@ -142,6 +142,7 @@ var defaultSites =
"The News-Gazette": "news-gazette.com",
"The Northern Daily Leader": "northerndailyleader.com.au",
"The Philadelphia Inquirer": "inquirer.com",
"The Port Macquarie News": "portnews.com.au",
"The Sacramento Bee (free articles only)": "sacbee.com",
"The Saturday Paper": "thesaturdaypaper.com.au",
"The Seattle Times": "seattletimes.com",