Fix Belfast Telegraph/Independent.ie (css)

This commit is contained in:
magnolia1234 2022-07-30 07:41:59 +02:00
parent b2af340a78
commit 9c98053c81
6 changed files with 34 additions and 12 deletions

View file

@ -6,6 +6,7 @@ Add Crusoe (Brazil)
Add Golem.de
Add Le Soleil - Quebec (+ regional/opt-in to custom sites)
Remove Kurier.at (fix obsolete)
Fix Belfast Telegraph/Independent.ie (css)
Fix Bloomberg (graphics)
Fix Law.com (cookies)
Fix LesEchos.fr (timing)

View file

@ -95,10 +95,7 @@ if (ext_api.runtime) {
// check for opt-in confirmation (from background.js)
if ((bg2csData !== undefined) && bg2csData.optin_setcookie) {
if (domain = matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
if (!cookieExists('subscriber'))
setCookie('subscriber', '{"subscriptionStatus": true}', domain, '/', 14);
} else if (matchDomain(['crusoe.uol.com.br'])) {
if (matchDomain(['crusoe.uol.com.br'])) {
if (!cookieExists('crs_subscriber'))
setCookie('crs_subscriber', 1, 'crusoe.uol.com.br', '/', 14);
}
@ -2222,7 +2219,13 @@ else
} else if (window.location.hostname.match(/\.(ie|uk)$/)) {//united kingdom/ireland
if (matchDomain('independent.co.uk')) {
if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
let flip_pay = document.querySelector('div#flip-pay[style]');
if (flip_pay)
flip_pay.removeAttribute('style');
}
else if (matchDomain('independent.co.uk')) {
let url = window.location.href;
if (window.location.search.match(/(\?|&)amp/)) {
let ads = document.querySelectorAll('amp-ad, amp-embed, [id^="ad-"]');
@ -2343,7 +2346,7 @@ else if (matchDomain('thetimes.co.uk')) {
}
}
else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie']))
else
csDone = true;
} else if (window.location.hostname.match(/\.(br|cl|pe)$/) || matchDomain(['clarin.com', 'elespectador.com', 'elmercurio.com', 'latercera.com', 'lasegunda.com'])) {//south america

View file

@ -697,5 +697,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.7.6"
"version": "2.7.7.7"
}

View file

@ -14,9 +14,7 @@
<p><strong>Bypass Paywalls Clean<br> - setCookie/custom sites opt-in</strong></p>
<p><strong>setCookie opt-in</strong></p>
<p>For some sites (check list in options) a necessary cookie has to be set (this cookie doesn't contain any personal information about the user or device):<br><br>
Crusoé<br>
Irish Independent<br>
The Belfast Telegraph</p>
Crusoé</p>
<p>setCookie opt-in enabled: <span id="opt-in-enabled"></span></p>
<div id="optin-container">
<button id="optin-enable">Enable</button>

View file

@ -189,7 +189,7 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.tinypass\.com\//
},
"Belfast Telegraph (setCookie opt-in)": {
"Belfast Telegraph": {
domain: "belfasttelegraph.co.uk",
allow_cookies: 1,
block_regex: /(cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js)/
@ -873,7 +873,7 @@ var defaultSites = {
domain: "ipolitics.ca",
allow_cookies: 1
},
"Irish Independent (setCookie opt-in)": {
"Irish Independent": {
domain: "independent.ie",
allow_cookies: 1,
block_regex: /(cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js)/

View file

@ -1,4 +1,14 @@
{
"Belfast Telegraph (setCookie opt-in)": {
"domain": "belfasttelegraph.co.uk",
"allow_cookies": 1,
"block_regex": "(cdn\\.flip-pay\\.com\\/clients\\/inm\\/flip-pay\\.js)",
"cs_code": [{
"cond": "div#flip-pay[style]",
"rm_attrib": "style"
}
]
},
"Folha de S. Paulo": {
"domain": "###_br_folha",
"group": [
@ -17,6 +27,16 @@
"domain": "foreignaffairs.com",
"block_regex": "\\.foreignaffairs\\.com\\/modules\\/custom\\/fa_paywall_js\\/js\\/paywall\\.js"
},
"Irish Independent (setCookie opt-in)": {
"domain": "independent.ie",
"allow_cookies": 1,
"block_regex": "(cdn\\.flip-pay\\.com\\/clients\\/inm\\/flip-pay\\.js)",
"cs_code": [{
"cond": "div#flip-pay[style]",
"rm_attrib": "style"
}
]
},
"Krautreporter.de": {
"domain": "krautreporter.de",
"cs_code": [{