From 18570ee92c5713aaf2641a2cdc425a9e0969df9e Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 2 Mar 2020 14:55:44 +0100 Subject: [PATCH] Add The Port Macquarie News (AU) --- README.md | 1 + background.js | 1 + contentScript.js | 2 +- sites.js | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 98ad2a2..3bed280 100644 --- a/README.md +++ b/README.md @@ -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) - diff --git a/background.js b/background.js index 7b79778..0cc3399 100644 --- a/background.js +++ b/background.js @@ -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\/.+/, diff --git a/contentScript.js b/contentScript.js index 4178089..c29adb8 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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'); diff --git a/sites.js b/sites.js index a3c5ffc..15fcdb9 100644 --- a/sites.js +++ b/sites.js @@ -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",