mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Update v1.6.4.0
Synch sites with chrome extension (adding 31 sites and removing 3 obsolete ones). Check releases for changelog.
This commit is contained in:
parent
511ed72ffa
commit
9d00d0dbdf
301
README.md
301
README.md
@ -11,113 +11,200 @@
|
||||
* [License](#license)
|
||||
|
||||
### Installation
|
||||
[Download and install the latest version](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.3.4/bypass_paywalls_clean-1.6.3.4-an+fx.xpi)\
|
||||
[Download and install the latest version](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.3.6/bypass_paywalls_clean-1.6.3.6-an+fx.xpi)\
|
||||
Or first visit the [releases page](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases).\
|
||||
Install add-on by downloading xpi-file (assets).
|
||||
|
||||
### List of supported websites
|
||||
#### United States of America
|
||||
##### World news
|
||||
[First Things](https://www.firstthings.com) -
|
||||
[Foreign Policy](https://www.foreignpolicy.com) -
|
||||
[Harper's Magazine](https://harpers.org) -
|
||||
[The American Interest](https://www.the-american-interest.com) -
|
||||
[The Atlantic](https://www.theatlantic.com) -
|
||||
[The Nation](https://www.thenation.com) -
|
||||
[The New York Times](https://www.nytimes.com) -
|
||||
[The New Yorker](https://www.newyorker.com) -
|
||||
[The Washington Post](https://www.washingtonpost.com) -
|
||||
[Vanity Fair](https://www.vanityfair.com)
|
||||
##### Business
|
||||
[Adweek](https://www.adweek.com) -
|
||||
[American Affairs](https://americanaffairsjournal.org) -
|
||||
[American Banker](https://www.americanbanker.com) -
|
||||
[Barron's](https://www.barrons.com) -
|
||||
[Bloomberg](https://www.bloomberg.com) -
|
||||
[Business Insider](https://www.businessinsider.com) -
|
||||
[Digiday](https://digiday.com) –
|
||||
[Fortune](https://fortune.com) -
|
||||
[Harvard Business Review](https://www.hbr.org) -
|
||||
[Inc.com](https://www.inc.com) -
|
||||
[MIT Sloan Management Review](https://sloanreview.mit.edu) -
|
||||
[Quartz](https://qz.com) -
|
||||
[The Business Journals](https://www.bizjournals.com) -
|
||||
[The Wall Street Journal](https://www.wsj.com)
|
||||
##### Sports
|
||||
[The Athletic](https://theathletic.com)
|
||||
##### Tech/Science
|
||||
[Chemical & Engineering News](https://cen.acs.org) -
|
||||
[Dark Reading](https://www.darkreading.com) -
|
||||
[MIT Technology Review](https://www.technologyreview.com) -
|
||||
[Towards Data Science](https://www.towardsdatascience.com) -
|
||||
[Wired](https://www.wired.com) -
|
||||
[Scientific American](https://www.scientificamerican.com)*
|
||||
##### Blogs
|
||||
[Medium](https://www.medium.com) (all sites) -
|
||||
[SofRep](https://sofrep.com)
|
||||
|
||||
[Algemeen Dagblad](https://www.ad.nl)\
|
||||
[Baltimore Sun](https://www.baltimoresun.com)\
|
||||
[Barron's](https://www.barrons.com)\
|
||||
[Bloomberg](https://www.bloomberg.com)\
|
||||
[Bloomberg Quint](https://www.bloombergquint.com)\
|
||||
[Business Insider](https://www.businessinsider.com)\
|
||||
[Caixin Global](https://www.caixinglobal.com)\
|
||||
[Chemical & Engineering News](https://cen.acs.org)\
|
||||
[Central Western Daily](https://www.centralwesterndaily.com.au)\
|
||||
[Chicago Tribune](https://www.chicagotribune.com)\
|
||||
[Crain's Chicago Business](https://www.chicagobusiness.com)\
|
||||
[Corriere Della Sera](https://www.corriere.it)\
|
||||
[Daily Press](https://www.dailypress.com)\
|
||||
[DeMorgen](https://www.demorgen.be)\
|
||||
[Denver Post](https://www.denverpost.com)\
|
||||
[De Groene Amsterdammer](https://www.groene.nl)\
|
||||
[De Tijd](https://www.tijd.be)\
|
||||
[de Volkskrant](https://www.volkskrant.nl)\
|
||||
[ET Prime](https://prime.economictimes.indiatimes.com/)\
|
||||
[The Economist](https://www.economist.com)\
|
||||
[Eindhovens Dagblad](https://www.ed.nl)\
|
||||
[Examiner](https://www.examiner.com.au)\
|
||||
[Financial Times](https://www.ft.com)\
|
||||
[Foreign Policy](https://www.foreignpolicy.com)\
|
||||
[Glassdoor](https://www.glassdoor.com)\
|
||||
[Haaretz.co.il](https://www.haaretz.co.il)\
|
||||
[Haaretz.com](https://www.haaretz.com)\
|
||||
[Handelsblatt](https://www.handelsblatt.com)\
|
||||
[Harper's Magazine](https://harpers.org)\
|
||||
[Hartford Courant](https://www.courant.com)\
|
||||
[Harvard Business Review](https://www.hbr.org)\
|
||||
[Inc.com](https://www.inc.com)\
|
||||
[Investors Chronicle](https://www.investorschronicle.co.uk)\
|
||||
[L'Echo](https://www.lecho.be)\
|
||||
[La Repubblica](https://www.repubblica.it)\
|
||||
[Le Monde](https://www.lemonde.fr)\
|
||||
[Le Parisien](http://www.leparisien.fr)\
|
||||
[Le Temps](https://www.letemps.ch)\
|
||||
[Les Échos](https://www.lesechos.fr)\
|
||||
[London Review of Books](https://www.lrb.co.uk)\
|
||||
[Los Angeles Times](https://www.latimes.com)\
|
||||
[Medium](https://www.medium.com)\
|
||||
[Medscape](https://www.medscape.com)\
|
||||
[MIT Technology Review](https://www.technologyreview.com)\
|
||||
[Mountain View Voice](https://www.mv-voice.com)\
|
||||
[National Post](https://www.nationalpost.com)\
|
||||
[New York Magazine](https://www.nymag.com)\
|
||||
[New Zealand Herald](https://www.nzherald.co.nz)\
|
||||
[Newcastle Herald](https://www.newcastleherald.com.au)\
|
||||
[Nikkei Asian Review](https://asia.nikkei.com)\
|
||||
[NK News](https://www.nknews.org)\
|
||||
[NRC](https://www.nrc.nl)\
|
||||
[Orange County Register](https://www.ocregister.com)\
|
||||
[Orlando Sentinel](https://www.orlandosentinel.com)\
|
||||
[Palo Alto Online](https://www.paloaltoonline.com)\
|
||||
[Parool](https://www.parool.nl)\
|
||||
[Quartz](https://qz.com)\
|
||||
[Quora](https://www.quora.com)\
|
||||
[Scientific American](https://scientificamerican.com)\
|
||||
[Scribd](http://scribd.com)\
|
||||
[Statista](https://www.statista.com)\
|
||||
[SunSentinel](https://www.sun-sentinel.com)\
|
||||
[Tech in Asia](https://www.techinasia.com)\
|
||||
[Telegraaf](https://telegraaf.nl)\
|
||||
[The Advocate](https://www.theadvocate.com.au)\
|
||||
[The Age](https://www.theage.com.au)\
|
||||
[The Athletic](https://theathletic.com)\
|
||||
[The Atlantic](https://www.theatlantic.com)\
|
||||
[The Australian](https://www.theaustralian.com.au)\
|
||||
[The Australian Financial Review](https://www.afr.com)\
|
||||
[The Boston Globe](https://www.bostonglobe.com)\
|
||||
[The Business Journals](https://www.bizjournals.com)\
|
||||
[The Diplomat](https://www.thediplomat.com)\
|
||||
[The Globe and Mail](https://www.theglobeandmail.com)\
|
||||
[The Hindu](https://www.thehindu.com)\
|
||||
[The Japan Times](https://www.japantimes.co.jp)\
|
||||
[TheMarker](https://www.themarker.com)\
|
||||
[The Mercury News](https://www.mercurynews.com)\
|
||||
[The Mercury Tasmania](https://www.themercury.com.au)\
|
||||
[The Morning Call](https://www.mcall.com)\
|
||||
[The Nation](https://www.thenation.com)\
|
||||
[The New Statesman](https://www.newstatesman.com)\
|
||||
[The New York Times](https://www.nytimes.com)\
|
||||
[The New Yorker](https://www.newyorker.com)\
|
||||
[The News-Gazette](https://www.news-gazette.com)\
|
||||
[The Philadelphia Inquirer](https://www.inquirer.com)\
|
||||
[The Saturday Paper](https://www.thesaturdaypaper.com.au)\
|
||||
[The Spectator](https://www.spectator.co.uk)\
|
||||
[The Seattle Times](https://www.seattletimes.com)\
|
||||
[The Sydney Morning Herald](https://www.smh.com.au)\
|
||||
[The Telegraph](https://www.telegraph.co.uk)\
|
||||
[The Times](https://www.thetimes.co.uk)\
|
||||
[The Toronto Star](https://www.thestar.com)\
|
||||
[The Washington Post](https://www.washingtonpost.com)\
|
||||
[The Wall Street Journal](https://www.wsj.com)\
|
||||
[Times Literary Supplement](https://www.the-tls.co.uk)\
|
||||
[Towards Data Science](https://www.towardsdatascience.com)\
|
||||
[Trouw](https://www.trouw.nl)\
|
||||
[Vanity Fair](https://www.vanityfair.com)\
|
||||
[Vrij Nederland](https://www.vn.nl)\
|
||||
[Wired](https://www.wired.com)
|
||||
##### Local US news
|
||||
[Baltimore Sun](baltimoresun.com) -
|
||||
[Crain's Chicago Business](https://www.chicagobusiness.com) -
|
||||
[Chicago Tribune](https://www.chicagotribune.com) -
|
||||
[Daily Press](https://www.dailypress.com) -
|
||||
[Hartford Courant](https://www.courant.com) -
|
||||
[Los Angeles Business Journal](https://labusinessjournal.com) -
|
||||
[Los Angeles Times](https://www.latimes.com) -
|
||||
[Miami Herald](https://www.miamiherald.com) -
|
||||
[Mountain View Voice](https://www.mv-voice.com) -
|
||||
[New York Magazine](https://www.nymag.com) -
|
||||
[Orange County Register](https://www.ocregister.com) -
|
||||
[Orlando Sentinel](https://www.orlandosentinel.com) -
|
||||
[Palo Alto Online](https://www.paloaltoonline.com) -
|
||||
[Pittsburgh Post Gazette](https://post-gazette.com) -
|
||||
[San Diego Union Tribune](https://sandiegouniontribune.com) -
|
||||
[San Francisco Chronicle](https://www.sfchronicle.com) -
|
||||
[SunSentinel](https://www.sun-sentinel.com) -
|
||||
[The Boston Globe](https://www.bostonglobe.com) -
|
||||
[The Denver Post](https://www.denverpost.com) -
|
||||
[The Mercury News](https://www.mercurynews.com) -
|
||||
[The Morning Call](https://www.mcall.com) -
|
||||
[The Seattle Times](https://www.seattletimes.com) -
|
||||
[The News-Gazette](https://www.news-gazette.com) -
|
||||
[The Philadelphia Inquirer](https://www.inquirer.com) -
|
||||
[The Sacramento Bee](https://www.sacbee.com)* -
|
||||
[Winston-Salem Journal](https://www.journalnow.com)
|
||||
|
||||
#### Australia/New Zealand
|
||||
[Cairns Post](https://www.cairnspost.com.au) –
|
||||
[Central Western Daily](https://www.centralwesterndaily.com.au) -
|
||||
[Gold Coast Bulletin](https://www.goldcoastbulletin.com.au) –
|
||||
[Herald Sun](https://www.heraldsun.com.au) –
|
||||
[New Zealand Herald](https://www.nzherald.co.nz) -
|
||||
[Newcastle Herald](https://www.newcastleherald.com.au) -
|
||||
[Northern Territory News](https://www.ntnews.com.au) –
|
||||
[The Advertiser](https://www.adelaidenow.com.au) –
|
||||
[The Advocate](https://www.theadvocate.com.au) -
|
||||
[The Age](https://www.theage.com.au) -
|
||||
[The Australian](https://www.theaustralian.com.au) -
|
||||
[The Australian Financial Review](https://www.afr.com) -
|
||||
[The Canberra Times](https://www.canberratimes.com.au) -
|
||||
[The Courier-Mail](https://www.couriermail.com.au) –
|
||||
[The Daily Telegraph](https://www.dailytelegraph.com.au) –
|
||||
[The Examiner](https://www.examiner.com.au)* -
|
||||
[The Mercury Tasmania](https://www.themercury.com.au) -
|
||||
[The Saturday Paper](https://www.thesaturdaypaper.com.au) -
|
||||
[The Sydney Morning Herald](https://www.smh.com.au) –
|
||||
[The Weekly Times](https://www.weeklytimesnow.com.au) –
|
||||
[Townsville Bulletin](https://www.townsvillebulletin.com.au)
|
||||
|
||||
#### Canada
|
||||
[National Post](https://www.nationalpost.com) -
|
||||
[Le Devoir](https://www.ledevoir.com) -
|
||||
[The Toronto Star](https://www.thestar.com) -
|
||||
[The Globe and Mail](https://www.theglobeandmail.com)
|
||||
|
||||
#### Europe
|
||||
##### United Kingdom/Ireland
|
||||
[Financial News](https://www.fnlondon.com) -
|
||||
[Financial Times](https://www.ft.com) -
|
||||
[London Review of Books](https://www.lrb.co.uk) -
|
||||
[The Economist](https://www.economist.com) -
|
||||
[The Irish Times](https://www.irishtimes.com)* -
|
||||
[The New Statesman](https://www.newstatesman.com) -
|
||||
[The Spectator](https://www.spectator.co.uk) -
|
||||
[The Telegraph](https://www.telegraph.co.uk) -
|
||||
[The Times](https://www.thetimes.co.uk) -
|
||||
[The Times Literary Supplement](https://www.the-tls.co.uk)
|
||||
##### France/Wallonia
|
||||
[Challenges](https://www.challenges.fr) –
|
||||
[L'Écho](https://lecho.be) -
|
||||
[Le Journal du Dimanche](https://lejdd.fr) –
|
||||
[Le Monde](https://www.lemonde.fr) -
|
||||
[Le Parisien](https://www.leparisien.fr) -
|
||||
[Les Échos](https://www.lesechos.fr) -
|
||||
[Libération](https://www.liberation.fr)* –
|
||||
[Valeurs Actuelles](https://www.valeursactuelles.com)
|
||||
##### Germany/Austria
|
||||
[Handelsblatt](https://www.handelsblatt.com) -
|
||||
[Kleine Zeitung](https://www.kleinezeitung.at)
|
||||
##### Italy
|
||||
[Corriere Della Sera](https://www.corriere.it) -
|
||||
[La Repubblica](https://www.repubblica.it) -
|
||||
[La Stampa](https://www.lastampa.it)
|
||||
##### Netherlands/Flanders
|
||||
[Algemeen Dagblad](https://www.ad.nl) and regional ADR sites like
|
||||
[BN DeStem](https://www.bndestem.nl) -
|
||||
[Brabants Dagblad](https://www.bd.nl) -
|
||||
[Eindhovens Dagblad](https://www.ed.nl) -
|
||||
[Gelderlander](https://www.gelderlander.nl) -
|
||||
[PZC](https://www.pzc.nl) -
|
||||
[Stentor](https://www.destentor.nl) -
|
||||
[Tubantia](https://tubantia.nl)\
|
||||
[De Morgen](https://www.demorgen.be) -
|
||||
[De Tijd](https://www.tijd.be) -
|
||||
[Groene Amsterdammer](https://www.groene.nl) -
|
||||
[NRC Handelsblad](https://www.nrc.nl) -
|
||||
[Parool](https://www.parool.nl) -
|
||||
[Telegraaf](https://www.telegraaf.nl) -
|
||||
[Trouw](https://www.trouw.nl) -
|
||||
[Volkskrant](https://www.volkskrant.nl) -
|
||||
[Vrij Nederland](https://www.vn.nl)
|
||||
##### Spain
|
||||
[El País](https://elpais.com)
|
||||
##### Sweden
|
||||
[Dagens Nyheter](https://www.dn.se)
|
||||
|
||||
#### East Asia
|
||||
[Caixin Global](https://www.caixinglobal.com) -
|
||||
[Nikkei Asian Review](https://asia.nikkei.com) -
|
||||
[NK News](https://www.nknews.org) -
|
||||
[Tech in Asia](https://www.techinasia.com) -
|
||||
[The Diplomat](https://www.thediplomat.com) -
|
||||
[The Japan Times](https://www.japantimes.co.jp)
|
||||
|
||||
#### India
|
||||
[Bloomberg Quint](https://www.bloombergquint.com)* -
|
||||
[ET Prime](https://prime.economictimes.indiatimes.com) -
|
||||
[The Hindu](https://www.thehindu.com)
|
||||
|
||||
#### Israel
|
||||
[Haaretz.co.il](https://www.haaretz.co.il) -
|
||||
[Haaretz.com](https://www.haaretz.com) -
|
||||
[The Marker](https://www.themarker.com)
|
||||
|
||||
#### Latin America
|
||||
##### Argentina
|
||||
[La Nación](https://www.lanacion.com.ar)
|
||||
##### Brazil
|
||||
[Exame](https://exame.abril.com.br) –
|
||||
[Folha de S. Paulo](https://www.folha.uol.com.br) -
|
||||
[O Estado de S. Paulo](https://estadao.com.br) –
|
||||
[O Globo](https://oglobo.globo.com) –
|
||||
[Valor Econômico](https://valor.globo.com)*
|
||||
##### Chile
|
||||
[La Tercera](https://www.latercera.com)
|
||||
##### Mexico
|
||||
[Mexico News Daily](https://mexiconewsdaily.com)
|
||||
|
||||
#### Encyclopedia/Book library/Knowledge base
|
||||
[Encyclopedia Britannica](https://www.britannica.com) -
|
||||
[Glassdoor](https://www.glassdoor.com) -
|
||||
[Loeb Classical Library](https://www.loebclassics.com) -
|
||||
[Quora](https://www.quora.com) -
|
||||
[Scribd](http://www.scribd.com) -
|
||||
[Statista](https://www.statista.com)
|
||||
|
||||
_*free articles only._
|
||||
|
||||
### Sites with limited number of free articles
|
||||
The free article limit can normally be bypassed by removing cookies for the site.*
|
||||
@ -129,12 +216,12 @@ When coming across a paywall click the cookie icon to remove the cookies then re
|
||||
_*May not always succeed_
|
||||
|
||||
### New site requests
|
||||
Only large or major sites will be considered. No small sites or local newspapers.
|
||||
You can submit a request for a new website [here](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/issues/new). Please read the following instructions and share your results for a quicker process. Remember to check the [previous requests](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/issues?q=is%3Aissue+label%3Aenhancement) before asking for a new website.
|
||||
1. Visit an article on the site you want to bypass the paywall for and copy the article title.
|
||||
2. Open up a new Private window (Ctrl+Shift+P) and paste the article title into Google.
|
||||
3. Click on the same article from the Google search results page. If it loads without a paywall you can [submit a request](https://github.com/magnolia1234/bypass-paywalls-firefox-clean/issues/new) to add the site, otherwise my extension cannot bypass it either.
|
||||
|
||||
Usually premium articles cannot be bypassed as they are behind a hard paywall.
|
||||
2. Open up a new incognito window (Ctrl+Shift+N) and paste the article title into Google.
|
||||
3. Click on the same article from the Google search results page. Or you can:
|
||||
4. Disable javascript on the website by clicking the button right icon </> on the uBlock panel.
|
||||
5. Refresh the page.
|
||||
|
||||
### Troubleshooting
|
||||
* This add-on works best alongside [uBlock Origin](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/).
|
||||
|
100
background.js
100
background.js
@ -13,14 +13,27 @@ const restrictions = {
|
||||
}
|
||||
|
||||
// Don't remove cookies before page load
|
||||
const allow_cookies = [
|
||||
// allow_cookies are completed with domains in sites(_custom).json (default allow/remove_cookies)
|
||||
var allow_cookies = [
|
||||
'adelaidenow.com.au',
|
||||
'barrons.com',
|
||||
'bostonglobe.com',
|
||||
'cairnspost.com.au',
|
||||
'couriermail.com.au',
|
||||
'dailytelegraph.com.au',
|
||||
'dn.se',
|
||||
'folha.uol.com.br',
|
||||
'goldcoastbulletin.com.au',
|
||||
'haaretz.co.il',
|
||||
'haaretz.com',
|
||||
'handelsblatt.com',
|
||||
'heraldsun.com.au',
|
||||
'kleinezeitung.at',
|
||||
'lemonde.fr',
|
||||
'lrb.co.uk',
|
||||
'mexiconewsdaily.com',
|
||||
'nknews.org',
|
||||
'ntnews.com.au',
|
||||
'nytimes.com',
|
||||
'parool.nl',
|
||||
'prime.economictimes.indiatimes.com',
|
||||
@ -28,13 +41,16 @@ const allow_cookies = [
|
||||
'scribd.com',
|
||||
'techinasia.com',
|
||||
'telegraph.co.uk',
|
||||
'the-american-interest.com',
|
||||
'theathletic.com',
|
||||
'theaustralian.com.au',
|
||||
'themarker.com',
|
||||
'themercury.com.au',
|
||||
'thetimes.co.uk',
|
||||
'townsvillebulletin.com.au',
|
||||
'trouw.nl',
|
||||
'volkskrant.nl',
|
||||
'weeklytimesnow.com.au',
|
||||
'wsj.com',
|
||||
]
|
||||
|
||||
@ -53,21 +69,32 @@ const remove_cookies_select_hold = {
|
||||
// select only specific cookie(s) to drop from remove_cookies domains
|
||||
const remove_cookies_select_drop = {
|
||||
'ad.nl': ['temptationTrackingId'],
|
||||
'bostonglobe.com': ['FMPaywall'],
|
||||
|
||||
'caixinglobal.com': ['CAIXINGLB_LOGIN_UUID'],
|
||||
'demorgen.be': ['TID_ID'],
|
||||
'dn.se': ['randomSplusId'],
|
||||
'ed.nl': ['temptationTrackingId'],
|
||||
'nrc.nl': ['counter']
|
||||
'nrc.nl': ['counter'],
|
||||
'theatlantic.com': ['articleViews']
|
||||
}
|
||||
|
||||
// Override User-Agent with Googlebot
|
||||
const use_google_bot = [
|
||||
'adelaidenow.com.au',
|
||||
'barrons.com',
|
||||
'cairnspost.com.au',
|
||||
'couriermail.com.au',
|
||||
'dailytelegraph.com.au',
|
||||
'dn.se',
|
||||
'goldcoastbulletin.com.au',
|
||||
'haaretz.co.il',
|
||||
'haaretz.com',
|
||||
'handelsblatt.com',
|
||||
'heraldsun.com.au',
|
||||
'lemonde.fr',
|
||||
'mexiconewsdaily.com',
|
||||
'nknews.org',
|
||||
'ntnews.com.au',
|
||||
'prime.economictimes.indiatimes.com',
|
||||
'quora.com',
|
||||
'telegraph.co.uk',
|
||||
@ -76,34 +103,43 @@ const use_google_bot = [
|
||||
'themarker.com',
|
||||
'themercury.com.au',
|
||||
'thetimes.co.uk',
|
||||
'townsvillebulletin.com.au',
|
||||
'weeklytimesnow.com.au',
|
||||
'wsj.com',
|
||||
]
|
||||
|
||||
function setDefaultOptions() {
|
||||
browser.storage.sync.set({
|
||||
sites: defaultSites
|
||||
}, function() {
|
||||
browser.runtime.openOptionsPage();
|
||||
});
|
||||
}
|
||||
|
||||
const blockedRegexes = {
|
||||
// block paywall-scripts individually
|
||||
var blockedRegexes = {
|
||||
'adweek.com': /.+\.lightboxcdn\.com\/.+/,
|
||||
'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/,
|
||||
'bostonglobe.com': /meter\.bostonglobe\.com\/js\/.+/,
|
||||
'businessinsider.com': /(.+\.tinypass\.com\/.+|cdn\.onesignal\.com\/sdks\/.+\.js)/,
|
||||
'challenges.fr': /.+\.poool\.fr\/.+/,
|
||||
'chicagobusiness.com': /.+\.tinypass\.com\/.+/,
|
||||
'chicagotribune.com': /.+:\/\/.+\.tribdss\.com\//,
|
||||
'digiday.com': /.+\.tinypass\.com\/.+/,
|
||||
'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/_next\/static\/runtime\/main.+\.js)/,
|
||||
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
|
||||
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
|
||||
'folha.uol.com.br': /.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js/,
|
||||
'globo.com': /.+\.tinypass\.com\/.+/,
|
||||
'foreignpolicy.com': /.+\.tinypass\.com\/.+/,
|
||||
'fortune.com': /.+\.tinypass\.com\/.+/,
|
||||
'haaretz.co.il': /haaretz\.co\.il\/htz\/js\/inter\.js/,
|
||||
'haaretz.com': /haaretz\.com\/hdc\/web\/js\/minified\/header-scripts-int.js.+/,
|
||||
'inquirer.com': /.+\.tinypass\.com\/.+/,
|
||||
'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/,
|
||||
'lejdd.fr': /.+\.swisspay\.ch\/.+/,
|
||||
'leparisien.fr': /.+\.tinypass\.com\/.+/,
|
||||
'lesechos.fr': /.+\.tinypass\.com\/.+/,
|
||||
'lrb.co.uk': /.+\.tinypass\.com\/.+/,
|
||||
'newcastleherald.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/,
|
||||
'nytimes.com': /(.+meter-svc\.nytimes\.com\/meter\.js.+|.+mwcm\.nyt\.com\/.+\.js)/,
|
||||
'nytimes.com': /(.+meter-svc\.nytimes\.com\/meter\.js.+|.+mwcm\.nyt\.com\/.+\.js)/,
|
||||
'nzherald.co.nz': /nzherald\.co\.nz\/.+\/headjs\/.+\.js/,
|
||||
'sloanreview.mit.edu': /.+\.tinypass\.com\/.+/,
|
||||
'spectator.co.uk': /.+\.tinypass\.com\/.+/,
|
||||
'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/,
|
||||
'thenation.com': /thenation\.com\/.+\/paywall-script\.php/
|
||||
'thenation.com': /thenation\.com\/.+\/paywall-script\.php/,
|
||||
'valeursactuelles.com': /.+\.poool\.fr\/.+/
|
||||
};
|
||||
|
||||
const userAgentDesktop = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
|
||||
@ -111,6 +147,13 @@ const userAgentMobile = "Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible ;
|
||||
|
||||
var enabledSites = [];
|
||||
|
||||
function setDefaultOptions() {
|
||||
browser.storage.sync.set({
|
||||
sites: defaultSites
|
||||
}, function() {
|
||||
browser.runtime.openOptionsPage();
|
||||
});
|
||||
}
|
||||
// Get the enabled sites (from local storage) & add to allow/remove_cookies (if not already in one of these arrays)
|
||||
browser.storage.sync.get({
|
||||
sites: {}
|
||||
@ -173,7 +216,7 @@ browser.runtime.onInstalled.addListener(function (details) {
|
||||
}
|
||||
});
|
||||
|
||||
// Disable javascript for these sites
|
||||
// Disable javascript for these sites/general paywall-scripts
|
||||
browser.webRequest.onBeforeRequest.addListener(function(details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
return;
|
||||
@ -181,7 +224,7 @@ browser.webRequest.onBeforeRequest.addListener(function(details) {
|
||||
return {cancel: true};
|
||||
},
|
||||
{
|
||||
urls: ["*://*.tinypass.com/*", "*://*.poool.fr/*", "*://*.piano.io/*"],
|
||||
urls: ["*://*.tinypass.com/*", "*://*.poool.fr/*", "*://*.piano.io/*", "*://*.outbrain.com/*"],
|
||||
types: ["script"]
|
||||
},
|
||||
["blocking"]
|
||||
@ -208,6 +251,20 @@ browser.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
});
|
||||
}
|
||||
|
||||
// remove cookies for regional ADR sites of ad.nl (mainfest.json needs in permissions: <all_urls>)
|
||||
if (isSiteEnabled({url: '.ad.nl'})) {
|
||||
const ad_region_domains = ['bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.nl', 'destentor.nl', 'gelderlander.nl'];
|
||||
var domainVar = new URL(details.url).hostname.replace('www.', '');
|
||||
if (ad_region_domains.includes(domainVar)) {
|
||||
browser.cookies.getAll({domain: domainVar}, function(cookies) {
|
||||
for (var i=0; i<cookies.length; i++) {
|
||||
if (remove_cookies_select_drop['ad.nl'].includes(cookies[i].name)){
|
||||
browser.cookies.remove({url: (cookies[i].secure ? "https://" : "http://") + cookies[i].domain + cookies[i].path, name: cookies[i].name});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
// check for blocked regular expression: domain enabled, match regex, block on an internal or external regex
|
||||
for (var domain in blockedRegexes) {
|
||||
if ((isSiteEnabled({url: '.'+ domain}) || isSiteEnabled({url: header_referer})) && details.url.match(blockedRegexes[domain])) {
|
||||
@ -215,6 +272,7 @@ browser.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
// allow BG paywall-script to set cookies in homepage/sections (else no article-text)
|
||||
if (details.url.indexOf('meter.bostonglobe.com/js/') !== -1 && (header_referer === 'https://www.bostonglobe.com/'
|
||||
|| header_referer.indexOf('/?p1=BGHeader_') !== -1 || header_referer.indexOf('/?p1=BGMenu_') !== -1)) {
|
||||
browser.webRequest.handlerBehaviorChanged(function () {});
|
||||
break;
|
||||
} else if (header_referer.indexOf('theglobeandmail.com') !== -1 && !(header_referer.indexOf('/article-') !== -1)) {
|
||||
browser.webRequest.handlerBehaviorChanged(function () {});
|
||||
@ -241,7 +299,7 @@ browser.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
// this fixes images not being loaded on cooking.nytimes.com main page
|
||||
// referrer has to be *nytimes.com otherwise returns 403
|
||||
requestHeader.value = 'https://cooking.nytimes.com';
|
||||
} else if (details.url.indexOf("ft.com") !== -1) {
|
||||
} else if (details.url.indexOf("ft.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1) {
|
||||
requestHeader.value = 'https://www.facebook.com/';
|
||||
} else {
|
||||
requestHeader.value = 'https://www.google.com/';
|
||||
@ -257,7 +315,7 @@ browser.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
|
||||
// otherwise add it
|
||||
if (!setReferer) {
|
||||
if (details.url.indexOf("ft.com") !== -1) {
|
||||
if (details.url.indexOf("ft.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1) {
|
||||
requestHeaders.push({
|
||||
name: 'Referer',
|
||||
value: 'https://www.facebook.com/'
|
||||
@ -372,3 +430,7 @@ function getParameterByName(name, url) {
|
||||
if (!results[2]) return '';
|
||||
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
||||
}
|
||||
|
||||
function stripQueryStringAndHashFromPath(url) {
|
||||
return url.split("?")[0].split("#")[0];
|
||||
}
|
462
contentScript.js
462
contentScript.js
@ -1,4 +1,4 @@
|
||||
var arr_localstorage_hold = [];
|
||||
var arr_localstorage_hold = ['sfchronicle.com'];
|
||||
var localstorage_hold = arr_localstorage_hold.some(function(url) {
|
||||
return window.location.href.indexOf(url) !== -1;
|
||||
});
|
||||
@ -7,57 +7,12 @@ if (!localstorage_hold){
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
||||
const hiddenStory = document.getElementsByClassName(
|
||||
"js-pre-chunks__story-body"
|
||||
);
|
||||
if (hiddenStory && hiddenStory.length > 0) {
|
||||
hiddenStory[0].style.display = "block";
|
||||
// Content workarounds/domain
|
||||
if (location.hostname.endsWith('rep.repubblica.it')) {
|
||||
if (location.href.includes('/pwa/')) {
|
||||
location.href = location.href.replace('/pwa/', '/ws/detail/');
|
||||
}
|
||||
|
||||
const payWallMessage = document.getElementsByClassName(
|
||||
"chunk chunk--flex@lg chunk--paywall"
|
||||
);
|
||||
if (payWallMessage && payWallMessage.length > 0) {
|
||||
payWallMessage[0].style.display = "none";
|
||||
}
|
||||
} else if (window.location.href.indexOf("businessinsider.com") !== -1) {
|
||||
const paywall = document.getElementsByClassName(
|
||||
"tp-modal"
|
||||
);
|
||||
while (paywall.length > 0) {
|
||||
paywall[0].parentNode.removeChild(paywall[0]);
|
||||
}
|
||||
} else if (location.hostname.endsWith('haaretz.co.il')) {
|
||||
const html = document.getElementsByTagName('html');
|
||||
if (html && html.length > 0) {
|
||||
html[0].style['overflow-y'] = 'auto';
|
||||
}
|
||||
const msg = document.getElementById('article-wrapper');
|
||||
if (msg) {
|
||||
msg.style['display'] = 'none';
|
||||
}
|
||||
} else if (window.location.href.indexOf("nzherald.co.nz") !== -1) {
|
||||
const paywall = document.getElementById(
|
||||
"article-content"
|
||||
);
|
||||
if (paywall) {
|
||||
paywall.classList.remove('premium-content');
|
||||
paywall.classList.add('full-content');
|
||||
removeClassesByPrefix(paywall, 'QUnW');
|
||||
let paras = paywall.querySelectorAll("p, span, h2, div");
|
||||
for (let i = paras.length - 1; i > -1; i--) {
|
||||
removeClassesByPrefix(paras[i], 'QUnW');
|
||||
paras[i].classList.remove("ellipsis");
|
||||
paras[i].removeAttribute('style');
|
||||
}
|
||||
}
|
||||
} else if (location.hostname.endsWith('rep.repubblica.it')) {
|
||||
if (location.href.includes("/pwa/")) {
|
||||
location.href = location.href.replace("/pwa/", "/ws/detail/");
|
||||
}
|
||||
|
||||
if (location.href.includes("/ws/detail/")) {
|
||||
if (location.href.includes('/ws/detail/')) {
|
||||
const paywall = document.querySelector('.paywall[subscriptions-section="content"]');
|
||||
if (paywall) {
|
||||
paywall.removeAttribute('subscriptions-section');
|
||||
@ -67,60 +22,12 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (window.location.href.indexOf("wsj.com") !== -1) {
|
||||
if (location.href.includes('/articles/')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const paywall = document.getElementById('cx-scrim');
|
||||
const candybar = document.getElementById('cx-candybar');
|
||||
removeDOMElement(paywall, candybar);
|
||||
});
|
||||
/**
|
||||
setTimeout(function () {
|
||||
const close_button = document.querySelector('.close-btn');
|
||||
if (close_button)
|
||||
close_button.click();
|
||||
}, 2000);
|
||||
**/
|
||||
}
|
||||
} else if (window.location.href.indexOf("washingtonpost.com") !== -1) {
|
||||
if (location.href.includes('/gdpr-consent/')) {
|
||||
document.querySelector('.gdpr-consent-container .continue-btn.button.free').click();
|
||||
|
||||
setTimeout(function () {
|
||||
|
||||
const gdprcheckbox = document.querySelector('.gdpr-consent-container .consent-page:not(.hide) #agree');
|
||||
if (gdprcheckbox) {
|
||||
gdprcheckbox.checked = true;
|
||||
gdprcheckbox.dispatchEvent(new Event('change'));
|
||||
|
||||
document.querySelector('.gdpr-consent-container .consent-page:not(.hide) .continue-btn.button.accept-consent').click();
|
||||
}
|
||||
}, 300); // Delay (in milliseconds)
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("medium.com") !== -1) {
|
||||
const bottomMessageText = 'Get one more story in your member preview when you sign up. It’s free.';
|
||||
const DOMElementsToTextDiv = pageContains('div', bottomMessageText);
|
||||
|
||||
if (DOMElementsToTextDiv[2]) removeDOMElement(DOMElementsToTextDiv[2]);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("bloombergquint.com") !== -1) {
|
||||
const articlesLeftModal = document.getElementsByClassName('paywall-meter-module__story-paywall-container__1UgCE')[0];
|
||||
const paywall = document.getElementById('paywallDmp');
|
||||
removeDOMElement(articlesLeftModal, paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("bloomberg.com") !== -1) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const fence = document.querySelector('.fence-body');
|
||||
if (fence){
|
||||
fence.classList.remove('fence-body');
|
||||
}
|
||||
});
|
||||
const banner = document.getElementById('paywall-banner');
|
||||
removeDOMElement(banner);
|
||||
if (window.location.href.indexOf("americanbanker.com") !== -1) {
|
||||
const paywall = document.getElementsByClassName('embargo-content')[0];
|
||||
if (paywall)
|
||||
paywall.classList.remove('embargo-content');
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf('telegraaf.nl') !== -1) {
|
||||
@ -137,7 +44,71 @@ if (window.location.href.indexOf('ad.nl') !== -1 || window.location.href.indexOf
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("parool.nl") !== -1 || window.location.href.indexOf("trouw.nl") !== -1 || window.location.href.indexOf("volkskrant.nl") !== -1) {
|
||||
if (window.location.href.indexOf("washingtonpost.com") !== -1) {
|
||||
if (location.href.includes('/gdpr-consent/')) {
|
||||
const free_button = document.querySelector('.gdpr-consent-container .continue-btn.button.free');
|
||||
if (free_button)
|
||||
free_button.click();
|
||||
|
||||
setTimeout(function () {
|
||||
const gdprcheckbox = document.querySelector('.gdpr-consent-container .consent-page:not(.hide) #agree');
|
||||
if (gdprcheckbox) {
|
||||
gdprcheckbox.checked = true;
|
||||
gdprcheckbox.dispatchEvent(new Event('change'));
|
||||
|
||||
document.querySelector('.gdpr-consent-container .consent-page:not(.hide) .continue-btn.button.accept-consent').click();
|
||||
}
|
||||
}, 300); // Delay (in milliseconds)
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("wsj.com") !== -1) {
|
||||
if (location.href.includes('/articles/')) {
|
||||
const close_button = document.querySelector('.close-btn');
|
||||
if (close_button)
|
||||
close_button.click();
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("sloanreview.mit.edu") !== -1) {
|
||||
const read_more = document.querySelector('.btn-read-more');
|
||||
if(read_more)
|
||||
read_more.click();
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("mexiconewsdaily.com") !== -1) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const sideNotification = document.querySelector('.pigeon-widget-prompt');
|
||||
const subMessage = document.querySelector('.sub_message_container');
|
||||
const popup = document.querySelector('.popupally-pro-outer-full-width-7-fluid_qemskqa');
|
||||
const bgFocusRemoverId = document.getElementById('popup-box-pro-gfcr-7');
|
||||
removeDOMElement(sideNotification, subMessage, popup, bgFocusRemoverId);
|
||||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("the-american-interest.com") !== -1) {
|
||||
const counter = document.getElementById('article-counter');
|
||||
removeDOMElement(counter);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("nzherald.co.nz") !== -1) {
|
||||
const paywall = document.getElementById('article-content');
|
||||
if (paywall) {
|
||||
const premium = document.getElementsByClassName('premium-sub')[0];
|
||||
removeDOMElement(premium);
|
||||
paywall.classList.remove('premium-content');
|
||||
paywall.classList.add('full-content');
|
||||
removeClassesByPrefix(paywall, 'QUnW');
|
||||
let paras = paywall.querySelectorAll("p, span, h2, div");
|
||||
for (let i = 0; i < paras.length; i++){
|
||||
removeClassesByPrefix(paras[i], 'QUnW');
|
||||
paras[i].classList.remove("ellipsis");
|
||||
paras[i].removeAttribute('style');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("parool.nl") !== -1 || window.location.href.indexOf("trouw.nl") !== -1 || window.location.href.indexOf("volkskrant.nl") !== -1) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const paywall = document.querySelector('div[data-temptation-position="ARTICLE_BOTTOM"]');
|
||||
const hidden_section = document.querySelector('div[data-temptation-position="ARTICLE_INLINE"]');
|
||||
@ -145,17 +116,45 @@ if (window.location.href.indexOf("parool.nl") !== -1 || window.location.href.ind
|
||||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("firstthings.com") !== -1) {
|
||||
const paywall = document.getElementsByClassName('paywall')[0];
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("bloomberg.com") !== -1) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const fence = document.querySelector('.fence-body');
|
||||
if (fence){
|
||||
fence.classList.remove('fence-body');
|
||||
}
|
||||
});
|
||||
const banner = document.getElementById('paywall-banner');
|
||||
removeDOMElement(banner);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("bloombergquint.com") !== -1) {
|
||||
const articlesLeftModal = document.getElementsByClassName('paywall-meter-module__story-paywall-container__1UgCE')[0];
|
||||
const paywall = document.getElementById('paywallDmp');
|
||||
removeDOMElement(articlesLeftModal, paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("medium.com") !== -1) {
|
||||
const bottomMessageText = 'Get one more story in your member preview when you sign up. It’s free.';
|
||||
const DOMElementsToTextDiv = pageContains('div', bottomMessageText);
|
||||
if (DOMElementsToTextDiv[2]) removeDOMElement(DOMElementsToTextDiv[2]);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf('lemonde.fr') !== -1) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const hidden_section = document.getElementsByClassName('article__content--restricted-media')[0];
|
||||
if (hidden_section)
|
||||
hidden_section.classList.remove('article__content--restricted-media');
|
||||
const longform_article_restricted = document.getElementsByClassName('article__content--restricted')[0];
|
||||
const longform_article_restricted = document.getElementsByClassName('article__content--restricted')[0];
|
||||
if (longform_article_restricted)
|
||||
longform_article_restricted.classList.remove('article__content--restricted');
|
||||
const longform_paywall = document.getElementsByClassName('paywall--longform')[0];
|
||||
longform_article_restricted.classList.remove('article__content--restricted');
|
||||
const longform_paywall = document.getElementsByClassName('paywall--longform')[0];
|
||||
if (longform_paywall)
|
||||
longform_paywall.classList.remove('paywall--longform');
|
||||
longform_paywall.classList.remove('paywall--longform');
|
||||
const paywall = document.getElementById('js-paywall-content');
|
||||
const friend_paywall = document.getElementsByClassName('friend--paywall')[0];
|
||||
const cookie_banner = document.getElementById('cookie-banner');
|
||||
@ -163,26 +162,38 @@ if (window.location.href.indexOf('lemonde.fr') !== -1) {
|
||||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("canberratimes.com.au") !== -1) {
|
||||
const paywall = document.querySelector('.subscribe-article.news-article-body.article__body');
|
||||
paywall.classList.remove('subscribe-article');
|
||||
let subscribe = document.getElementsByClassName('subscriber-container')[0];
|
||||
removeDOMElement(subscribe);
|
||||
let content = document.getElementsByClassName('subscriber-hider');
|
||||
for (let i = 0; i < content.length; i++) {
|
||||
content[i].classList.remove('subscriber-hider');
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("ledevoir.com") !== -1) {
|
||||
const counter = document.querySelector('.popup-msg');
|
||||
removeDOMElement(counter);
|
||||
}
|
||||
|
||||
if (window.location.href.includes('ft.com')) {
|
||||
const cookie_banner = document.querySelector('.n-messaging-banner__outer');
|
||||
removeDOMElement(cookie_banner);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("thehindu.com") !== -1) {
|
||||
const paywall = document.getElementById('test');
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("nytimes.com") !== -1) {
|
||||
const preview_button = document.querySelector('.css-3s1ce0');
|
||||
if (preview_button)
|
||||
preview_button.click();
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("caixinglobal.com") !== -1) {
|
||||
const pay_tip = document.querySelectorAll('.cons-pay-tip');
|
||||
for (let i = 0; i < pay_tip.length; i++) {
|
||||
pay_tip[i].removeAttribute('style');
|
||||
}
|
||||
const appContent = document.getElementById('appContent');
|
||||
if (appContent) {
|
||||
const p_hidden = document.querySelectorAll('p:not([style="display:block;"]');
|
||||
for (let i = 0; i < p_hidden.length; i++) {
|
||||
p_hidden[i].setAttribute('style', 'display:block;');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("economist.com") !== -1) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const subscribe = document.querySelector('.subscription-proposition');
|
||||
@ -198,11 +209,37 @@ if (window.location.href.indexOf("economist.com") !== -1) {
|
||||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
||||
const sheet_overlay = document.querySelector('.sheet-overlay');
|
||||
const chunk_paywall = document.querySelector('.chunk--paywall');
|
||||
removeDOMElement(sheet_overlay, chunk_paywall);
|
||||
const overlaid = document.querySelectorAll('.is-overlaid');
|
||||
for (let i = 0; i < overlaid.length; i++) {
|
||||
overlaid[i].classList.remove('is-overlaid');
|
||||
}
|
||||
const body_hidden = document.querySelector('.js-pre-chunks__story-body');
|
||||
body_hidden.removeAttribute('style');
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("the-tls.co.uk") !== -1) {
|
||||
const paywall = document.querySelector('.tls-subscriptions-banner__closed-skin');
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("caixinglobal.com") !== -1) {
|
||||
const pay_tip = document.querySelectorAll('.cons-pay-tip');
|
||||
for (let i = 0; i < pay_tip.length; i++) {
|
||||
pay_tip[i].removeAttribute('style');
|
||||
}
|
||||
const appContent = document.getElementById('appContent');
|
||||
if (appContent) {
|
||||
const p_hidden = document.querySelectorAll('p:not([style="display:block;"]');
|
||||
for (let i = 0; i < p_hidden.length; i++) {
|
||||
p_hidden[i].setAttribute('style', 'display:block;');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("nrc.nl") !== -1) {
|
||||
const paywall = document.querySelector('.has-paywall');
|
||||
if (paywall)
|
||||
@ -212,12 +249,46 @@ if (window.location.href.indexOf("nrc.nl") !== -1) {
|
||||
paywall_overlay.classList.remove("has-paywall-overlay");
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("theathletic.com") !== -1) {
|
||||
const landing_banner = document.querySelector('.logged-out-landing-banner');
|
||||
const sample_banner = document.querySelector('.main-sample-banner');
|
||||
const bottom_banner = document.querySelector('.border-bottom-cc');
|
||||
const subscribe = document.querySelector('.subscribe-ad-text');
|
||||
removeDOMElement(landing_banner, sample_banner, bottom_banner, subscribe);
|
||||
if (window.location.href.indexOf("scribd.com") !== -1) {
|
||||
const blur = document.querySelectorAll('.blurred_page');
|
||||
for (let i = 0; i < blur.length; i++) {
|
||||
blur[i].classList.remove('blurred_page');
|
||||
}
|
||||
const portal = document.querySelector('.between_page_portal_root');
|
||||
const page_module = document.querySelector('.between_page_module');
|
||||
const promo = document.querySelector('.auto__doc_page_webpack_doc_page_body_static_promo_study');
|
||||
const ad = document.querySelector('.auto__explain_scribd_v2_advertisement');
|
||||
removeDOMElement(portal, page_module, promo, ad);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("thetimes.co.uk") !== -1) {
|
||||
const block = document.querySelector('.subscription-block');
|
||||
const ad_block = document.getElementById('ad-article-inline')
|
||||
const ad_header = document.getElementById('sticky-ad-header')
|
||||
removeDOMElement(block, ad_block, ad_header);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("technologyreview.com") !== -1) {
|
||||
const read_story = document.querySelector('.storyExpanderButton');
|
||||
if (read_story)
|
||||
read_story.click();
|
||||
const meter = document.querySelector('.meter');
|
||||
removeDOMElement(meter);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("haaretz.com") !== -1) {
|
||||
const popup = document.querySelector('.footer-ruler');
|
||||
removeDOMElement(popup);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("asia.nikkei.com") !== -1) {
|
||||
const popup = document.querySelector('.pw-widget--popup');
|
||||
removeDOMElement(popup);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("hbr.org") !== -1) {
|
||||
const popup = document.querySelector('.persistent-banner');
|
||||
removeDOMElement(popup);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("techinasia.com") !== -1) {
|
||||
@ -230,20 +301,10 @@ if (window.location.href.indexOf("techinasia.com") !== -1) {
|
||||
removeDOMElement(splash_subscribe, paywall_hard);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("newcastleherald.com.au") !== -1) {
|
||||
const subscribe_truncate = document.querySelector('.subscribe-truncate');
|
||||
if (subscribe_truncate)
|
||||
subscribe_truncate.classList.remove('subscribe-truncate');
|
||||
const subscriber_hider = document.querySelectorAll('.subscriber-hider');
|
||||
for (let i = 0; i < subscriber_hider.length; i++) {
|
||||
subscriber_hider[i].classList.remove('subscriber-hider');
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("thestar.com") !== -1) {
|
||||
const paywall = document.querySelector('.basic-paywall-new');
|
||||
removeDOMElement(paywall);
|
||||
const tbc = document.querySelectorAll('.text-block-container');
|
||||
const tbc = document.querySelectorAll('.text-block-container');
|
||||
for (let i = 0; i < tbc.length; i++) {
|
||||
tbc[i].removeAttribute('style');
|
||||
}
|
||||
@ -286,44 +347,27 @@ if (window.location.href.indexOf("theglobeandmail.com") !== -1) {
|
||||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("scribd.com") !== -1) {
|
||||
const blur = document.querySelectorAll('.blurred_page');
|
||||
for (let i = 0; i < blur.length; i++) {
|
||||
blur[i].classList.remove('blurred_page');
|
||||
if (window.location.href.indexOf("newcastleherald.com.au") !== -1) {
|
||||
const subscribe_truncate = document.querySelector('.subscribe-truncate');
|
||||
if (subscribe_truncate)
|
||||
subscribe_truncate.classList.remove('subscribe-truncate');
|
||||
const subscriber_hider = document.querySelectorAll('.subscriber-hider');
|
||||
for (let i = 0; i < subscriber_hider.length; i++) {
|
||||
subscriber_hider[i].classList.remove('subscriber-hider');
|
||||
}
|
||||
const portal = document.querySelector('.between_page_portal_root');
|
||||
const page_module = document.querySelector('.between_page_module');
|
||||
const promo = document.querySelector('.auto__doc_page_webpack_doc_page_body_static_promo_study');
|
||||
const ad = document.querySelector('.auto__explain_scribd_v2_advertisement');
|
||||
removeDOMElement(portal, page_module, promo, ad);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("technologyreview.com") !== -1) {
|
||||
const read_story = document.querySelector('.storyExpanderButton');
|
||||
if (read_story)
|
||||
read_story.click();
|
||||
const meter = document.querySelector('.meter');
|
||||
removeDOMElement(meter);
|
||||
if (window.location.href.indexOf("sofrep.com") !== -1) {
|
||||
const banner = document.getElementById('scrollerCTA');
|
||||
removeDOMElement(banner);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("thetimes.co.uk") !== -1) {
|
||||
const block = document.querySelector('.subscription-block');
|
||||
removeDOMElement(block);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("haaretz.com") !== -1) {
|
||||
const popup = document.querySelector('.footer-ruler');
|
||||
removeDOMElement(popup);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("asia.nikkei.com") !== -1) {
|
||||
const popup = document.querySelector('.pw-widget--popup');
|
||||
removeDOMElement(popup);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("hbr.org") !== -1) {
|
||||
const popup = document.querySelector('.persistent-banner');
|
||||
removeDOMElement(popup);
|
||||
if (window.location.href.indexOf("theathletic.com") !== -1) {
|
||||
const landing_banner = document.querySelector('.logged-out-landing-banner');
|
||||
const sample_banner = document.querySelector('.main-sample-banner');
|
||||
const bottom_banner = document.querySelector('.border-bottom-cc');
|
||||
const subscribe = document.querySelector('.subscribe-ad-text');
|
||||
removeDOMElement(landing_banner, sample_banner, bottom_banner, subscribe);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("newstatesman.com") !== -1) {
|
||||
@ -331,23 +375,81 @@ if (window.location.href.indexOf("newstatesman.com") !== -1) {
|
||||
removeDOMElement(tns_modal_wrapper);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("liberation.fr") !== -1) {
|
||||
const close_button = document.querySelector('.pw-action-close');
|
||||
if (close_button)
|
||||
close_button.click();
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("estadao.com.br") !== -1) {
|
||||
const paywall = document.getElementById('paywall-wrapper-iframe-estadao');
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("folha.uol.com.br") !== -1) {
|
||||
const signup = document.querySelector('.c-top-signup');
|
||||
removeDOMElement(signup);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("cen.acs.org") !== -1) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const meteredBar = document.querySelector('.meteredBar');
|
||||
removeDOMElement(meteredBar);
|
||||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("centralwesterndaily.com.au") !== -1) {
|
||||
const subscribe_truncate = document.querySelector('.subscribe-truncate');
|
||||
if (subscribe_truncate)
|
||||
subscribe_truncate.classList.remove('subscribe-truncate');
|
||||
const subscriber_hider = document.querySelectorAll('.subscriber-hider');
|
||||
for (let i = 0; i < subscriber_hider.length; i++) {
|
||||
subscriber_hider[i].classList.remove('subscriber-hider');
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("lesechos.fr") !== -1) {
|
||||
const ad_block = document.querySelectorAll('.jzxvkd-1');
|
||||
for (let i=0; i < ad_block.length; i++) {
|
||||
ad_block[i].remove();
|
||||
}
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("thesaturdaypaper.com.au") !== -1) {
|
||||
const expand_button = document.querySelector('.continue-reading-button');
|
||||
if (expand_button)
|
||||
expand_button.click();
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("examiner.com.au") !== -1) {
|
||||
const subscribe_truncate = document.querySelector('.subscribe-truncate');
|
||||
if (subscribe_truncate)
|
||||
subscribe_truncate.classList.remove('subscribe-truncate');
|
||||
const subscriber_hider = document.querySelectorAll('.subscriber-hider');
|
||||
for (let i = 0; i < subscriber_hider.length; i++) {
|
||||
subscriber_hider[i].classList.remove('subscriber-hider');
|
||||
}
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
if (element) element.remove();
|
||||
if (element)
|
||||
element.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function removeClassesByPrefix(el, prefix) {
|
||||
for (let i = el.classList.length - 1; i >= 0; i--) {
|
||||
for (let i = 0; i < el.classList.length; i++){
|
||||
if (el.classList[i].startsWith(prefix)) {
|
||||
el.classList.remove(el.classList[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function pageContains (selector, text) {
|
||||
const elements = document.querySelectorAll(selector)
|
||||
return Array.prototype.filter.call(elements, function (element) {
|
||||
return RegExp(text).test(element.textContent)
|
||||
})
|
||||
}
|
||||
function pageContains(selector, text) {
|
||||
let elements = document.querySelectorAll(selector);
|
||||
return Array.prototype.filter.call(elements, function(element){
|
||||
return RegExp(text).test(element.textContent);
|
||||
});
|
||||
}
|
||||
|
@ -44,5 +44,5 @@
|
||||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.6.3.6"
|
||||
"version": "1.6.4.0"
|
||||
}
|
90
sites.json
90
sites.json
@ -1,46 +1,68 @@
|
||||
{
|
||||
"Algemeen Dagblad": "ad.nl",
|
||||
"Adweek": "adweek.com",
|
||||
"Algemeen Dagblad": "ad.nl",
|
||||
"American Affairs": "americanaffairsjournal.org",
|
||||
"American Banker": "americanbanker.com",
|
||||
"Baltimore Sun": "baltimoresun.com",
|
||||
"Barron's": "barrons.com",
|
||||
"Bloomberg": "bloomberg.com",
|
||||
"Bloomberg Quint (free articles only)": "bloombergquint.com",
|
||||
"Bloomberg": "bloomberg.com",
|
||||
"Business Insider": "businessinsider.com",
|
||||
"Cairns Post": "cairnspost.com.au",
|
||||
"Caixin Global": "caixinglobal.com",
|
||||
"Central Western Daily": "centralwesterndaily.com.au",
|
||||
"Challenges": "challenges.fr",
|
||||
"Chemical & Engineering News": "cen.acs.org",
|
||||
"Chicago Tribune": "chicagotribune.com",
|
||||
"Central Western Daily": "centralwesterndaily.com.au",
|
||||
"Crain's Chicago Business": "chicagobusiness.com",
|
||||
"Corriere Della Sera": "corriere.it",
|
||||
"Crain's Chicago Business": "chicagobusiness.com",
|
||||
"Dagens Nyheter": "dn.se",
|
||||
"Daily Press": "dailypress.com",
|
||||
"DeMorgen": "demorgen.be",
|
||||
"Denver Post": "denverpost.com",
|
||||
"De Groene Amsterdammer": "groene.nl",
|
||||
"Dark Reading": "darkreading.com",
|
||||
"De Tijd": "tijd.be",
|
||||
"de Volkskrant": "volkskrant.nl",
|
||||
"DeMorgen": "demorgen.be",
|
||||
"Digiday": "digiday.com",
|
||||
"El País": "elpais.com",
|
||||
"Encyclopedia Britannica": "britannica.com",
|
||||
"ET Prime": "prime.economictimes.indiatimes.com",
|
||||
"The Economist": "economist.com",
|
||||
"Eindhovens Dagblad": "ed.nl",
|
||||
"Exame": "exame.abril.com.br",
|
||||
"Financial News": "fnlondon.com",
|
||||
"Financial Times": "ft.com",
|
||||
"First Things": "firstthings.com",
|
||||
"Folha de S. Paulo": "folha.uol.com.br",
|
||||
"Foreign Policy": "foreignpolicy.com",
|
||||
"Fortune": "fortune.com",
|
||||
"Glassdoor": "glassdoor.com",
|
||||
"Haaretz": "haaretz.co.il",
|
||||
"Gold Coast Bulletin": "goldcoastbulletin.com.au",
|
||||
"Groene Amsterdammer": "groene.nl",
|
||||
"Haaretz English": "haaretz.com",
|
||||
"Haaretz": "haaretz.co.il",
|
||||
"Handelsblatt": "handelsblatt.com",
|
||||
"Harper's Magazine": "harpers.org",
|
||||
"Hartford Courant": "courant.com",
|
||||
"Harvard Business Review": "hbr.org",
|
||||
"Herald Sun": "heraldsun.com.au",
|
||||
"Inc.com": "inc.com",
|
||||
"Investors Chronicle": "investorschronicle.co.uk",
|
||||
"Kleine Zeitung": "kleinezeitung.at",
|
||||
"L'Écho": "lecho.be",
|
||||
"La Nación": "lanacion.com.ar",
|
||||
"La Repubblica": "repubblica.it",
|
||||
"La Stampa": "lastampa.it",
|
||||
"La Tercera": "latercera.com",
|
||||
"Le Devoir": "ledevoir.com",
|
||||
"Le Journal du Dimanche": "lejdd.fr",
|
||||
"Le Monde": "lemonde.fr",
|
||||
"Le Parisien": "leparisien.fr",
|
||||
"Le Temps": "letemps.ch",
|
||||
"Les Échos (free articles only)": "lesechos.fr",
|
||||
"Les Échos": "lesechos.fr",
|
||||
"Libération (free articles only)": "liberation.fr",
|
||||
"Loeb Classical Library": "loebclassics.com",
|
||||
"London Review of Books": "lrb.co.uk",
|
||||
"Los Angeles Business Journal": "labusinessjournal.com",
|
||||
"Los Angeles Times": "latimes.com",
|
||||
"Medium (all sites)": "medium.com",
|
||||
"Medscape": "medscape.com",
|
||||
"Mexico News Daily": "mexiconewsdaily.com",
|
||||
"Miami Herald": "miamiherald.com",
|
||||
"MIT Sloan Management Review": "sloanreview.mit.edu",
|
||||
"MIT Technology Review": "technologyreview.com",
|
||||
"Mountain View Voice": "mv-voice.com",
|
||||
"National Post": "nationalpost.com",
|
||||
@ -49,33 +71,48 @@
|
||||
"Newcastle Herald": "newcastleherald.com.au",
|
||||
"Nikkei Asian Review": "asia.nikkei.com",
|
||||
"NK News": "nknews.org",
|
||||
"Northern Territory News": "ntnews.com.au",
|
||||
"NRC Handelsblad": "nrc.nl",
|
||||
"O Estado de S. Paulo": "estadao.com.br",
|
||||
"O Globo": "globo.com",
|
||||
"Orange County Register": "ocregister.com",
|
||||
"Orlando Sentinel": "orlandosentinel.com",
|
||||
"Palo Alto Online": "paloaltoonline.com",
|
||||
"Parool": "parool.nl",
|
||||
"Pittsburgh Post Gazette": "post-gazette.com",
|
||||
"Quartz": "qz.com",
|
||||
"Quora": "quora.com",
|
||||
"Scientific American (free articles only)": "scientificamerican.com",
|
||||
"San Diego Union Tribune": "sandiegouniontribune.com",
|
||||
"San Francisco Chronicle": "sfchronicle.com",
|
||||
"Scientific American (free articles only)": "scientificamerican.com",
|
||||
"Scribd (documents only)": "scribd.com",
|
||||
"SOFREP": "sofrep.com",
|
||||
"Statista": "statista.com",
|
||||
"SunSentinel": "sun-sentinel.com",
|
||||
"Tech in Asia": "techinasia.com",
|
||||
"Telegraaf": "telegraaf.nl",
|
||||
"The Advertiser": "adelaidenow.com.au",
|
||||
"The Advocate": "theadvocate.com.au",
|
||||
"The Age": "theage.com.au",
|
||||
"The American Interest": "the-american-interest.com",
|
||||
"The Athletic": "theathletic.com",
|
||||
"The Atlantic": "theatlantic.com",
|
||||
"The Australian": "theaustralian.com.au",
|
||||
"The Australian Financial Review": "afr.com",
|
||||
"The Australian": "theaustralian.com.au",
|
||||
"The Boston Globe": "bostonglobe.com",
|
||||
"The Business Journals": "bizjournals.com",
|
||||
"The Canberra Times": "canberratimes.com.au",
|
||||
"The Courier-Mail": "couriermail.com.au",
|
||||
"The Daily Telegraph": "dailytelegraph.com.au",
|
||||
"The Denver Post": "denverpost.com",
|
||||
"The Diplomat": "thediplomat.com",
|
||||
"The Examiner (free articles only)": "examiner.com.au",
|
||||
"The Economist": "economist.com",
|
||||
"The Examiner": "examiner.com.au",
|
||||
"The Globe and Mail": "theglobeandmail.com",
|
||||
"The Hindu": "thehindu.com",
|
||||
"The Irish Times (free articles only)": "irishtimes.com",
|
||||
"The Japan Times": "japantimes.co.jp",
|
||||
"TheMarker": "themarker.com",
|
||||
"The Marker": "themarker.com",
|
||||
"The Mercury News": "mercurynews.com",
|
||||
"The Mercury Tasmania": "themercury.com.au",
|
||||
"The Morning Call": "mcall.com",
|
||||
@ -85,23 +122,30 @@
|
||||
"The New Yorker": "newyorker.com",
|
||||
"The News-Gazette": "news-gazette.com",
|
||||
"The Philadelphia Inquirer": "inquirer.com",
|
||||
"The Sacramento Bee (free articles only)": "sacbee.com",
|
||||
"The Saturday Paper": "thesaturdaypaper.com.au",
|
||||
"The Spectator": "spectator.co.uk",
|
||||
"The Seattle Times": "seattletimes.com",
|
||||
"The Spectator": "spectator.co.uk",
|
||||
"The Sydney Morning Herald": "smh.com.au",
|
||||
"The Telegraph": "telegraph.co.uk",
|
||||
"The Times Literary Supplement": "the-tls.co.uk",
|
||||
"The Times": "thetimes.co.uk",
|
||||
"The Toronto Star": "thestar.com",
|
||||
"The Washington Post": "washingtonpost.com",
|
||||
"The Wall Street Journal": "wsj.com",
|
||||
"Times Literary Supplement": "the-tls.co.uk",
|
||||
"The Washington Post": "washingtonpost.com",
|
||||
"The Weekly Times": "weeklytimesnow.com.au",
|
||||
"Towards Data Science": "towardsdatascience.com",
|
||||
"Townsville Bulletin": "httpstownsvillebulletin.com.au",
|
||||
"Trouw": "trouw.nl",
|
||||
"Valeurs Actuelles": "valeursactuelles.com",
|
||||
"Vanity Fair": "vanityfair.com",
|
||||
"Volkskrant": "volkskrant.nl",
|
||||
"Vrij Nederland": "vn.nl",
|
||||
"Winston-Salem Journal": "journalnow.com",
|
||||
"Wired": "wired.com",
|
||||
"——— Block Paywall-scripts ———": "###",
|
||||
"Outbrain": "outbrain.com",
|
||||
"Poool.fr": "poool.fr",
|
||||
"TinyPass": "tinypass.com",
|
||||
"Piano.io": "piano.io"
|
||||
}
|
||||
}
|
||||
|
@ -3,12 +3,10 @@
|
||||
"addons": {
|
||||
"magnolia@12.34": {
|
||||
"updates": [
|
||||
{ "version": "1.6.3.3",
|
||||
"update_link": "https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.3.3/bypass_paywalls_clean-1.6.3.3-an+fx.xpi" },
|
||||
{ "version": "1.6.3.5",
|
||||
"update_link": "https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.3.5/bypass_paywalls_clean-1.6.3.5-an+fx.xpi" },
|
||||
{ "version": "1.6.3.6",
|
||||
"update_link": "https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.3.6/bypass_paywalls_clean-1.6.3.6-an+fx.xpi" }
|
||||
"update_link": "https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.3.6/bypass_paywalls_clean-1.6.3.6-an+fx.xpi" },
|
||||
{ "version": "1.6.4.0",
|
||||
"update_link": "https://github.com/magnolia1234/bypass-paywalls-firefox-clean/releases/download/v1.6.4.0/bypass_paywalls_clean-1.6.4.0-an+fx.xpi" }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user