diff --git a/README.md b/README.md index a96062e..96e0bc7 100755 --- a/README.md +++ b/README.md @@ -1,21 +1,22 @@ +# Bypass Paywalls for Chrome +
- +
-# Bypass Paywalls for Chrome - * [Installation instructions](#installation-instructions) * [List of supported websites](#bypass-the-following-sites-paywalls-with-this-extension) -* [Sites with limited number of free articles](#sites-with-limited-number-of-free-articles) +* [Sites with limited number of free articles](#list-of-supported-websites) * [New site requests](#new-site-requests) * [Troubleshooting](#troubleshooting) +* [Changelog](#changelog) * [Pull Requests](#pull-requests) * [Show your support](#show-your-support) * [License](#license) ### Installation instructions -#### Windows/MacOS/Linux +#### Chrome (Windows/MacOS/Linux) 1. Download this repo as a [ZIP file from GitHub](https://github.com/iamadamdev/bypass-paywalls-chrome/archive/master.zip). 2. Unzip the file and you should have a folder named `bypass-paywalls-chrome-master`. 3. Move the folder to a permanent location on your computer (do not delete the folder after installation). @@ -24,26 +25,31 @@ 6. Drag the `bypass-paywalls-chrome-master` folder anywhere on the page to import it. #### Android - -1. Install [Yandex Browser](https://play.google.com/store/apps/details?id=com.yandex.browser&hl=en) from the Google PlayStore. -2. Download this repo as a [ZIP file from GitHub](https://github.com/iamadamdev/bypass-paywalls-chrome/archive/master.zip). +1. Install [Yandex Browser](https://play.google.com/store/apps/details?id=com.yandex.browser&hl=en) from the Google PlayStore (Bypass Paywalls doesn't work with Kiwi Browser yet). +2. Download this repo as a [ZIP file from GitHub](https://github.com/iamadamdev/bypass-paywalls-chrome/archive/master.zip). Extract the file (do not delete the folder after installation). 3. In Yandex go to the extensions page (`browser://extensions`). 4. Turn on the Developer Mode by checking the box. 5. Tap `Load unpacked extension`. 6. Find your extension folder and pick `manifest.json`. +#### Opera/Vivaldi/Brave/Chromium browsers +1. Download the extension as a .crx file from the [releases page](https://github.com/iamadamdev/bypass-paywalls-chrome/releases). +2. In your browser go to the extensions page. +3. Enable Developer Mode. +4. Drag your .crx file anywhere on the page to import it. + +#### Firefox +Visit the [Firefox repository](https://github.com/iamadamdev/bypass-paywalls-firefox) of Bypass Paywall. + **Notes** -* Do not delete extension's folder from your computer/smartphone, or Bypass Paywalls will disappear at restart. +* This extension works best along side the adblocker [uBlock Origin](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en). +* Do not delete extension's folder from your computer/smartphone or Bypass Paywalls will disappear at restart. * Every time you open Chrome it may warn you about running extensions in developer mode, just click 🗙 to keep the extension enabled. * You will be logged out for any site you have checked. -* This extension works best along side the adblocker [uBlock Origin](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en). -* With uBlock installed, [subscribe](https://www.fanboy.co.nz/filters.html) to the Fanboy's Enhanced Tracking List to block scripts from various paywall services (click `Add Enhanced Tracking list`). - -### Bypass the following sites' paywalls with this extension +### List of supported websites [Algemeen Dagblad](https://www.ad.nl)\ [American Banker](https://www.americanbanker.com)\ -[Baltimore Sun](https://www.baltimoresun.com)\ [Barron's](https://www.barrons.com)\ [Bloomberg](https://www.bloomberg.com)\ [Bloomberg Quint](https://www.bloombergquint.com)\ @@ -51,15 +57,11 @@ [Caixin Global](https://www.caixinglobal.com)\ [Chicago Tribune](https://www.chicagotribune.com)\ [Corriere Della Sera](https://www.corriere.it)\ -[Crain's Chicago Business](https://www.chicagobusiness.com)\ [Dagens Nyheter](https://www.dn.se)\ [Daily Press](https://www.dailypress.com)\ [DeMorgen](https://www.demorgen.be)\ -[Denver Post](https://www.denverpost.com)\ -[Eindhovens Dagblad](https://www.ed.nl)\ [Encyclopedia Britannica](https://www.britannica.com)\ [ET Prime](https://prime.economictimes.indiatimes.com/)\ -[Examiner](https://www.examiner.com.au)\ [Financial News](https://www.fnlondon.com)\ [Financial Times](https://www.ft.com)\ [First Things](https://www.firstthings.com)\ @@ -73,8 +75,6 @@ [Hartford Courant](https://www.courant.com)\ [Harvard Business Review](https://www.hbr.org)\ [Inc.com](https://www.inc.com)\ -[L'Écho](https://www.lecho.be)\ -[L.A. Business Journal](https://labusinessjournal.com)\ [La Nación](https://www.lanacion.com.ar)\ [La Repubblica](https://www.repubblica.it)\ [La Tercera](https://www.latercera.com)\ @@ -86,7 +86,6 @@ [London Review of Books](https://www.lrb.co.uk)\ [Los Angeles Times](https://www.latimes.com)\ [Medium](https://www.medium.com)\ -[Mexicon News Daily](https://mexiconewsdaily.com)\ [MIT Sloan Management Review](https://sloanreview.mit.edu)\ [MIT Technology Review](https://www.technologyreview.com)\ [National Post](https://www.nationalpost.com)\ @@ -94,18 +93,15 @@ [New Zealand Herald](https://www.nzherald.co.nz)\ [Nikkei Asian Review](https://asia.nikkei.com)\ [NRC Handelsblad](https://www.nrc.nl)\ -[Orlando Sentinel](https://www.orlandosentinel.com)\ [Parool](https://www.parool.nl)\ [Quartz](https://qz.com)\ [Quora](https://www.quora.com)\ -[San Diego Union Tribune](https://www.sandiegouniontribune.com)\ [San Francisco Chronicle](https://www.sfchronicle.com)\ [Scientific American](https://www.scientificamerican.com)\ [Scribd](http://scribd.com)\ [SOFREP](https://sofrep.com)\ [Statista](https://www.statista.com)\ -[SunSentinel](https://www.sun-sentinel.com)\ -[Tech in Asia] (https://www.techinasia.com)\ +[Tech in Asia](https://www.techinasia.com)\ [Telegraaf](https://www.telegraaf.nl)\ [The Advocate](https://www.theadvocate.com.au)\ [The Age](https://www.theage.com.au)\ @@ -116,6 +112,7 @@ [The Boston Globe](https://www.bostonglobe.com)\ [The Business Journals](https://www.bizjournals.com)\ [The Canberra Times](https://www.canberratimes.com.au)\ +[The Denver Post](https://www.denverpost.com)\ [The Diplomat](https://www.thediplomat.com)\ [The Economist](https://www.economist.com)\ [The Globe and Mail](https://www.theglobeandmail.com)\ @@ -124,12 +121,10 @@ [The Japan Times](https://www.japantimes.co.jp)\ [The Marker](https://www.themarker.com)\ [The Mercury News](https://www.mercurynews.com)\ -[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 Seattle Times](https://www.seattletimes.com)\ [The Spectator](https://www.spectator.co.uk)\ @@ -145,9 +140,10 @@ [Vanity Fair](https://www.vanityfair.com)\ [Volkskrant](https://www.volkskrant.nl)\ [Vrij Nederland](https://www.vn.nl)\ -[Winston-Salem Journal](https://journalnow.com)\ [Wired](https://www.wired.com) +More websites (specialized or local newspapers) are available in the [custom list](https://raw.githubusercontent.com/magnolia1234/bypass-paywalls-chrome/master/sites_custom.json) of the extension (select those you want to use in options). + ### Sites with limited number of free articles The free article limit can normally be bypassed by removing cookies for the site.* @@ -161,9 +157,13 @@ _*May not always succeed_ Only large or major sites will be considered. 1. Visit an article on the site you want to bypass the paywall for and copy the article title. 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. If it loads without a paywall you can [submit a request](https://github.com/iamadamdev/bypass-paywalls-chrome/issues/new) to add the site, otherwise my extension cannot bypass it either. +3. Click on the same article from the Google search results page. Or you can: +1. Disable javascript on the website by clicking the botton right icon `>` on the uBlock panel. +2. Refresh the page. -Usually premium articles cannot be bypassed as they are behind a hard paywall. +If it loads without a paywall you can [submit a request](https://github.com/iamadamdev/bypass-paywalls-chrome/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. Please see for [previous requests](https://github.com/iamadamdev/bypass-paywalls-chrome/issues?q=is%3Aissue) before asking for a new website to be added. ### Troubleshooting * This extension works best alongside [uBlock Origin](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm). @@ -172,6 +172,9 @@ Usually premium articles cannot be bypassed as they are behind a hard paywall. * Make sure you're running the last version of Bypass Paywalls. * If none of these work, you can submit an issue [here](https://github.com/iamadamdev/bypass-paywalls-chrome/issues). +### Changelog +Visit the [releases page](https://github.com/iamadamdev/bypass-paywalls-chrome/releases). + ### Pull Requests * PRs are welcome. diff --git a/background.js b/background.js index d35e375..738a5bf 100755 --- a/background.js +++ b/background.js @@ -83,7 +83,6 @@ var blockedRegexes = { 'nzherald.co.nz': /nzherald\.co\.nz\/.+\/headjs\/.+\.js/, 'businessinsider.com': /(.+\.tinypass\.com\/.+|cdn\.onesignal\.com\/sdks\/.+\.js)/, 'bostonglobe.com': /meter\.bostonglobe\.com\/js\/.+/ - }; /** obsolete 'economist.com': /.+\.tinypass\.com\/.+/, @@ -205,7 +204,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) { }, { urls: ["*://*.thestar.com/*", "*://*.theglobeandmail.com/*", "*://*.afr.com/*", - "*://*.tinypass.com/*", "*://assets.poool.fr/*"], + "*://*.tinypass.com/*", "*://*.poool.fr/*"], types: ["script"] }, ["blocking"] diff --git a/bypass_wsj_extension_screenshot.png b/bypass_wsj_extension_screenshot.png deleted file mode 100644 index 8832e17..0000000 Binary files a/bypass_wsj_extension_screenshot.png and /dev/null differ diff --git a/changelog.txt b/changelog.txt deleted file mode 100644 index d78ef90..0000000 --- a/changelog.txt +++ /dev/null @@ -1,28 +0,0 @@ -Updates-- - -2018-11-11 v1.3.5: No longer updating changelog in favor of git log -2018-10-07 v1.3.4: Fixed hbr.org, fixed medium.com, removed medscape.com -2018-10-07 v1.3.3: Fixed haaretz.co.il -2018-10-02 v1.3.2: Added The Advocate(theadvocate.com.au), added Examiner (examiner.com.au) -2018-09-16 v1.3.1: Removed Het Financieele Dagblad (fd.nl) -2018-09-09 v1.3.0: Fixed chicagobusiness.com -2018-09-06 v1.2.11: Add Dynamed Plus -2018-08-26 v1.2.10: Fixed alphabeticised lists, Added The New Statesman and The Spectator -2018-07-04 v1.2.9: Added The Denver Post (denverpost.com, note: need to turn off uBlock for this site) -2018-06-26 v1.2.8: Bug fixes (washingtonpost.com) -2018-06-08 v1.2.7: Added Wired (wired.com) -2018-05-20 v1.2.6: Added TheMarker (themarker.com) -2018-05-12 v1.2.5: Fixed Boston Globe (bostonglobe.com) -2018-05-10 v1.2.4: Fixed redirect issue -2018-05-05 v1.2.3: Added Bloomberg (bloomberg.com) -2018-04-23 v1.2.2: Added the English Version of Haaretz website (haaretz.com) -2018-04-07 v1.2.1: Open Source'd Bypass Paywalls! Fixed The Economist (economist.com) -2018-04-05 v1.2.0: added Corriere Della Sera (corriere.it), added Dagens Nyheter (dn.se), fixed The Age (theage.com.au) -2018-01-30 v1.0.7: Added Medium (medium.com), added The Boston Globe (bostonglobe.com), added The Mercury News (mercurynews.com), removed The Australian (theaustralian.com.au), removed The Courier Mail (couriermail.com.au), removed The Telegraph (telegraph.co.uk) -2017-09-14 v1.06: Added back Barron's, added Het Financieele Dagblad (fd.nl), added Le Temps (letemps.ch), added Haaretz (haaretz.co.il) -2017-07-15 v1.05: removed Barron's as the google redirect no longer works -2017-04-16: Added MIT Technology Review (technologyreview.com), NRC (nrc.nl), The Courier Mail (couriermail.com.au). -2017-04-05: Added 'Nikkei Asian Review'. -2017-02-25: If you are trying to view NYT articles or tired of the WSJ popup, try installing an adblocker (I recommend 'uBlock Origin'). -2017-02-16: Added 'The Australian'. -2017-02-09: WSJ working again (bypass paywall)! Also added glassdoor, nytimes, seattletimes. diff --git a/contentScript.js b/contentScript.js index 6c97e5c..f05f471 100755 --- a/contentScript.js +++ b/contentScript.js @@ -7,7 +7,7 @@ if (!localstorage_hold){ window.localStorage.clear(); } -// Workarounds/domain +// Content workarounds/domain if (location.hostname.endsWith('rep.repubblica.it')) { if (location.href.includes('/pwa/')) { location.href = location.href.replace('/pwa/', '/ws/detail/'); @@ -72,7 +72,9 @@ if (window.location.href.indexOf("wsj.com") !== -1) { } if (window.location.href.indexOf("sloanreview.mit.edu") !== -1) { - document.querySelector('#cboxClose').click(); + const read_more = document.querySelector('.btn-read-more'); + if(read_more) + read_more.click(); } if (window.location.href.indexOf("mexiconewsdaily.com") !== -1) { @@ -81,7 +83,6 @@ if (window.location.href.indexOf("mexiconewsdaily.com") !== -1) { 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); }); } @@ -174,7 +175,7 @@ if (window.location.href.indexOf("canberratimes.com.au") !== -1) { } if (window.location.href.indexOf("ledevoir.com") !== -1) { - const counter = document.querySelector('.full.hidden-print.popup-msg'); + const counter = document.querySelector('.popup-msg'); removeDOMElement(counter); } @@ -304,7 +305,7 @@ if (window.location.href.indexOf("techinasia.com") !== -1) { if (paywall){ paywall.classList.remove('paywall-content'); } - const splash_subscribe = document.querySelector('.splash-subscribe'); + const splash_subscribe = document.querySelector('.splash-subscribe'); const paywall_hard = document.querySelector('.paywall-hard'); removeDOMElement(splash_subscribe, paywall_hard); } diff --git a/ft_screenshot.png b/ft_screenshot.png deleted file mode 100644 index cadd766..0000000 Binary files a/ft_screenshot.png and /dev/null differ diff --git a/bypass.png b/icon.png similarity index 100% rename from bypass.png rename to icon.png diff --git a/manifest.json b/manifest.json index 77aae2c..e3767f6 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "description": "Bypass News Sites' Paywalls", "homepage_url": "https://github.com/iamadamdev/bypass-paywalls-chrome/blob/master/README.md", "icons": { - "128": "bypass.png" + "128": "icon.png" }, "manifest_version": 2, "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3PRmcRnHFZwHUlCgoTAdBjc9nUjmJo8l8kvkl/OZV6biZFAGUQGdxF1xoGhRccWA7qfQrZdPwcM1VQoVS/1F+87XiutKTe/HNsTAFvOcVS0tjCSH6DOHpewkMUBZujwTIeo7UXUVmCPQ1UbVd6m8KmHYtSHYlaX0uXRcguWhLmO5hASxw4onvAD0uql/t/ntxsIATwn4hVApg0VZhy0QAbMany8/5ByKPa19mCQwsIdRkcpG+PNHTLWPDgeGoDL7S0DxIduraRhTlrDX/zy5ETu6NWq6r+/jRzmXAjx+vSDCU5Ps2YG8QwdCL4Zl+CNVdQrnqz4X1zfPFJ1FFmUSpwIDAQAB", diff --git a/options.html b/options.html index 486b25d..d0c8e40 100644 --- a/options.html +++ b/options.html @@ -13,24 +13,24 @@ +