Fix Bloomberg/Haaretz.com/Nikkei Asian Review (banners) + readme update

Remove sticky subscription/page counter banners on Bloomberg, Asia Nikkei & Haaretz.com.
Add 'don't remove the extension's folder after installation' in readme.md
Deprecate Dynamed
dn.se (free articles only)
master
frantzkamus 2019-12-30 18:50:53 +01:00 committed by magnolia1234
parent 7797a8465e
commit 95170ed70b
5 changed files with 22 additions and 11 deletions

View File

@ -18,9 +18,10 @@
#### 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. In Chrome go to the extensions page (`chrome://extensions`).
4. Enable Developer Mode.
5. Drag the `bypass-paywalls-chrome-master` folder anywhere on the page to import it (do not delete the folder afterwards).
3. Move the folder to a permanent location on your computer (do not delete the folder after installation).
4. In Chrome go to the extensions page (`chrome://extensions`).
5. Enable Developer Mode.
6. Drag the `bypass-paywalls-chrome-master` folder anywhere on the page to import it.
#### Android
@ -32,6 +33,7 @@
6. Find your extension folder and pick `manifest.json`.
**Notes**
* 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).
@ -56,7 +58,6 @@
[De Volkskrant](https://www.volkskrant.nl)\
[DeMorgen](https://www.demorgen.be)\
[Denver Post](https://www.denverpost.com)\
[Dynamed Plus](https://www.dynamed.com)\
[Eindhovens Dagblad](https://www.ed.nl)\
[Encyclopedia Britannica](https://www.britannica.com)\
[ET Prime](https://prime.economictimes.indiatimes.com/)\

View File

@ -21,7 +21,6 @@ var defaultSites = {
'De Volkskrant': 'volkskrant.nl',
'DeMorgen': 'demorgen.be',
'Denver Post': 'denverpost.com',
'Dynamed Plus': 'dynamed.com',
'Eindhovens Dagblad': 'ed.nl',
'Encyclopedia Britannica': 'britannica.com',
'ET Prime': 'prime.economictimes.indiatimes.com',

View File

@ -7,6 +7,7 @@ if (!localstorage_hold){
window.localStorage.clear();
}
// Workarounds/domain
if (location.hostname.endsWith('rep.repubblica.it')) {
if (location.href.includes('/pwa/')) {
location.href = location.href.replace('/pwa/', '/ws/detail/');
@ -126,9 +127,9 @@ if (window.location.href.indexOf("bloomberg.com") !== -1) {
if (fence){
fence.classList.remove('fence-body');
}
const paywall = document.getElementById('paywall-banner');
removeDOMElement(paywall);
});
const banner = document.getElementById('paywall-banner');
removeDOMElement(banner);
}
if (window.location.href.indexOf("bloombergquint.com") !== -1) {
@ -284,6 +285,17 @@ if (window.location.href.indexOf("technologyreview.com") !== -1) {
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);
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {
if (element)

View File

@ -11,12 +11,11 @@ var defaultSites = {
'Chicago Tribune': 'chicagotribune.com',
'Corriere Della Sera': 'corriere.it',
'Daily Press': 'dailypress.com',
'Dagens Nyheter': 'dn.se',
'Dagens Nyheter (free articles only)': 'dn.se',
'De Groene Amsterdammer': 'groene.nl',
'De Volkskrant': 'volkskrant.nl',
'DeMorgen': 'demorgen.be',
'Denver Post': 'denverpost.com',
'Dynamed Plus': 'dynamed.com',
'Encyclopedia Britannica': 'britannica.com',
'Eindhovens Dagblad': 'ed.nl',
'ET Prime': 'prime.economictimes.indiatimes.com',
@ -61,7 +60,7 @@ var defaultSites = {
'San Diego Union Tribune': 'sandiegouniontribune.com',
'San Francisco Chronicle': 'sfchronicle.com',
'Scientific American': 'scientificamerican.com',
'Scribd (only on documents)': 'scribd.com',
'Scribd (documents only)': 'scribd.com',
'SOFREP': 'sofrep.com',
'Statista': 'statista.com',
'SunSentinel': 'sun-sentinel.com',

View File

@ -1,5 +1,5 @@
{
"----- custom sites (remove cookies) -----": "",
"----- Custom Sites (remove cookies) -----": "",
"American Affairs": "americanaffairsjournal.org",
"Dark Reading": "darkreading.com",
"Pittsburgh Post Gazette": "post-gazette.com",