Add GB News

This commit is contained in:
magnolia1234 2024-03-17 18:45:34 +01:00
parent bd5c109662
commit 7ac09de35a
7 changed files with 16 additions and 8 deletions

View file

@ -460,6 +460,7 @@ Grouped in options:\
[Evening Standard](https://www.standard.co.uk) - [Evening Standard](https://www.standard.co.uk) -
[Financial News](https://www.fnlondon.com) - [Financial News](https://www.fnlondon.com) -
[Financial Times](https://www.ft.com) - [Financial Times](https://www.ft.com) -
[GB News](https://www.gbnews.com) -
[Granta Magazine](https://granta.com) - [Granta Magazine](https://granta.com) -
[iNews](https://inews.co.uk) - [iNews](https://inews.co.uk) -
[Investors' Chronicle](https://www.investorschronicle.co.uk) - [Investors' Chronicle](https://www.investorschronicle.co.uk) -

View file

@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release Post-release
Add Courrier international Add Courrier international
Add GB News
Add LeMoniteur.fr (Groupe Infopro Digital) Add LeMoniteur.fr (Groupe Infopro Digital)
Add Observador.pt Add Observador.pt
Add Pour l'Eco Add Pour l'Eco

View file

@ -2874,7 +2874,7 @@ else if (document.querySelector('head > link[href="//ppt.promedia.nl"]') || docu
else else
csDone = true; csDone = true;
} else if ((window.location.hostname.match(/\.(ie|uk)$/) && !matchDomain(['investmentweek.co.uk', 'vogue.co.uk'])) || matchDomain(['apollo-magazine.com', 'autosport.com', 'citywire.com', 'fnlondon.com', 'ft.com', 'granta.com', 'scotsman.com', 'tes.com', 'unherd.com'])) {//united kingdom/ireland } else if ((window.location.hostname.match(/\.(ie|uk)$/) && !matchDomain(['investmentweek.co.uk', 'vogue.co.uk'])) || matchDomain(['apollo-magazine.com', 'autosport.com', 'citywire.com', 'fnlondon.com', 'ft.com', 'gbnews.com', 'granta.com', 'scotsman.com', 'tes.com', 'unherd.com'])) {//united kingdom/ireland
if (matchDomain('apollo-magazine.com')) { if (matchDomain('apollo-magazine.com')) {
let banner = document.querySelector('#subscribe-ribbon'); let banner = document.querySelector('#subscribe-ribbon');
@ -3048,6 +3048,11 @@ else if (matchDomain('ft.com')) {
hideDOMElement(...banners); hideDOMElement(...banners);
} }
else if (matchDomain('gbnews.com')) {
let ads = document.querySelectorAll('div.ad--billboard, div.ad--placeholder');
hideDOMElement(...ads);
}
else if (matchDomain('granta.com')) { else if (matchDomain('granta.com')) {
if (dompurify_loaded) if (dompurify_loaded)
getJsonUrl('div.article-sign-up-container', '', 'div.article-excerpt'); getJsonUrl('div.article-sign-up-container', '', 'div.article-excerpt');

View file

@ -51,5 +51,5 @@
"webRequestBlocking", "webRequestBlocking",
"*://*/*" "*://*/*"
], ],
"version": "3.5.9.7" "version": "3.5.9.8"
} }

View file

@ -272,11 +272,6 @@
"block_regex": "loader-cdn\\.azureedge\\.net", "block_regex": "loader-cdn\\.azureedge\\.net",
"domain": "gazette.com" "domain": "gazette.com"
}, },
"Gbnews.com": {
"allow_cookies": 1,
"block_regex": "\\.piano\\.io",
"domain": "gbnews.com"
},
"Gplanet.co.il (not lectures)": { "Gplanet.co.il (not lectures)": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "gplanet.co.il", "domain": "gplanet.co.il",

View file

@ -296,6 +296,7 @@
"*://*.ftm.nl/*", "*://*.ftm.nl/*",
"*://*.gazetadopovo.com.br/*", "*://*.gazetadopovo.com.br/*",
"*://*.gazzetta.it/*", "*://*.gazzetta.it/*",
"*://*.gbnews.com/*",
"*://*.geelongadvertiser.com.au/*", "*://*.geelongadvertiser.com.au/*",
"*://*.gelderlander.nl/*", "*://*.gelderlander.nl/*",
"*://*.genomeweb.com/*", "*://*.genomeweb.com/*",
@ -859,5 +860,5 @@
"*://archive.vn/*", "*://archive.vn/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.5.9.7" "version": "3.5.9.8"
} }

View file

@ -868,6 +868,11 @@ var defaultSites = {
allow_cookies: 1, allow_cookies: 1,
block_regex: /(\.tinypass\.com\/|cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/ block_regex: /(\.tinypass\.com\/|cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/
}, },
"GB News": {
domain: "gbnews.com",
allow_cookies: 1,
block_regex: /\.piano\.io\//
},
"Glassdoor (regwall)": { "Glassdoor (regwall)": {
domain: "glassdoor.com" domain: "glassdoor.com"
}, },