Add The Independent (UK - archive.today for premium)

merge-requests/3/head
magnolia1234 2 years ago
parent 6c83a28d32
commit ed10aa8d0e

@ -280,6 +280,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')) {

@ -254,6 +254,7 @@
"*://*.iltelegrafolivorno.it/*",
"*://*.inc.com/*",
"*://*.inc42.com/*",
"*://*.independent.co.uk/*",
"*://*.independent.ie/*",
"*://*.indianexpress.com/*",
"*://*.indystar.com/*",
@ -603,5 +604,5 @@
"*://*.wsj.net/*",
"*://*.zephr.com/*"
],
"version": "2.4.9.4"
"version": "2.4.9.5"
}

@ -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…
Cancel
Save