Add The Scotsman

This commit is contained in:
magnolia1234 2022-10-23 18:11:32 +02:00
parent bfba758fef
commit 9e3ae5c371
7 changed files with 30 additions and 4 deletions

View file

@ -400,6 +400,7 @@ Grouped in options:\
[The Irish Times](https://www.irishtimes.com) -
[The New European](https://www.theneweuropean.co.uk) -
[The New Statesman](https://www.newstatesman.com) -
[The Scotsman](https://www.scotsman.com) -
[The Spectator](https://www.spectator.co.uk) -
[The Telegraph](https://www.telegraph.co.uk) -
[The Times (link to archive.today)](https://www.thetimes.co.uk) -

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Humanite.fr
Add Philonomist (text)
Add The Scotsman
Remove Daily Nation (no paywall)
Remove MediaNama (fix obsolete)
Fix ABC.es (Sevilla)

View file

@ -1486,7 +1486,7 @@ else if (matchDomain('lesinrocks.com')) {
}
else if (matchDomain('lexpress.fr')) {
let ads = document.querySelectorAll('div.block_pub, div.bottom-bar-full, div.pub_content_display, div.ban-bottom');
let ads = document.querySelectorAll('div[class^="block_pub"], div.bottom-bar-full, div.tead, div.ban-bottom');
removeDOMElement(...ads);
}
@ -2103,7 +2103,7 @@ else if (matchDomain('vn.nl')) {
else
csDone = true;
} else if (window.location.hostname.match(/\.(ie|uk)$/)) {//united kingdom/ireland
} else if (window.location.hostname.match(/\.(ie|uk)$/) || matchDomain(['scotsman.com'])) {//united kingdom/ireland
if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
let flip_pay = document.querySelector('div#flip-pay[style]');
@ -2144,6 +2144,14 @@ else if (matchDomain('prospectmagazine.co.uk')) {
}, 1000);
}
else if (matchDomain('scotsman.com')) {
let premium = document.querySelector('div.premium.no-entitlement');
if (premium)
premium.classList.remove('no-entitlement');
let ads = document.querySelectorAll('div[class^="MarkupAds__Container-"], div[class^="Dailymotion__Wrapper-"], div.OUTBRAIN');
removeDOMElement(...ads);
}
else if (matchDomain('spectator.co.uk')) {
if (window.location.pathname.startsWith('/article/')) {
let body_par = document.querySelector('p[class^="ContentPageBodyParagraph"]');

View file

@ -521,6 +521,7 @@
"*://*.sciencesetavenir.fr/*",
"*://*.scientificamerican.com/*",
"*://*.scmp.com/*",
"*://*.scotsman.com/*",
"*://*.sdbj.com/*",
"*://*.seattletimes.com/*",
"*://*.seekingalpha.com/*",
@ -720,5 +721,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.9.5"
"version": "2.8.9.6"
}

View file

@ -18,7 +18,7 @@
<div style="width:275px"><strong>Bypass Paywalls Clean <span id="version"></span></strong><span id="site_switch_span">&nbsp;&nbsp;</span></div>
<div><a href="options.html" target="_blank">Options</a> |
<a href="options_custom.html" target="_blank">Custom</a> |
<a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean" target="_blank">GitLab</a> |
<a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean" target="_blank">Help</a> |
<a href="https://twitter.com/Magnolia1234B" target="_blank">Twitter</a></div>
<div><a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/raw/master/changelog.txt" target="_blank">Changelog</a> |
<button id="clear_cookies" title="clear cookies (and local storage) for current site">clear cookies</button> |

View file

@ -1901,6 +1901,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /(\.seattletimes\.com\/wp-content\/.+\/st-(advertising|blocking)-bundle\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
},
"The Scotsman": {
domain: "scotsman.com",
allow_cookies: 1,
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
},
"The Spectator (UK)": {
domain: "spectator.co.uk",
block_regex: /\.tinypass\.com\//

View file

@ -47,6 +47,16 @@
"allow_cookies": 1,
"block_regex": "\\.qiota\\.com\\/"
},
"The Scotsman": {
"domain": "scotsman.com",
"allow_cookies": 1,
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
"cs_code": [{
"cond": "div.premium.no-entitlement",
"rm_class": "no-entitlement"
}
]
},
"The Washington Post": {
"domain": "washingtonpost.com",
"allow_cookies": 1,