mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 04:01:58 +01:00
Fix Prospect Magazine & Star Tribune (timing)
This commit is contained in:
parent
4a44234340
commit
842c267b7a
5 changed files with 34 additions and 103 deletions
|
@ -4,6 +4,8 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Post-release
|
||||
Add Mainichi Shimbun (Japan)
|
||||
Fix Bloomberg (quotes)
|
||||
Fix Prospect Magazine (timing)
|
||||
Fix Star Tribune (timing)
|
||||
Update popup (domain to clear cookies)
|
||||
|
||||
* v2.5.1.0 (2022-01-09)
|
||||
|
|
|
@ -1718,14 +1718,12 @@ if (matchDomain('independent.co.uk')) {
|
|||
|
||||
else if (matchDomain('prospectmagazine.co.uk')) {
|
||||
let url = window.location.href;
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let paywall = document.querySelector('div.paywall_overlay_blend, div.paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url;
|
||||
replaceDomElementExt(url_cache, true, false, 'main');
|
||||
}
|
||||
});
|
||||
let paywall = document.querySelector('div.paywall_overlay_blend, div.paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url;
|
||||
replaceDomElementExt(url_cache, true, false, 'main');
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('spectator.co.uk')) {
|
||||
|
@ -2156,10 +2154,8 @@ else if (matchDomain(ca_torstar_domains)) {
|
|||
}
|
||||
|
||||
else if (matchDomain('cen.acs.org')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let meteredBar = document.querySelector('.meteredBar');
|
||||
removeDOMElement(meteredBar);
|
||||
});
|
||||
let meteredBar = document.querySelector('.meteredBar');
|
||||
removeDOMElement(meteredBar);
|
||||
}
|
||||
|
||||
else if (matchDomain('chronicle.com')) {
|
||||
|
@ -2257,33 +2253,23 @@ else if (matchDomain('economictimes.indiatimes.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('economist.com')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let subscribe = document.querySelector('.subscription-proposition');
|
||||
let wrapper = document.getElementById('bottom-page-wrapper');
|
||||
removeDOMElement(subscribe, wrapper);
|
||||
let adverts = document.querySelectorAll('div.advert');
|
||||
for (let advert of adverts)
|
||||
advert.setAttribute('style', 'display:none');
|
||||
window.setTimeout(function () {
|
||||
let paywall = document.querySelector('.layout-article-regwall'); ;
|
||||
if (paywall) {
|
||||
window.location.reload(true);
|
||||
}
|
||||
}, 600); // Delay (in milliseconds)
|
||||
let p_articles = document.querySelectorAll('p.article__body-text');
|
||||
let href;
|
||||
for (let p_article of p_articles) {
|
||||
let e_anchors = document.querySelectorAll('a');
|
||||
href = '';
|
||||
for (let e_anchor of e_anchors) {
|
||||
if (e_anchor.href) {
|
||||
href = e_anchor.href;
|
||||
} else {
|
||||
e_anchor.href = href;
|
||||
}
|
||||
let subscribe = document.querySelector('.subscription-proposition');
|
||||
let wrapper = document.getElementById('bottom-page-wrapper');
|
||||
let adverts = document.querySelectorAll('div.advert');
|
||||
removeDOMElement(subscribe, wrapper, ...adverts);
|
||||
let p_articles = document.querySelectorAll('p.article__body-text');
|
||||
let href;
|
||||
for (let p_article of p_articles) {
|
||||
let e_anchors = document.querySelectorAll('a');
|
||||
href = '';
|
||||
for (let e_anchor of e_anchors) {
|
||||
if (e_anchor.href) {
|
||||
href = e_anchor.href;
|
||||
} else {
|
||||
e_anchor.href = href;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('entrepreneur.com')) {
|
||||
|
@ -2838,13 +2824,8 @@ else if (matchDomain('staradvertiser.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('startribune.com')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let react_modal_portal = document.querySelectorAll('div.ReactModalPortal');
|
||||
removeDOMElement(...react_modal_portal);
|
||||
let body_modal = document.querySelector('body.ReactModal__Body--open');
|
||||
if (body_modal)
|
||||
body_modal.classList.remove('ReactModal__Body--open');
|
||||
});
|
||||
let ads = document.querySelectorAll('div.ad-placeholder');
|
||||
removeDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain('stocknews.com')) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
},
|
||||
"Abqjournal.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.amazonaws\\.com\\/abq_pw_",
|
||||
"block_regex": "\\.abqjournal\\.com\\/.+\\/abq-pw-manager\\.js",
|
||||
"domain": "abqjournal.com",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
|
|
4
sites.js
4
sites.js
|
@ -1340,7 +1340,8 @@ var defaultSites = {
|
|||
},
|
||||
"Star Tribune": {
|
||||
domain: "startribune.com",
|
||||
allow_cookies: 1
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.startribune\.com\/vendor\/js\//
|
||||
},
|
||||
"Statista": {
|
||||
domain: "statista.com",
|
||||
|
@ -1468,6 +1469,7 @@ var defaultSites = {
|
|||
},
|
||||
"The Economist": {
|
||||
domain: "economist.com",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.tinypass\.com\/cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
|
||||
},
|
||||
"The Globe and Mail": {
|
||||
|
|
|
@ -1,71 +1,17 @@
|
|||
{
|
||||
"Groupe Nice-Matin": {
|
||||
"domain": "###_fr_groupe_nice_matin",
|
||||
"group": [
|
||||
"monacomatin.mc",
|
||||
"nicematin.com",
|
||||
"varmatin.com"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"amp_unhide": 1,
|
||||
"block_regex": "(\\.poool\\.fr\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)",
|
||||
"cs_code": [{
|
||||
"cond": "div#article-teaser",
|
||||
"rm_attrib": "id"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Il Foglio": {
|
||||
"domain": "ilfoglio.it",
|
||||
"allow_cookies": 1,
|
||||
"amp_redirect": {
|
||||
"paywall": ".paywall"
|
||||
},
|
||||
"amp_unhide": 1,
|
||||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-((sticky-)?ad|subscriptions)-.+\\.js"
|
||||
},
|
||||
"Mainichi Shimbun": {
|
||||
"domain": "mainichi.jp",
|
||||
"allow_cookies": 1,
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Science (free articles only)": {
|
||||
"domain": "science.org",
|
||||
"Star Tribune": {
|
||||
"domain": "startribune.com",
|
||||
"allow_cookies": 1,
|
||||
"cs_code": [{
|
||||
"cond": "div.alert-read-limit",
|
||||
"rm_elem": 1
|
||||
}, {
|
||||
"cond": "body.alert-read-limit__overlay",
|
||||
"rm_attrib": "class"
|
||||
}
|
||||
]
|
||||
"block_regex": "\\.startribune\\.com\\/vendor\\/js\\/"
|
||||
},
|
||||
"The Indian Express": {
|
||||
"domain": "indianexpress.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\/indianexpress\\.com\\/.+\\/indianexpress\\/js\\/(evolok\\/.+|min\\/premiumContent)\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)"
|
||||
},
|
||||
"The New Statesman": {
|
||||
"domain": "newstatesman.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.newstatesman\\.com\\/.+\\/nsmg-evolok-paywall\\/.+\\.js"
|
||||
},
|
||||
"Tribune Publishing Company": {
|
||||
"domain": "###_usa_tribune",
|
||||
"group": [
|
||||
"baltimoresun.com",
|
||||
"capitalgazette.com",
|
||||
"chicagotribune.com",
|
||||
"courant.com",
|
||||
"dailypress.com",
|
||||
"mcall.com",
|
||||
"nydailynews.com",
|
||||
"orlandosentinel.com",
|
||||
"pilotonline.com",
|
||||
"sun-sentinel.com"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.tribdss\\.com\\/|\\.zephr\\.com\\/zephr-browser\\/.+\\/zephr-browser\\.umd\\.js)"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue