Remove adblock banners for interest.co.nz & stuff.co.nz and bypass paywall thenational.scot (#900)

* Interest.co.nz/Stuff/The National
This commit is contained in:
alastairR 2020-09-22 16:57:08 +12:00 committed by GitHub
parent 58b14a94b3
commit d01b72549e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 1 deletions

View File

@ -71,7 +71,8 @@
[History Extra](https://www.historyextra.com)\ [History Extra](https://www.historyextra.com)\
[Il Manifesto](https://www.ilmanifesto.it)\ [Il Manifesto](https://www.ilmanifesto.it)\
[Inc.com](https://www.inc.com)\ [Inc.com](https://www.inc.com)\
[Investors Chronicle](https://www.investorschronicle.co.uk)\ [Interest.co.nz](https://www.interest.co.nz)\
[Investors Chronicle](https://www.investorschronicle.co.uk)
[L'Écho](https://www.lecho.be)\ [L'Écho](https://www.lecho.be)\
[L.A. Business Journal](https://labusinessjournal.com)\ [L.A. Business Journal](https://labusinessjournal.com)\
[La Nación](https://www.lanacion.com.ar)\ [La Nación](https://www.lanacion.com.ar)\
@ -110,6 +111,7 @@
[SOFREP](https://sofrep.com)\ [SOFREP](https://sofrep.com)\
[Statista](https://www.statista.com)\ [Statista](https://www.statista.com)\
[Star Tribune](https://www.startribune.com)\ [Star Tribune](https://www.startribune.com)\
[Stuff](https://www.stuff.co.nz)\
[SunSentinel](https://www.sun-sentinel.com)\ [SunSentinel](https://www.sun-sentinel.com)\
[Tech in Asia](https://www.techinasia.com)\ [Tech in Asia](https://www.techinasia.com)\
[Telegraaf](https://www.telegraaf.nl)\ [Telegraaf](https://www.telegraaf.nl)\
@ -139,6 +141,7 @@
[The Mercury Tasmania](https://www.themercury.com.au)\ [The Mercury Tasmania](https://www.themercury.com.au)\
[The Morning Call](https://www.mcall.com)\ [The Morning Call](https://www.mcall.com)\
[The Nation](https://www.thenation.com)\ [The Nation](https://www.thenation.com)\
[The National](https://www.thenational.scot)\
[The New Statesman](https://www.newstatesman.com)\ [The New Statesman](https://www.newstatesman.com)\
[The New York Times](https://www.nytimes.com)\ [The New York Times](https://www.nytimes.com)\
[The New Yorker](https://www.newyorker.com)\ [The New Yorker](https://www.newyorker.com)\

View File

@ -27,6 +27,7 @@
"*://*.firstthings.com/*", "*://*.firstthings.com/*",
"*://*.ft.com/*", "*://*.ft.com/*",
"*://*.haaretz.co.il/*", "*://*.haaretz.co.il/*",
"*://*.interest.co.nz/*",
"*://*.ledevoir.com/*", "*://*.ledevoir.com/*",
"*://*.leparisien.fr/*", "*://*.leparisien.fr/*",
"*://*.medium.com/*", "*://*.medium.com/*",
@ -37,6 +38,7 @@
"*://*.repubblica.it/*", "*://*.repubblica.it/*",
"*://*.sfchronicle.com/*", "*://*.sfchronicle.com/*",
"*://*.sloanreview.mit.edu/*", "*://*.sloanreview.mit.edu/*",
"*://*.stuff.co.nz/*",
"*://*.techinasia.com/*", "*://*.techinasia.com/*",
"*://*.telegraaf.nl/*", "*://*.telegraaf.nl/*",
"*://*.the-american-interest.com/*", "*://*.the-american-interest.com/*",
@ -47,6 +49,7 @@
"*://*.thecourier.com.au/*", "*://*.thecourier.com.au/*",
"*://*.theglobeandmail.com/*", "*://*.theglobeandmail.com/*",
"*://*.thehindu.com/*", "*://*.thehindu.com/*",
"*://*.thenational.scot/*",
"*://*.thestar.com/*", "*://*.thestar.com/*",
"*://*.thewrap.com/*", "*://*.thewrap.com/*",
"*://*.trouw.nl/*", "*://*.trouw.nl/*",
@ -147,6 +150,7 @@
"*://*.ilmanifesto.it/*", "*://*.ilmanifesto.it/*",
"*://*.inc.com/*", "*://*.inc.com/*",
"*://*.inquirer.com/*", "*://*.inquirer.com/*",
"*://*.interest.co.nz/*",
"*://*.investorschronicle.co.uk/*", "*://*.investorschronicle.co.uk/*",
"*://*.irishtimes.com/*", "*://*.irishtimes.com/*",
"*://*.japantimes.co.jp/*", "*://*.japantimes.co.jp/*",
@ -192,6 +196,7 @@
"*://*.spectator.co.uk/*", "*://*.spectator.co.uk/*",
"*://*.spectator.com.au/*", "*://*.spectator.com.au/*",
"*://*.statista.com/*", "*://*.statista.com/*",
"*://*.stuff.co.nz/*",
"*://*.sun-sentinel.com/*", "*://*.sun-sentinel.com/*",
"*://*.techinasia.com/*", "*://*.techinasia.com/*",
"*://*.technologyreview.com/*", "*://*.technologyreview.com/*",
@ -211,6 +216,7 @@
"*://*.themarker.com/*", "*://*.themarker.com/*",
"*://*.themercury.com.au/*", "*://*.themercury.com.au/*",
"*://*.thenation.com/*", "*://*.thenation.com/*",
"*://*.thenational.scot/*",
"*://*.thesaturdaypaper.com.au/*", "*://*.thesaturdaypaper.com.au/*",
"*://*.thestar.com/*", "*://*.thestar.com/*",
"*://*.thetimes.co.uk/*", "*://*.thetimes.co.uk/*",

View File

@ -139,6 +139,7 @@ const useGoogleBotSites = [
'theaustralian.com.au', 'theaustralian.com.au',
'themarker.com', 'themarker.com',
'themercury.com.au', 'themercury.com.au',
'thenational.scot',
'thetimes.co.uk', 'thetimes.co.uk',
'wsj.com', 'wsj.com',
'kansascity.com', 'kansascity.com',
@ -174,12 +175,14 @@ const blockedRegexes = {
'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/, 'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/,
'lrb.co.uk': /.+\.tinypass\.com\/.+/, 'lrb.co.uk': /.+\.tinypass\.com\/.+/,
'nzherald.co.nz': /nzherald\.co\.nz\/.+\/headjs\/.+\.js/, 'nzherald.co.nz': /nzherald\.co\.nz\/.+\/headjs\/.+\.js/,
'interest.co.nz': /(.+\.presspatron\.com.+|.+interest\.co\.nz.+pp-ablock-banner\.js)/,
'repubblica.it': /scripts\.repubblica\.it\/pw\/pw\.js.+/, 'repubblica.it': /scripts\.repubblica\.it\/pw\/pw\.js.+/,
'spectator.co.uk': /.+\.tinypass\.com\/.+/, 'spectator.co.uk': /.+\.tinypass\.com\/.+/,
'spectator.com.au': /.+\.tinypass\.com\/.+/, 'spectator.com.au': /.+\.tinypass\.com\/.+/,
'telegraph.co.uk': /.+telegraph\.co\.uk.+martech.+/, 'telegraph.co.uk': /.+telegraph\.co\.uk.+martech.+/,
'thecourier.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/, 'thecourier.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/,
'thenation.com': /thenation\.com\/.+\/paywall-script\.php/, 'thenation.com': /thenation\.com\/.+\/paywall-script\.php/,
'thenational.scot': /(.+\.tinypass\.com\/.+|.+thenational\.scot.+omniture\.js|.+thenational\.scot.+responsive-sync.+)/,
'thewrap.com': /thewrap\.com\/.+\/wallkit\.js/, 'thewrap.com': /thewrap\.com\/.+\/wallkit\.js/,
'wsj.com': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/, 'wsj.com': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
'historyextra.com': /.+\.evolok\.net\/.+\/authorize\/.+/, 'historyextra.com': /.+\.evolok\.net\/.+\/authorize\/.+/,

View File

@ -154,6 +154,16 @@ if (matchDomain('elmercurio.com')) {
el.removeAttribute('style'); el.removeAttribute('style');
} }
} }
} else if (matchDomain('interest.co.nz')) {
const wrapper = document.getElementById('pp-ablock-banner-wrapper');
const overlay = document.querySelector('.black-overlay');
removeDOMElement(overlay, wrapper);
} else if (matchDomain('stuff.co.nz')) {
const overlay = document.querySelector('.x0');
removeDOMElement(overlay);
} else if (matchDomain('thenational.scot')) {
const overlay = document.querySelector('.template-container');
removeDOMElement(overlay);
} else if (matchDomain('thestar.com')) { } else if (matchDomain('thestar.com')) {
setTimeout(function () { setTimeout(function () {
const paywall = document.querySelector('.basic-paywall-new'); const paywall = document.querySelector('.basic-paywall-new');

View File

@ -46,6 +46,7 @@ const defaultSites = {
'History Extra': 'historyextra.com', 'History Extra': 'historyextra.com',
'Il Manifesto': 'ilmanifesto.it', 'Il Manifesto': 'ilmanifesto.it',
'Inc.com': 'inc.com', 'Inc.com': 'inc.com',
'Interest NZ': 'interest.co.nz',
'Investors Chronicle': 'investorschronicle.co.uk', 'Investors Chronicle': 'investorschronicle.co.uk',
'La Nacion': 'lanacion.com.ar', 'La Nacion': 'lanacion.com.ar',
'La Repubblica': 'repubblica.it', 'La Repubblica': 'repubblica.it',
@ -86,6 +87,7 @@ const defaultSites = {
'SOFREP': 'sofrep.com', 'SOFREP': 'sofrep.com',
'Star Tribune': 'startribune.com', 'Star Tribune': 'startribune.com',
'Statista': 'statista.com', 'Statista': 'statista.com',
'Stuff': 'stuff.co.nz',
'SunSentinel': 'sun-sentinel.com', 'SunSentinel': 'sun-sentinel.com',
'Tech in Asia': 'techinasia.com', 'Tech in Asia': 'techinasia.com',
'Telegraaf': 'telegraaf.nl', 'Telegraaf': 'telegraaf.nl',
@ -116,6 +118,7 @@ const defaultSites = {
'The Mercury Tasmania': 'themercury.com.au', 'The Mercury Tasmania': 'themercury.com.au',
'The Morning Call': 'mcall.com', 'The Morning Call': 'mcall.com',
'The Nation': 'thenation.com', 'The Nation': 'thenation.com',
'The National': 'thenational.scot',
'The News-Gazette': 'news-gazette.com', 'The News-Gazette': 'news-gazette.com',
'The New Yorker': 'newyorker.com', 'The New Yorker': 'newyorker.com',
'The New York Times': 'nytimes.com', 'The New York Times': 'nytimes.com',