mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Add National World Publishing (UK)
This commit is contained in:
parent
2e5bcd5f4d
commit
f35a9f6573
12
README.md
12
README.md
@ -1,7 +1,7 @@
|
||||
# Bypass Paywalls Clean for Firefox
|
||||
|
||||
Add-on allows you to read articles from (supported) sites that implement a paywall.
|
||||
You can also add domains as custom site and try to bypass the paywall.
|
||||
You can also add a domain as custom site and try to bypass the paywall.
|
||||
Weekly updates are released for fixes and new sites.
|
||||
|
||||
* [Installation](#installation)
|
||||
@ -26,7 +26,7 @@ Minumum browser requirement: Firefox 86+.
|
||||
If you want to permanently install the latest [master ZIP-file from GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/archive/master/bypass-paywalls-firefox-clean-master.zip) use a Firefox browser which allows using unsigned add-ons like Firefox Developer Portable (go to about:config and set xpinstall.signatures.required to false) or LibreWolf (for both no automatic updates of add-on).\
|
||||
Or load a temporary add-on in regular Firefox (go to about:debugging#/runtime/this-firefox & load manifest.json from unpacked folder (of master-zip)).
|
||||
|
||||
By default BPC has limited host permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for non-listed sites). You can also just request permissions for the custom sites you added yourself (or click `clear cookies` (BPC-icon) to ask for permission for current site).\
|
||||
By default BPC has limited host permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for unlisted sites). You can also just request permissions for the custom sites you added yourself (or click `clear cookies` (BPC-icon) to ask for permission for current site).\
|
||||
You can also install the custom add-on version (with host permissions for all sites).
|
||||
|
||||
### Update
|
||||
@ -404,13 +404,17 @@ 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.is)](https://www.thetimes.co.uk) -
|
||||
[The Times Literary Supplement](https://www.the-tls.co.uk) -
|
||||
[UnHerd](https://unherd.com)
|
||||
|
||||
Grouped in options:\
|
||||
*National World Publishing* sites like (opt-in to custom sites for unlisted)\
|
||||
[The Scotsman](https://www.scotsman.com) -
|
||||
[Yorkshire Post](https://www.yorkshirepost.co.uk)
|
||||
|
||||
##### Denmark
|
||||
[Berlingske](https://www.berlingske.dk)
|
||||
|
||||
@ -877,7 +881,7 @@ Remember to check the [previous requests](https://gitlab.com/magnolia1234/bypass
|
||||
### Add custom site
|
||||
Add your own custom site (also for testing).
|
||||
Check 'Options'-link in popup-menu and go to custom sites.
|
||||
\* by default BPC has limited permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for non-listed sites). You can also just request permissions for the custom sites you added yourself (or `clear cookies` (BPC-icon) to ask for permission for current site).
|
||||
\* by default BPC has limited permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for unlisted sites). You can also just request permissions for the custom sites you added yourself (or `clear cookies` (BPC-icon) to ask for permission for current site).
|
||||
|
||||
By default sites' cookies/local storage are blocked/removed (for example to bypass article limit when metered paywall).
|
||||
|
||||
|
@ -406,7 +406,7 @@ ext_api.storage.local.get({
|
||||
} else {
|
||||
ext_api.management.getSelf(function (result) {
|
||||
if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) {
|
||||
let new_groups = ['###_be_roularta', '###_de_noz_mhn'];
|
||||
let new_groups = ['###_be_roularta', '###_de_noz_mhn', '###_uk_nat_world'];
|
||||
let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))) ||
|
||||
(enabledSites.includes('tinypass.com') && !enabledSites.includes('piano.io'));
|
||||
if (open_options)
|
||||
|
@ -4,6 +4,7 @@ Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/release
|
||||
|
||||
Post-release
|
||||
Add DHnet.be
|
||||
Add National World Publishing (UK)
|
||||
Add Roularta Media Group (be)
|
||||
Add TagesAnzeiger.ch (link to archive.is)
|
||||
Remove Asia Times (fix obsolete)
|
||||
|
@ -30,6 +30,7 @@ var nl_dpg_media_domains = ['demorgen.be', 'humo.be', 'parool.nl', 'trouw.nl', '
|
||||
var no_nhst_media_domains = ['europower-energi.no', 'fiskeribladet.no', 'intrafish.com', 'intrafish.no', 'rechargenews.com', 'tradewindsnews.com', 'upstreamonline.com'];
|
||||
var pe_grupo_elcomercio_domains = ['diariocorreo.pe', 'elcomercio.pe', 'gestion.pe'];
|
||||
var timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.com'];
|
||||
var uk_nat_world_domains = ['scotsman.com', 'yorkshirepost.co.uk'];
|
||||
var usa_adv_local_domains = ['al.com', 'cleveland.com', 'lehighvalleylive.com', 'masslive.com', 'mlive.com', 'nj.com', 'oregonlive.com', 'pennlive.com', 'silive.com', 'syracuse.com'];
|
||||
var usa_conde_nast_domains = ['architecturaldigest.com', 'bonappetit.com', 'gq.com' , 'newyorker.com', 'vanityfair.com', 'vogue.com', 'wired.com'];
|
||||
var usa_craincomm_domains = ['adage.com', 'autonews.com', 'chicagobusiness.com', 'crainscleveland.com', 'crainsdetroit.com', 'crainsnewyork.com', 'modernhealthcare.com'];
|
||||
@ -2552,14 +2553,6 @@ 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')) {
|
||||
let banner = document.querySelector('#subscribe-ribbon');
|
||||
removeDOMElement(banner);
|
||||
@ -2624,6 +2617,23 @@ else if (matchDomain('thetimes.co.uk')) {
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain(uk_nat_world_domains) || document.querySelector('footer > div a[href^="https://www.nationalworldplc.com"]')) {
|
||||
let premium = document.querySelector('div.premium');
|
||||
if (premium)
|
||||
premium.removeAttribute('class');
|
||||
let amp_images = document.querySelectorAll('article amp-img[src^="https://"]');
|
||||
for (let amp_image of amp_images) {
|
||||
let elem = document.createElement('img');
|
||||
Object.assign(elem, {
|
||||
src: amp_image.getAttribute('src'),
|
||||
alt: amp_image.getAttribute('alt')
|
||||
});
|
||||
amp_image.parentNode.replaceChild(elem, amp_image);
|
||||
}
|
||||
let ads = document.querySelectorAll('div[class^="MarkupAds__Container-"], div[class*="_AdContainer-"], div[class^="Dailymotion__Wrapper-"], div.OUTBRAIN');
|
||||
removeDOMElement(...ads);
|
||||
}
|
||||
|
||||
else
|
||||
csDone = true;
|
||||
|
||||
|
@ -77,6 +77,9 @@ window.setTimeout(function () {
|
||||
} else if (hostname.endsWith('.nl')) {
|
||||
if (document.querySelector('script[src*=".ndcmediagroep.nl/"]'))
|
||||
group = '###_nl_mediahuis_noord';
|
||||
} else if (hostname.endsWith('.co.uk')) {
|
||||
if (document.querySelector('footer > div a[href^="https://www.nationalworldplc.com"]'))
|
||||
group = '###_uk_nat_world';
|
||||
} else if (hostname.match(/\.(ca|com|net|org)$/)) {
|
||||
if (document.querySelector('picture > source[srcset*="%2Fgcm.omerlocdn.com%2F"]'))
|
||||
group = '###_ca_gcm';
|
||||
|
@ -51,5 +51,5 @@
|
||||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.0.5.5"
|
||||
"version": "3.0.5.6"
|
||||
}
|
||||
|
@ -696,6 +696,7 @@
|
||||
"*://*.wwd.com/*",
|
||||
"*://*.wz.de/*",
|
||||
"*://*.yogajournal.com/*",
|
||||
"*://*.yorkshirepost.co.uk/*",
|
||||
"*://*.zeit.de/*",
|
||||
"*://*.zerohedge.com/*",
|
||||
"*://*.ampproject.org/*",
|
||||
@ -738,5 +739,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.0.5.5"
|
||||
"version": "3.0.5.6"
|
||||
}
|
||||
|
14
sites.js
14
sites.js
@ -1337,6 +1337,15 @@ var defaultSites = {
|
||||
domain: "nationalreview.com",
|
||||
block_regex: /(\.nationalreview\.com\/script\.js|\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
},
|
||||
"National World Publishing (UK)": {
|
||||
domain: "###_uk_nat_world",
|
||||
group: [
|
||||
"scotsman.com",
|
||||
"yorkshirepost.co.uk"
|
||||
],
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.tinypass\.com\/|\.axate\.io\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
},
|
||||
"Nautilus": {
|
||||
domain: "nautil.us",
|
||||
allow_cookies: 1,
|
||||
@ -2030,11 +2039,6 @@ var defaultSites = {
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.seattletimes\.com\/.+\/st-user-messaging.+\.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",
|
||||
useragent: "googlebot"
|
||||
|
Loading…
Reference in New Issue
Block a user