Add The Independent (UK - archive.today for premium)
This commit is contained in:
parent
5e32942152
commit
128b8101ff
@ -302,6 +302,7 @@ Grouped in options:\
|
||||
[Prospect Magazine](https://www.prospectmagazine.co.uk) -
|
||||
[The Athletic UK](https://theathletic.co.uk) -
|
||||
[The Economist](https://www.economist.com) -
|
||||
[The Independent](https://www.independent.co.uk) -
|
||||
[The New Statesman](https://www.newstatesman.com) -
|
||||
[The Spectator](https://www.spectator.co.uk) -
|
||||
[The Telegraph](https://www.telegraph.co.uk) -
|
||||
|
@ -5,6 +5,7 @@ Post-release
|
||||
Add Capital Gazette (local USA)
|
||||
Add Groupe Nice-Matin (France)
|
||||
Add Il Foglio (Italy)
|
||||
Add The Independent (UK - archive.today for premium)
|
||||
Fix group Tribune Publishing Company (js)
|
||||
Fix The New Statesman (Evolok)
|
||||
Update popup (permission to clear cookies)
|
||||
|
@ -1692,7 +1692,25 @@ else
|
||||
|
||||
} else if (window.location.hostname.match(/\.(ie|uk)$/) || matchDomain(['theathletic.com'])) {//united kingdom/ireland
|
||||
|
||||
if (matchDomain('prospectmagazine.co.uk')) {
|
||||
if (matchDomain('independent.co.uk')) {
|
||||
let url = window.location.href;
|
||||
if (url.includes('?amp')) {
|
||||
let ads = document.querySelectorAll('amp-ad, amp-embed, [id^="ad-"]');
|
||||
removeDOMElement(...ads);
|
||||
} else {
|
||||
let paywall = document.querySelector('div.article-premium');
|
||||
let related = document.querySelector('div.related');
|
||||
let msg = document.querySelector('div#bpc_archive');
|
||||
if (paywall && !related && !msg) {
|
||||
paywall.classList.remove('article-premium');
|
||||
let article = document.querySelector('div#main');
|
||||
if (article)
|
||||
article.insertBefore(archiveLink(url), article.firstChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('prospectmagazine.co.uk')) {
|
||||
let url = window.location.href;
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let paywall = document.querySelector('div.paywall_overlay_blend, div.paywall');
|
||||
@ -2564,6 +2582,8 @@ else if (matchDomain('nationalgeographic.com')) {
|
||||
if (overlay)
|
||||
overlay.classList.remove('Article__Content__Overlay--gated');
|
||||
}
|
||||
let ads = document.querySelectorAll('div.ad-slot');
|
||||
removeDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain('nationalreview.com')) {
|
||||
|
@ -39,5 +39,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.4.9.4"
|
||||
"version": "2.4.9.5"
|
||||
}
|
||||
|
@ -242,6 +242,7 @@
|
||||
"*://*.iltelegrafolivorno.it/*",
|
||||
"*://*.inc.com/*",
|
||||
"*://*.inc42.com/*",
|
||||
"*://*.independent.co.uk/*",
|
||||
"*://*.independent.ie/*",
|
||||
"*://*.indianexpress.com/*",
|
||||
"*://*.indystar.com/*",
|
||||
@ -591,5 +592,5 @@
|
||||
"*://*.wsj.net/*",
|
||||
"*://*.zephr.com/*"
|
||||
],
|
||||
"version": "2.4.9.4"
|
||||
"version": "2.4.9.5"
|
||||
}
|
||||
|
5
sites.js
5
sites.js
@ -1484,6 +1484,11 @@ var defaultSites = {
|
||||
allow_cookies: 1,
|
||||
block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad(s)?)-.+\.js)/
|
||||
},
|
||||
"The Independent": {
|
||||
domain: "independent.co.uk",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
|
||||
},
|
||||
"The Indian Express": {
|
||||
domain: "indianexpress.com",
|
||||
allow_cookies: 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user