mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:07:47 +01:00
Fix-update Australian Provincial Newspapers (Gb)
This commit is contained in:
parent
b5588da005
commit
f6fdb10bda
7 changed files with 15 additions and 29 deletions
|
@ -265,8 +265,7 @@ So don't update to Firefox 79 or use Firefox Nightly (and load BPC from a custom
|
|||
[The Standard](https://www.standard.net.au) -
|
||||
[Western Advocate](https://www.westernadvocate.com.au)
|
||||
|
||||
#### > Australian Provincial Newspapers (all)
|
||||
For example:
|
||||
#### > Australian Provincial Newspapers
|
||||
[Bundaberg News Mail](https://www.news-mail.com.au) -
|
||||
[Fraser Coast Chronicle](https://www.frasercoastchronicle.com.au) -
|
||||
[Gladstone Observer](https://www.gladstoneobserver.com.au) -
|
||||
|
|
|
@ -340,6 +340,7 @@ ext_api.storage.sync.get({
|
|||
enabledSites = enabledSites.concat(au_prov_news_domains);
|
||||
for (let domain of au_prov_news_domains) {
|
||||
allow_cookies.push(domain);
|
||||
use_google_bot.push(domain);
|
||||
}
|
||||
} else
|
||||
disabledSites = disabledSites.concat(au_prov_news_domains);
|
||||
|
@ -604,9 +605,8 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
let inkl_site = (matchUrlDomain('cdn.jsdelivr.net', details.url) && matchUrlDomain('inkl.com', header_referer) && isSiteEnabled({url: header_referer}));
|
||||
let bloomberg_site = (matchUrlDomain('assets.bwbx.io', details.url) && matchUrlDomain('bloomberg.com', header_referer) && isSiteEnabled({url: header_referer}));
|
||||
let au_nc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(au_news_corp_domains, header_referer) && isSiteEnabled({url: header_referer}));
|
||||
let au_apn_site = (header_referer && (urlHost(header_referer).endsWith('com.au') || urlHost(header_referer).endsWith('net.au')) && details.url.includes('https://media.apnarm.net.au/'));
|
||||
let au_swm_site = (header_referer && urlHost(header_referer).endsWith('com.au') && details.url.includes('https://s.thewest.com.au/'));
|
||||
if (!isSiteEnabled(details) && !(inkl_site) && !(bloomberg_site) && !(au_nc_amp_site) && !(au_apn_site) && !(au_swm_site)) {
|
||||
if (!isSiteEnabled(details) && !(inkl_site) && !(bloomberg_site) && !(au_nc_amp_site) && !(au_swm_site)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -680,7 +680,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
|
||||
if (tabId !== -1) {
|
||||
ext_api.tabs.get(tabId, function (currentTab) {
|
||||
if (isSiteEnabled(currentTab) || medium_custom_domain || au_apn_site || au_swm_site) {
|
||||
if (isSiteEnabled(currentTab) || medium_custom_domain || au_swm_site) {
|
||||
ext_api.tabs.executeScript(tabId, {
|
||||
file: 'contentScript.js',
|
||||
runAt: 'document_start'
|
||||
|
|
|
@ -6,9 +6,10 @@ Add Foreign Affairs
|
|||
Add Il Resto del Carlino (Italy)
|
||||
Add The Logic (Canada)
|
||||
Add The New York Review of Books
|
||||
Fix-update The West Australian (timing)
|
||||
Fix-update Australian Provincial Newspapers (Googlebot)
|
||||
Fix-update Funke Medien (TinyPass)
|
||||
Fix bug in NY Times (hidden iframe-content)
|
||||
Fix-update The West Australian (timing)
|
||||
|
||||
* v1.9.1.1 (2020-10-19)
|
||||
Hotfix remove cookies (www)
|
||||
|
|
|
@ -12,18 +12,6 @@ if (!matchDomain(arr_localstorage_hold)){
|
|||
ext_api.runtime.onMessage.addListener(function (message, sender) {
|
||||
// setCookie opt-in
|
||||
if (message.optIn) {
|
||||
let hostname = window.location.hostname;
|
||||
if (hostname.endsWith(".com.au") || hostname.endsWith(".net.au")) {
|
||||
// Australian Provincial Newspapers
|
||||
domain = window.location.hostname.replace('www.', '');
|
||||
let au_apn_script = document.querySelector('script[src^="https://media.apnarm.net.au/"]');
|
||||
if (au_apn_script || (domain = matchDomain(['news-mail.com.au', 'frasercoastchronicle.com.au', 'gladstoneobserver.com.au', 'dailyexaminer.com.au', 'dailymercury.com.au', 'themorningbulletin.com.au', 'sunshinecoastdaily.com.au', 'gympietimes.com.au', 'northernstar.com.au', 'qt.com.au', 'thechronicle.com.au', 'warwickdailynews.com.au']))) {
|
||||
if (!cookieExists('subscribed')) {
|
||||
setCookie('subscribed', 'true', domain, '/', 14);
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
if (matchDomain('bostonglobe.com')) {
|
||||
if (!cookieExists('s_fid')) {
|
||||
let s_fid = genHexString(16) + '-' + genHexString(16);
|
||||
|
@ -35,7 +23,6 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// ask for opt-in confirmation
|
||||
|
|
|
@ -333,5 +333,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.9.1.5"
|
||||
"version": "1.9.1.6"
|
||||
}
|
|
@ -13,7 +13,6 @@
|
|||
<p><strong>Bypass Paywalls Clean<br> - setCookie/custom sites opt-in</strong></p>
|
||||
<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>
|
||||
|
|
2
sites.js
2
sites.js
|
@ -9,7 +9,7 @@ var defaultSites =
|
|||
"Atavist Magazine": "atavist.com",
|
||||
"Australia News Corp": "###_au_news_corp",
|
||||
"Australian Community Media (daily)": "###_au_comm_media",
|
||||
"Australian Provincial Newspapers (daily) (opt-in)": "###_au_prov_news",
|
||||
"Australian Provincial Newspapers (daily)": "###_au_prov_news",
|
||||
"Baltimore Sun": "baltimoresun.com",
|
||||
"Barron's": "barrons.com",
|
||||
"BBC History Extra": "historyextra.com",
|
||||
|
|
Loading…
Reference in a new issue