mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 04:01:58 +01:00
Add The Logic (Canada)
This commit is contained in:
parent
53ef43f6c6
commit
487b8cdd9a
6 changed files with 23 additions and 13 deletions
|
@ -125,6 +125,7 @@ So don't update to Firefox 79 or use Firefox Nightly (and load BPC from a custom
|
|||
[Le Devoir](https://www.ledevoir.com) -
|
||||
[National Post](https://www.nationalpost.com) -
|
||||
[The Globe and Mail](https://www.theglobeandmail.com) -
|
||||
[The Logic](https://thelogic.co) -
|
||||
[The Toronto Star](https://www.thestar.com)
|
||||
|
||||
#### Europe
|
||||
|
|
|
@ -104,10 +104,10 @@ var remove_cookies = [
|
|||
|
||||
// select specific cookie(s) to hold from remove_cookies domains
|
||||
const remove_cookies_select_hold = {
|
||||
'barrons.com': ['wsjregion'],
|
||||
'newstatesman.com': ['STYXKEY_nsversion'],
|
||||
'qz.com': ['gdpr'],
|
||||
'wsj.com': ['wsjregion']
|
||||
'barrons.com': ['wsjregion'],
|
||||
'newstatesman.com': ['STYXKEY_nsversion'],
|
||||
'qz.com': ['gdpr'],
|
||||
'wsj.com': ['wsjregion']
|
||||
}
|
||||
|
||||
// list of regional ad.nl sites
|
||||
|
@ -115,16 +115,16 @@ const ad_region_domains = ['bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.
|
|||
|
||||
// select only specific cookie(s) to drop from remove_cookies domains
|
||||
var remove_cookies_select_drop = {
|
||||
'ad.nl': ['temptationTrackingId'],
|
||||
'caixinglobal.com': ['CAIXINGLB_LOGIN_UUID'],
|
||||
'dn.se': ['randomSplusId'],
|
||||
'fd.nl': ['socialread'],
|
||||
'nrc.nl': ['counter'],
|
||||
'theatlantic.com': ['articleViews']
|
||||
'ad.nl': ['temptationTrackingId'],
|
||||
'caixinglobal.com': ['CAIXINGLB_LOGIN_UUID'],
|
||||
'dn.se': ['randomSplusId'],
|
||||
'fd.nl': ['socialread'],
|
||||
'nrc.nl': ['counter'],
|
||||
'theatlantic.com': ['articleViews']
|
||||
}
|
||||
for (var domainIndex in ad_region_domains) {
|
||||
let domain = ad_region_domains[domainIndex];
|
||||
remove_cookies_select_drop[domain] = ['temptationTrackingId'];
|
||||
let domain = ad_region_domains[domainIndex];
|
||||
remove_cookies_select_drop[domain] = ['temptationTrackingId'];
|
||||
}
|
||||
|
||||
// Override User-Agent with Googlebot
|
||||
|
@ -857,6 +857,7 @@ ext_api.storage.sync.get(["optInShown", "customShown"], function (result) {
|
|||
|
||||
function isSiteEnabled(details) {
|
||||
var enabledSite = matchUrlDomain(enabledSites, details.url);
|
||||
if (ext_name.includes(' for ')) enabledSite = '';
|
||||
if (enabledSite in restrictions) {
|
||||
return restrictions[enabledSite].test(details.url);
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
|
||||
Post-release
|
||||
Add Il Resto del Carlino (Italy)
|
||||
Add The Logic (Canada)
|
||||
Add The New York Review of Books
|
||||
Fix-update Funke Medien (TinyPass)
|
||||
|
||||
|
|
|
@ -1378,6 +1378,11 @@ else if (matchDomain("nybooks.com")) {
|
|||
paywall_article.classList.remove('paywall-article');
|
||||
}
|
||||
|
||||
else if (matchDomain("thelogic.co")) {
|
||||
let article_subscribe = document.querySelector('.article-subscribe');
|
||||
removeDOMElement(article_subscribe);
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
|
|
@ -257,6 +257,7 @@
|
|||
"*://*.thediplomat.com/*",
|
||||
"*://*.theglobeandmail.com/*",
|
||||
"*://*.thehindu.com/*",
|
||||
"*://*.thelogic.co/*",
|
||||
"*://*.themarker.com/*",
|
||||
"*://*.themercury.com.au/*",
|
||||
"*://*.themorningbulletin.com.au/*",
|
||||
|
@ -331,5 +332,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.9.1.3"
|
||||
"version": "1.9.1.4"
|
||||
}
|
1
sites.js
1
sites.js
|
@ -171,6 +171,7 @@ var defaultSites =
|
|||
"The Hindu": "thehindu.com",
|
||||
"The Irish Times": "irishtimes.com",
|
||||
"The Japan Times": "japantimes.co.jp",
|
||||
"The Logic": "thelogic.co",
|
||||
"The Marker": "themarker.com",
|
||||
"The Mercury News": "mercurynews.com",
|
||||
"The Morning Call": "mcall.com",
|
||||
|
|
Loading…
Reference in a new issue