mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Fix-update Boston Globe (no opt-in)
This commit is contained in:
parent
bcc231d1cd
commit
674c1b4f48
6 changed files with 19 additions and 11 deletions
|
@ -280,7 +280,7 @@ var blockedRegexes = {
|
|||
'billboard.com': /(cdn\.cxense\.com\/|\.tinypass\.com\/)/,
|
||||
'bizjournals.com': /(assets\.bizjournals\.com\/static\/js\/app\/cxense\.js|cdn\.cxense\.com\/)/,
|
||||
'bloomberg.com': /(\.tinypass\.com\/|assets\.bwbx\.io\/s3\/fence\/)/,
|
||||
'bostonglobe.com': /meter\.bostonglobe\.com\/js\//,
|
||||
'bostonglobe.com': /\.blueconic\.net\//,
|
||||
'businessinsider.com': /\.tinypass\.com\//,
|
||||
'challenges.fr': /\.poool\.fr\//,
|
||||
'charliehebdo.fr': /\.poool\.fr\//,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Fix-update Boston Globe (no opt-in)
|
||||
|
||||
* v2.2.5.0 (2021-06-13)
|
||||
Add The Wrap
|
||||
|
|
|
@ -25,7 +25,7 @@ var div_bpc_done = document.querySelector('div#bpc_done');
|
|||
if (!div_bpc_done) {
|
||||
|
||||
// listen to responses from background script
|
||||
if (ext_api.runtime && (matchDomain(['belfasttelegraph.co.uk', 'bostonglobe.com', 'independent.ie']) || window.location.hostname.match(/\.(com|net)\.au$/))) {
|
||||
if (ext_api.runtime && (matchDomain(['belfasttelegraph.co.uk', 'independent.ie']) || window.location.hostname.match(/\.(com|net)\.au$/))) {
|
||||
ext_api.runtime.onMessage.addListener(function (message, sender) {
|
||||
// setCookie opt-in
|
||||
if (message.optIn) {
|
||||
|
@ -38,12 +38,7 @@ if (ext_api.runtime && (matchDomain(['belfasttelegraph.co.uk', 'bostonglobe.com'
|
|||
if (!cookieExists('subscribed'))
|
||||
setCookie('subscribed', 'true', domain, '/', 14);
|
||||
} else {
|
||||
if (matchDomain('bostonglobe.com')) {
|
||||
if (!cookieExists('s_fid')) {
|
||||
let s_fid = genHexString(16) + '-' + genHexString(16);
|
||||
setCookie('s_fid', s_fid, 'bostonglobe.com', '/', 14);
|
||||
}
|
||||
} else if (domain = matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
|
||||
if (domain = matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
|
||||
if (!cookieExists('subscriber'))
|
||||
setCookie('subscriber', '{"subscriptionStatus": true}', domain, '/', 14);
|
||||
if (hostname.includes('amp.')) {
|
||||
|
@ -1637,6 +1632,19 @@ else if (matchDomain('bloombergquint.com')) {
|
|||
removeDOMElement(articlesLeftModal, paywall);
|
||||
}
|
||||
|
||||
else if (matchDomain('bostonglobe.com')) {
|
||||
let paywall = document.querySelector('div.meter-paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let body_hidden = document.querySelector('body[style]');
|
||||
if (body_hidden)
|
||||
body_hidden.removeAttribute('style');
|
||||
let continue_button = document.querySelector('button.continue_button');
|
||||
if (continue_button)
|
||||
continue_button.click();
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('business-standard.com')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let skip_button = document.querySelector('a.btn_skip');
|
||||
|
|
|
@ -526,5 +526,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.5.0"
|
||||
"version": "2.2.5.1"
|
||||
}
|
|
@ -15,7 +15,6 @@
|
|||
<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>
|
||||
Australian Provincial Newspapers<br/>
|
||||
Boston Globe<br>
|
||||
Irish Independent<br>
|
||||
The Belfast Telegraph</p>
|
||||
<p>setCookie opt-in enabled: <span id="opt-in-enabled"></span></p>
|
||||
|
|
2
sites.js
2
sites.js
|
@ -243,7 +243,7 @@ var defaultSites =
|
|||
"The Atlanta Journal-Constitution": "ajc.com",
|
||||
"The Atlantic": "theatlantic.com",
|
||||
"The Australian Financial Review": "afr.com",
|
||||
"The Boston Globe (opt-in)": "bostonglobe.com",
|
||||
"The Boston Globe": "bostonglobe.com",
|
||||
"The Business Journals": "bizjournals.com",
|
||||
"The Christian Science Monitor": "csmonitor.com",
|
||||
"The Daily Beast (free articles only)": "thedailybeast.com",
|
||||
|
|
Loading…
Reference in a new issue