Add group TorStar (Canada)

master
magnolia1234 2021-01-08 18:40:01 +01:00
parent 6fbba65a03
commit 13e98353e0
6 changed files with 32 additions and 10 deletions

View File

@ -1,6 +1,7 @@
# Bypass Paywalls Clean for Chrome
* [Installation instructions](#installation-instructions)
* [Update](#update)
* [List of supported websites](#list-of-supported-websites)
* [Sites with limited number of free articles](#sites-with-limited-number-of-free-articles)
* [New site requests](#new-site-requests)
@ -63,6 +64,10 @@ Visit the [Firefox repository](https://gitlab.com/magnolia1234/bypass-paywalls-f
* Every time you open Chrome it may warn you about running extensions in developer mode, just close the popup to keep the extension enabled.
* You will be logged out for most of the sites you have checked.
### Update
For crx-installation: check for updates (in chrome://extensions).\
For zip-installation (load unpacked): unzip files to installation folder or use a Git(Hub)-client to clone the extension (locally).
### List of supported websites
##### World news
@ -175,8 +180,14 @@ Visit the [Firefox repository](https://gitlab.com/magnolia1234/bypass-paywalls-f
[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)
[The Logic](https://thelogic.co)\
[The Toronto Star](https://www.thestar.com) and regional TorStar sites (grouped in options) like
[Niagara Falls Review](https://www.niagarafallsreview.ca) -
[Peterborough Examiner](https://www.thepeterboroughexaminer.com) -
[St. Catharines Standard](https://www.stcatharinesstandard.ca) -
[The Hamilton Spectator](https://www.thespec.com) -
[Waterloo Region Record](https://www.therecord.com) -
[Welland Tribune](https://www.wellandtribune.ca)
#### Europe

View File

@ -127,7 +127,6 @@ const remove_cookies_select_hold = {
'newstatesman.com': ['STYXKEY_nsversion'],
'qz.com': ['gdpr'],
'seattletimes.com': ['st_newsletter_splash_seen'],
'thestar.com': ['selectedCity'],
'wsj.com': ['wsjregion', 'ResponsiveConditional_initialBreakpoint']
}
@ -279,7 +278,6 @@ var blockedRegexes = {
'thehindu.com': /(cdn\.cxense\.com\/.+|cdn\.tinypass\.com\/.+)/,
'thehindubusinessline.com': /(cdn\.cxense\.com\/.+|cdn\.tinypass\.com\/.+)/,
'thenation.com': /cdn\.tinypass\.com\/.+/,
'thestar.com': /(\.thestar\.com\/api\/overlaydata|emeter-nam\.mppglobal\.com\/probes\/JSONP\?)/,
'timeshighereducation.com': /\.timeshighereducation\.com\/sites\/default\/files\/js\/js_bbCGL.+\.js/,
'valeursactuelles.com': /.+\.qiota\.com\/.+/,
'variety.com': /cdn\.cxense\.com\/.+/,
@ -290,6 +288,7 @@ var blockedRegexes = {
const au_comm_media_domains = ['bendigoadvertiser.com.au', 'bordermail.com.au', 'canberratimes.com.au', 'centralwesterndaily.com.au', 'dailyadvertiser.com.au', 'dailyliberal.com.au', 'examiner.com.au', 'illawarramercury.com.au', 'newcastleherald.com.au', 'northerndailyleader.com.au', 'portnews.com.au', 'standard.net.au', 'theadvocate.com.au', 'thecourier.com.au', 'westernadvocate.com.au'];
const au_news_corp_domains = ['adelaidenow.com.au', 'cairnspost.com.au', 'couriermail.com.au', 'dailytelegraph.com.au', 'geelongadvertiser.com.au', 'goldcoastbulletin.com.au', 'heraldsun.com.au', 'ntnews.com.au', 'theaustralian.com.au', 'themercury.com.au', 'townsvillebulletin.com.au', 'weeklytimesnow.com.au'];
const au_prov_news_domains = ['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'];
const ca_torstar_domains = ['niagarafallsreview.ca', 'stcatharinesstandard.ca', 'thepeterboroughexaminer.com', 'therecord.com', 'thespec.com', 'thestar.com', 'wellandtribune.ca'];
const de_funke_media_domains = ['abendblatt.de', 'braunschweiger-zeitung.de', 'morgenpost.de', 'nrz.de', 'otz.de', 'thueringer-allgemeine.de', 'waz.de', 'wp.de', 'wr.de'];
const de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'maz-online.de', 'neuepresse.de', 'ostsee-zeitung.de'];
const es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'laverdad.es', 'lavozdigital.es'];
@ -314,7 +313,7 @@ const userAgentMobileB = "Chrome/80.0.3987.92 Mobile Safari/537.36 (compatible;
var enabledSites = [];
var disabledSites = [];
var defaultSites_grouped_domains = Object.values(defaultSites);
var defaultSites_domains = defaultSites_grouped_domains.concat(au_comm_media_domains, au_news_corp_domains, au_prov_news_domains, de_funke_media_domains, de_madsack_domains, es_grupo_vocento_domains, fi_alma_talent_domains, fr_be_groupe_rossel_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_ilmessaggero_domains, nl_ad_region_domains, usa_nymag_domains);
var defaultSites_domains = defaultSites_grouped_domains.concat(au_comm_media_domains, au_news_corp_domains, au_prov_news_domains, ca_torstar_domains, de_funke_media_domains, de_madsack_domains, es_grupo_vocento_domains, fi_alma_talent_domains, fr_be_groupe_rossel_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_ilmessaggero_domains, nl_ad_region_domains, usa_nymag_domains);
var customSites = {};
var customSites_domains = [];
var excludedSites = [];
@ -354,6 +353,7 @@ var grouped_sites = {
'###_au_comm_media': au_comm_media_domains,
'###_au_news_corp': au_news_corp_domains,
'###_au_prov_news': au_prov_news_domains,
'###_ca_torstar': ca_torstar_domains,
'###_de_funke_medien': de_funke_media_domains,
'###_de_madsack': de_madsack_domains,
'###_es_grupo_vocento': es_grupo_vocento_domains,
@ -398,6 +398,10 @@ function add_grouped_sites(init_rules) {
allow_cookies.push(domain);
use_google_bot.push(domain);
}
for (let domain of ca_torstar_domains) {
allow_cookies.push(domain);
blockedRegexes[domain] = /\.(ca|com)\/api\/overlaydata/;
}
for (let domain of de_funke_media_domains) {
allow_cookies.push(domain);
blockedRegexes[domain] = /(cdn\.cxense\.com\/.+|cdn\.tinypass\.com\/.+)/;

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Chrome
Post-release
Add group TorStar (Canada)
Fix-update Toronto Star (overlay)
Update options (excluded sites)

View File

@ -3,6 +3,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
var domain;
var csDone = false;
var ca_torstar_domains = ['niagarafallsreview.ca', 'stcatharinesstandard.ca', 'thepeterboroughexaminer.com', 'therecord.com', 'thespec.com', 'thestar.com', 'wellandtribune.ca'];
var de_funke_media_domains = ['abendblatt.de', 'braunschweiger-zeitung.de', 'morgenpost.de', 'nrz.de', 'waz.de', 'wp.de', 'wr.de'];
var de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'maz-online.de', 'neuepresse.de', 'ostsee-zeitung.de'];
var es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'laverdad.es', 'lavozdigital.es'];
@ -577,7 +578,7 @@ else if (matchDomain("techinasia.com")) {
removeDOMElement(splash_subscribe, paywall_hard);
}
else if (matchDomain("thestar.com")) {
else if (matchDomain(ca_torstar_domains)) {
window.setTimeout(function () {
let meter_banner = document.querySelector('.c-article-meter-banner');
let ads = document.querySelectorAll('.seo-media-query, .c-googleadslot');
@ -855,7 +856,7 @@ else if (matchDomain('faz.net')) {
str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-ZÖÜ\„][A-Za-zÀ-ÿ\„]{1,})/gm, "$&\n\n");
str = str.replace(/([a-z\"\“])(?=[A-Z](?=[A-Za-zÀ-ÿ]+))/gm, "$&\n\n");
// exceptions: names with alternating lower/uppercase (no general fix)
let str_rep_arr = ["BaFin", "BerlHG", "BfArM", "BilMoG", "DiGA", "EuGH", "eWpG", "GlaxoSmithKline", "IfSG", "iMessage", "iOS", "iPad", "iPhone", "medRxiv", "mRNA", "PlosOne", "StVO"];
let str_rep_arr = ["BaFin", "BerlHG", "BfArM", "BilMoG", "DiGA", "EuGH", "eWpG", "GlaxoSmithKline", "gGmbH", "IfSG", "iMessage", "iOS", "iPad", "iPhone", "medRxiv", "mRNA", "PlosOne", "StVO"];
let str_rep_split, str_rep_src;
for (let str_rep of str_rep_arr) {
str_rep_split = str_rep.split(/([a-z]+)(?=[A-Z](?=[A-Za-z]+))/);

View File

@ -249,6 +249,7 @@
"*://*.newstatesman.com/*",
"*://*.newsweek.com/*",
"*://*.newyorker.com/*",
"*://*.niagarafallsreview.ca/*",
"*://*.noordhollandsdagblad.nl/*",
"*://*.nordeclair.fr/*",
"*://*.northerndailyleader.com.au/*",
@ -308,6 +309,7 @@
"*://*.standard.net.au/*",
"*://*.startribune.com/*",
"*://*.statista.com/*",
"*://*.stcatharinesstandard.ca/*",
"*://*.stocknews.com/*",
"*://*.sudinfo.be/*",
"*://*.sueddeutsche.de/*",
@ -338,7 +340,10 @@
"*://*.themercury.com.au/*",
"*://*.themorningbulletin.com.au/*",
"*://*.thenation.com/*",
"*://*.thepeterboroughexaminer.com/*",
"*://*.therecord.com/*",
"*://*.thesaturdaypaper.com.au/*",
"*://*.thespec.com/*",
"*://*.thestar.com/*",
"*://*.thetimes.co.uk/*",
"*://*.thewest.com.au/*",
@ -362,6 +367,7 @@
"*://*.watoday.com.au/*",
"*://*.waz.de/*",
"*://*.weeklytimesnow.com.au/*",
"*://*.wellandtribune.ca/*",
"*://*.westernadvocate.com.au/*",
"*://*.wired.com/*",
"*://*.wiwo.de/*",
@ -395,12 +401,11 @@
"*://*.htmedia.in/*",
"*://*.jsdelivr.net/*",
"*://*.lightboxcdn.com/*",
"*://*.mppglobal.com/*",
"*://*.nyt.com/*",
"*://*.pasedigital.cl/*",
"*://*.rcsobjects.it/*",
"*://*.repstatic.it/*",
"*://*.userzoom.com/*"
],
"version": "2.0.2.2"
"version": "2.0.2.3"
}

View File

@ -217,7 +217,7 @@ var defaultSites =
"The Telegraph": "telegraph.co.uk",
"The Times": "thetimes.co.uk",
"The Times Literary Supplement": "the-tls.co.uk",
"The Toronto Star": "thestar.com",
"The Toronto Star (+ local TorStar sites)": "###_ca_torstar",
"The Wall Street Journal (not Chinese)": "wsj.com",
"The Washington Post": "washingtonpost.com",
"The West Australian (+ regional)": "thewest.com.au",