mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:51:58 +01:00
Add The Daily Wire
This commit is contained in:
parent
8a481d72b4
commit
3e9b301ae6
6 changed files with 32 additions and 8 deletions
|
@ -172,6 +172,7 @@ Grouped in options:\
|
|||
[The Athletic](https://theathletic.com) -
|
||||
[The Intercept](https://theintercept.com) -
|
||||
[The Daily Beast](https://www.thedailybeast.com) -
|
||||
[The Daily Wire](https://www.dailywire.com) -
|
||||
[The New Atlantis](https://www.thenewatlantis.com) -
|
||||
[The Point Magazine](https://thepointmag.com) -
|
||||
[The Wrap](https://www.thewrap.com)
|
||||
|
|
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Post-release
|
||||
Add De Tijd & L'Echo
|
||||
Add group Mediahuis Noord (opt-in to custom sites for unlisted)
|
||||
Add The Daily Wire
|
||||
Fix DealStreetAsia (free articles only)
|
||||
Fix Knack.be & LeVif.be
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'italian.tech', 'la
|
|||
var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafolivorno.it', 'lanazione.it', 'quotidiano.net'];
|
||||
var medium_custom_domains = ['betterprogramming.pub', 'towardsdatascience.com'];
|
||||
var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
|
||||
var nl_pg_domains = ['demorgen.be', 'humo.be', 'parool.nl', 'trouw.nl', 'volkskrant.nl'];
|
||||
var no_nhst_media_domains = ['intrafish.com', 'rechargenews.com', 'tradewindsnews.com', 'upstreamonline.com'];
|
||||
var pe_grupo_elcomercio_domains = ['diariocorreo.pe', 'elcomercio.pe', 'gestion.pe'];
|
||||
var timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.com'];
|
||||
|
@ -35,7 +36,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition
|
|||
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
|
||||
|
||||
// clean local storage of sites (with an exemption for hold-list)
|
||||
var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, nl_pg_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
if (!matchDomain(arr_localstorage_hold)) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
@ -1887,6 +1888,12 @@ else if (matchDomain(nl_mediahuis_region_domains)) {
|
|||
}, 500);
|
||||
}
|
||||
|
||||
else if (matchDomain(nl_pg_domains)) {
|
||||
let banners = document.querySelectorAll('div[data-temptation-position^="PAGE_"], div[class^="ad--"]');
|
||||
let paywall = document.querySelectorAll('[data-temptation-position^="ARTICLE_"]');
|
||||
removeDOMElement(...banners, ...paywall);
|
||||
}
|
||||
|
||||
else if (matchDomain('nrc.nl')) {
|
||||
window.setTimeout(function () {
|
||||
let nrc_overlay = document.querySelectorAll('[id$="modal__overlay"]');
|
||||
|
@ -1901,12 +1908,6 @@ else if (matchDomain('nrc.nl')) {
|
|||
}, 100);
|
||||
}
|
||||
|
||||
else if (matchDomain(["parool.nl", "trouw.nl", "volkskrant.nl", "humo.be", "demorgen.be"])) {
|
||||
let banners = document.querySelectorAll('div[data-temptation-position^="PAGE_"], div[class^="ad--"]');
|
||||
let paywall = document.querySelectorAll('[data-temptation-position^="ARTICLE_"]');
|
||||
removeDOMElement(...banners, ...paywall);
|
||||
}
|
||||
|
||||
else if (matchDomain('telegraaf.nl')) {
|
||||
if (window.location.href.startsWith('https://www.telegraaf.nl/error?ref=/')) {
|
||||
window.setTimeout(function () {
|
||||
|
@ -2538,6 +2539,12 @@ else if (matchDomain('csmonitor.com')) {
|
|||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
else if (matchDomain('dailywire.com')) {
|
||||
let paywall = document.querySelector('#post-body-text > div > div[class]');
|
||||
if (paywall)
|
||||
paywall.removeAttribute('class');
|
||||
}
|
||||
|
||||
else if (matchDomain('dallasnews.com')) {
|
||||
if (window.location.search.startsWith('?outputType=amp')) {
|
||||
amp_unhide_subscr_section('amp-ad, amp-embed');
|
||||
|
|
|
@ -156,6 +156,7 @@
|
|||
"*://*.dailyliberal.com.au/*",
|
||||
"*://*.dailypress.com/*",
|
||||
"*://*.dailytelegraph.com.au/*",
|
||||
"*://*.dailywire.com/*",
|
||||
"*://*.dallasnews.com/*",
|
||||
"*://*.darkreading.com/*",
|
||||
"*://*.dealstreetasia.com/*",
|
||||
|
@ -671,5 +672,5 @@
|
|||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.6.7.2"
|
||||
"version": "2.6.7.3"
|
||||
}
|
||||
|
|
4
sites.js
4
sites.js
|
@ -1596,6 +1596,10 @@ var defaultSites = {
|
|||
domain: "thedailybeast.com",
|
||||
block_regex: /\.tinypass\.com\//
|
||||
},
|
||||
"The Daily Wire": {
|
||||
domain: "dailywire.com",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"The Dallas Morning News": {
|
||||
domain: "dallasnews.com",
|
||||
allow_cookies: 1,
|
||||
|
|
|
@ -94,6 +94,16 @@
|
|||
"domain": "rockandice.com",
|
||||
"group_rule": "###_gr_usa_outside_mag_domains"
|
||||
},
|
||||
"The Daily Wire": {
|
||||
"domain": "dailywire.com",
|
||||
"allow_cookies": 1,
|
||||
"cs_code": [{
|
||||
"cond": "#post-body-text > div > div[class]",
|
||||
"rm_attrib": "class"
|
||||
}
|
||||
],
|
||||
"new_site": 1
|
||||
},
|
||||
"###_gr_usa_outside_mag_domains": {
|
||||
"group_rule_domains": ["betternutrition.com", "gymclimber.com", "pelotonmagazine.com", "podiumrunner.com", "rockandice.com"],
|
||||
"allow_cookies": 1,
|
||||
|
|
Loading…
Reference in a new issue