Fix Australian Provincial Newspapers (now all)
This commit is contained in:
parent
521ab887b0
commit
a2e77b6733
123
README.md
123
README.md
@ -161,67 +161,6 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
|
||||
[The Sacramento Bee](https://www.sacbee.com) -
|
||||
[Winston-Salem Journal](https://www.journalnow.com)
|
||||
|
||||
#### Australia/New Zealand
|
||||
|
||||
[Brisbane Times](https://www.brisbanetimes.com.au) -
|
||||
[New Zealand Herald](https://www.nzherald.co.nz) -
|
||||
[The Age](https://www.theage.com.au) -
|
||||
[The Australian Financial Review](https://www.afr.com) -
|
||||
[The Saturday Paper](https://www.thesaturdaypaper.com.au) -
|
||||
[The Spectator Australia](https://www.spectator.com.au) -
|
||||
[The Sydney Morning Herald](https://www.smh.com.au) –
|
||||
[WAtoday](https://www.watoday.com.au)
|
||||
|
||||
##### > News Corp Australia
|
||||
[Cairns Post](https://www.cairnspost.com.au) –
|
||||
[Geelong Advertiser](https://www.geelongadvertiser.com.au) -
|
||||
[Gold Coast Bulletin](https://www.goldcoastbulletin.com.au) –
|
||||
[Herald Sun](https://www.heraldsun.com.au) –
|
||||
[Northern Territory News](https://www.ntnews.com.au) –
|
||||
[The Advertiser/AdelaideNow](https://www.adelaidenow.com.au) –
|
||||
[The Australian](https://www.theaustralian.com.au) -
|
||||
[The Courier-Mail](https://www.couriermail.com.au) –
|
||||
[The Daily Telegraph](https://www.dailytelegraph.com.au) –
|
||||
[The Mercury Tasmania](https://www.themercury.com.au) -
|
||||
[The Weekly Times](https://www.weeklytimesnow.com.au) –
|
||||
[Townsville Bulletin](https://www.townsvillebulletin.com.au)
|
||||
|
||||
##### > Financial
|
||||
|
||||
[Eureka Report](https://www.eurekareport.com.au) -
|
||||
[Intelligent Investor](https://www.intelligentinvestor.com.au)
|
||||
|
||||
##### > Australian Community Media
|
||||
[Bendigo Advertiser](https://www.bendigoadvertiser.com.au) -
|
||||
[Central Western Daily](https://www.centralwesterndaily.com.au) -
|
||||
[Daily Liberal](https://www.dailyliberal.com.au) -
|
||||
[Illawarra Mercury](https://www.illawarramercury.com.au) -
|
||||
[Newcastle Herald](https://www.newcastleherald.com.au) -
|
||||
[The Advocate](https://www.theadvocate.com.au) -
|
||||
[The Border Mail](https://www.bordermail.com.au) -
|
||||
[The Canberra Times](https://www.canberratimes.com.au) -
|
||||
[The Courier](https://www.thecourier.com.au) -
|
||||
[The Daily Advertiser](https://www.dailyadvertiser.com.au) -
|
||||
[The Examiner](https://www.examiner.com.au) -
|
||||
[The Northern Daily Leader](https://www.northerndailyleader.com.au) -
|
||||
[The Port Macquarie News](https://www.portnews.com.au) -
|
||||
[The Standard](https://www.standard.net.au) -
|
||||
[Western Advocate](https://www.westernadvocate.com.au)
|
||||
|
||||
#### > 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) -
|
||||
[Grafton Daily Examiner](https://www.dailyexaminer.com.au) -
|
||||
[Mackay Daily Mercury](https://www.dailymercury.com.au) -
|
||||
[Rockhampton Morning Bulletin](https://www.themorningbulletin.com.au) -
|
||||
[Sunshine Coast Daily](https://www.sunshinecoastdaily.com.au) -
|
||||
[The Gympie Times](https://www.gympietimes.com.au) -
|
||||
[The Northern Star](https://www.northernstar.com.au) -
|
||||
[The Queensland Times](https://www.qt.com.au) -
|
||||
[Toowoomba Chronicle](https://www.thechronicle.com.au) -
|
||||
[Warwick Daily News](https://www.warwickdailynews.com.au)
|
||||
|
||||
#### Canada
|
||||
[Le Devoir](https://www.ledevoir.com) -
|
||||
[National Post](https://www.nationalpost.com) -
|
||||
@ -314,6 +253,68 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
|
||||
##### Switzerland
|
||||
[Neue Zürcher Zeitung](https://www.nzz.ch)
|
||||
|
||||
#### Australia/New Zealand
|
||||
|
||||
[Brisbane Times](https://www.brisbanetimes.com.au) -
|
||||
[New Zealand Herald](https://www.nzherald.co.nz) -
|
||||
[The Age](https://www.theage.com.au) -
|
||||
[The Australian Financial Review](https://www.afr.com) -
|
||||
[The Saturday Paper](https://www.thesaturdaypaper.com.au) -
|
||||
[The Spectator Australia](https://www.spectator.com.au) -
|
||||
[The Sydney Morning Herald](https://www.smh.com.au) –
|
||||
[WAtoday](https://www.watoday.com.au)
|
||||
|
||||
##### > News Corp Australia
|
||||
[Cairns Post](https://www.cairnspost.com.au) –
|
||||
[Geelong Advertiser](https://www.geelongadvertiser.com.au) -
|
||||
[Gold Coast Bulletin](https://www.goldcoastbulletin.com.au) –
|
||||
[Herald Sun](https://www.heraldsun.com.au) –
|
||||
[Northern Territory News](https://www.ntnews.com.au) –
|
||||
[The Advertiser/AdelaideNow](https://www.adelaidenow.com.au) –
|
||||
[The Australian](https://www.theaustralian.com.au) -
|
||||
[The Courier-Mail](https://www.couriermail.com.au) –
|
||||
[The Daily Telegraph](https://www.dailytelegraph.com.au) –
|
||||
[The Mercury Tasmania](https://www.themercury.com.au) -
|
||||
[The Weekly Times](https://www.weeklytimesnow.com.au) –
|
||||
[Townsville Bulletin](https://www.townsvillebulletin.com.au)
|
||||
|
||||
##### > Financial
|
||||
|
||||
[Eureka Report](https://www.eurekareport.com.au) -
|
||||
[Intelligent Investor](https://www.intelligentinvestor.com.au)
|
||||
|
||||
##### > Australian Community Media
|
||||
[Bendigo Advertiser](https://www.bendigoadvertiser.com.au) -
|
||||
[Central Western Daily](https://www.centralwesterndaily.com.au) -
|
||||
[Daily Liberal](https://www.dailyliberal.com.au) -
|
||||
[Illawarra Mercury](https://www.illawarramercury.com.au) -
|
||||
[Newcastle Herald](https://www.newcastleherald.com.au) -
|
||||
[The Advocate](https://www.theadvocate.com.au) -
|
||||
[The Border Mail](https://www.bordermail.com.au) -
|
||||
[The Canberra Times](https://www.canberratimes.com.au) -
|
||||
[The Courier](https://www.thecourier.com.au) -
|
||||
[The Daily Advertiser](https://www.dailyadvertiser.com.au) -
|
||||
[The Examiner](https://www.examiner.com.au) -
|
||||
[The Northern Daily Leader](https://www.northerndailyleader.com.au) -
|
||||
[The Port Macquarie News](https://www.portnews.com.au) -
|
||||
[The Standard](https://www.standard.net.au) -
|
||||
[Western Advocate](https://www.westernadvocate.com.au)
|
||||
|
||||
#### > Australian Provincial Newspapers (all)
|
||||
For example:
|
||||
[Bundaberg News Mail](https://www.news-mail.com.au) -
|
||||
[Fraser Coast Chronicle](https://www.frasercoastchronicle.com.au) -
|
||||
[Gladstone Observer](https://www.gladstoneobserver.com.au) -
|
||||
[Grafton Daily Examiner](https://www.dailyexaminer.com.au) -
|
||||
[Mackay Daily Mercury](https://www.dailymercury.com.au) -
|
||||
[Rockhampton Morning Bulletin](https://www.themorningbulletin.com.au) -
|
||||
[Sunshine Coast Daily](https://www.sunshinecoastdaily.com.au) -
|
||||
[The Gympie Times](https://www.gympietimes.com.au) -
|
||||
[The Northern Star](https://www.northernstar.com.au) -
|
||||
[The Queensland Times](https://www.qt.com.au) -
|
||||
[Toowoomba Chronicle](https://www.thechronicle.com.au) -
|
||||
[Warwick Daily News](https://www.warwickdailynews.com.au)
|
||||
|
||||
#### East Asia
|
||||
[Caixin Global](https://www.caixinglobal.com) -
|
||||
[CommonWealth Magazine Taiwan](https://www.cw.com.tw) -
|
||||
|
@ -72,7 +72,6 @@ var allow_cookies = [
|
||||
'scribd.com',
|
||||
'seekingalpha.com',
|
||||
'slader.com',
|
||||
'slate.com',
|
||||
'startribune.com',
|
||||
'stocknews.com',
|
||||
'techinasia.com',
|
||||
@ -223,6 +222,7 @@ var blockedRegexes = {
|
||||
'sciencesetavenir.fr': /.+\.poool\.fr\/.+/,
|
||||
'scmp.com': /.+\.tinypass\.com\/.+/,
|
||||
'sfchronicle.com': /.+\.blueconic\.net\/.+/,
|
||||
'slate.com': /(cdn\.cxense\.com|.+\.tinypass\.com\/.+)/,
|
||||
'sloanreview.mit.edu': /(.+\.tinypass\.com\/.+|.+\.netdna-ssl\.com\/wp-content\/themes\/smr\/assets\/js\/libs\/welcome-ad\.js)/,
|
||||
'smh.com.au': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
|
||||
'spectator.co.uk': /.+\.tinypass\.com\/.+/,
|
||||
@ -540,7 +540,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}));
|
||||
if (!isSiteEnabled(details) && !(inkl_site) && !(bloomberg_site)) {
|
||||
let au_apn_site = (urlHost(header_referer).endsWith('com.au')|| urlHost(header_referer).endsWith('net.au')) && details.url.includes('https://media.apnarm.net.au/');
|
||||
if (!isSiteEnabled(details) && !(inkl_site) && !(bloomberg_site) && !(au_apn_site)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -615,7 +616,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
|
||||
if (tabId !== -1) {
|
||||
ext_api.tabs.get(tabId, function (currentTab) {
|
||||
if (isSiteEnabled(currentTab) || medium_custom_domain) {
|
||||
if (isSiteEnabled(currentTab) || medium_custom_domain || au_apn_site) {
|
||||
ext_api.tabs.executeScript(tabId, {
|
||||
file: 'contentScript.js',
|
||||
runAt: 'document_start'
|
||||
|
@ -2,8 +2,9 @@
|
||||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add Slate (Plus)
|
||||
Add Slate
|
||||
Remove BusinessTimes.com.sg (obsolete)
|
||||
Fix-update Australian Provincial Newspapers (now all)
|
||||
Fix-update Bloomberg (overlay)
|
||||
Fix-update Challenges.fr (timing)
|
||||
Fix-update NzHerald
|
||||
|
@ -12,19 +12,27 @@ if (!matchDomain(arr_localstorage_hold)){
|
||||
ext_api.runtime.onMessage.addListener(function (message, sender) {
|
||||
// setCookie opt-in
|
||||
if (message.optIn) {
|
||||
// Australian Provincial Newspapers
|
||||
if (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);
|
||||
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);
|
||||
setCookie('s_fid', s_fid, 'bostonglobe.com', '/', 14);
|
||||
}
|
||||
} else if (domain = matchDomain(['independent.ie', 'belfasttelegraph.co.uk'])) {
|
||||
if (!cookieExists('subscriber')) {
|
||||
setCookie('subscriber', '{"subscriptionStatus": 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(['independent.ie', 'belfasttelegraph.co.uk'])) {
|
||||
if (!cookieExists('subscriber')) {
|
||||
setCookie('subscriber', '{"subscriptionStatus": true}', domain, '/', 14);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1273,7 +1281,6 @@ else if (matchDomain("slate.com")) {
|
||||
removeDOMElement(slate_roadblock);
|
||||
}
|
||||
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
@ -263,6 +263,7 @@
|
||||
"*://*.wr.de/*",
|
||||
"*://*.wsj.com/*",
|
||||
"*://*.zeit.de/*",
|
||||
"*://*.apnarm.net.au/*",
|
||||
"*://*.blueconic.net/*",
|
||||
"*://*.matheranalytics.com/*",
|
||||
"*://*.onecount.net/*",
|
||||
|
Loading…
x
Reference in New Issue
Block a user