Add Newcastle Herald
Already in Firefox add-on (old domain)
This commit is contained in:
parent
c0032ef21d
commit
83585ed0c8
@ -94,7 +94,8 @@ var blockedRegexes = {
|
||||
'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/,
|
||||
'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/,
|
||||
'sloanreview.mit.edu': /.+\.tinypass\.com\/.+/,
|
||||
'leparisien.fr': /.+\.tinypass\.com\/.+/
|
||||
'leparisien.fr': /.+\.tinypass\.com\/.+/,
|
||||
'newcastleherald.com.au': /.+cdn-au\.piano\.io\/api\/tinypas.+\.js/
|
||||
};
|
||||
|
||||
const userAgentDesktop = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
|
||||
|
@ -267,8 +267,8 @@ if (window.location.href.indexOf("thetimes.co.uk") !== -1) {
|
||||
|
||||
if (window.location.href.indexOf("technologyreview.com") !== -1) {
|
||||
const read_story = document.querySelector('.storyExpanderButton');
|
||||
if (read_story)
|
||||
read_story.click();
|
||||
if (read_story)
|
||||
read_story.click();
|
||||
const meter = document.querySelector('.meter');
|
||||
removeDOMElement(meter);
|
||||
}
|
||||
@ -341,6 +341,16 @@ if (window.location.href.indexOf("theglobeandmail.com") !== -1) {
|
||||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("newcastleherald.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) {
|
||||
|
@ -42,6 +42,7 @@
|
||||
"National Post": "nationalpost.com",
|
||||
"New York Magazine": "nymag.com",
|
||||
"New Zealand Herald": "nzherald.co.nz",
|
||||
"Newcastle Herald": "newcastleherald.com.au",
|
||||
"Nikkei Asian Review": "asia.nikkei.com",
|
||||
"NRC Handelsblad": "nrc.nl",
|
||||
"Parool": "parool.nl",
|
||||
|
Loading…
x
Reference in New Issue
Block a user