From 156e127e9f1190b6801556d9d4dded425ea57e49 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 25 Feb 2020 23:18:39 +0100 Subject: [PATCH] Add Humo.be --- README.md | 5 +++-- background.js | 3 ++- contentScript.js | 2 +- sites.js | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4249119..0e9add7 100755 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ * [Sites with limited number of free articles](#sites-with-limited-number-of-free-articles) * [New site requests](#new-site-requests) * [Troubleshooting](#troubleshooting) -* [Changelog](#changelog) +* [Changelog-releases](#changelog-releases) * [Pull Requests](#pull-requests) * [Show your support](#show-your-support) * [License](#license) @@ -196,6 +196,7 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f [De Tijd](https://www.tijd.be) - [Groene Amsterdammer](https://www.groene.nl) - [Het Financieel Dagblad](https://fd.nl) - +[Humo.be]{https://www.humo.be} - [Leeuwarder Courant](https://www.lc.nl) - [NRC Handelsblad](https://www.nrc.nl) - [Parool](https://www.parool.nl) - @@ -276,7 +277,7 @@ You can submit a request for a new website [here](https://github.com/magnolia123 * Make sure you're running the last version of Bypass Paywalls Clean. * If none of these work, you can submit an issue [here](https://github.com/magnolia1234/bypass-paywalls-chrome-clean/issues). -### Changelog +### Changelog-releases * Visit the [releases page](https://github.com/magnolia1234/bypass-paywalls-chrome-clean/releases). ### Pull Requests diff --git a/background.js b/background.js index 6c00c59..500ed49 100755 --- a/background.js +++ b/background.js @@ -33,6 +33,7 @@ var allow_cookies = [ 'haaretz.com', 'handelsblatt.com', 'heraldsun.com.au', +'humo.be', 'kleinezeitung.at', 'lemonde.fr', 'lc.nl', @@ -177,7 +178,7 @@ function setDefaultOptions() { chrome.tabs.create({ 'url': 'chrome://extensions/?options=' + chrome.runtime.id }); }); } - + // Get the enabled sites (from local storage) & add to allow/remove_cookies (if not already in one of these arrays) chrome.storage.sync.get({ sites: {} diff --git a/contentScript.js b/contentScript.js index ab92f34..4178089 100755 --- a/contentScript.js +++ b/contentScript.js @@ -108,7 +108,7 @@ if (window.location.href.indexOf("nzherald.co.nz") !== -1) { } } -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("parool.nl") !== -1 || window.location.href.indexOf("trouw.nl") !== -1 || window.location.href.indexOf("volkskrant.nl") !== -1 || window.location.href.indexOf("humo.be") !== -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"]'); diff --git a/sites.js b/sites.js index ba6b669..615ef99 100644 --- a/sites.js +++ b/sites.js @@ -51,6 +51,7 @@ var defaultSites = "Harvard Business Review Taiwan": "hbrtaiwan.com", "Herald Sun": "heraldsun.com.au", "Het Financieel Dagblad": "fd.nl", + "Humo.be": "humo.be", "Inc.com": "inc.com", "Illawarra Mercury": "illawarramercury.com.au", "Kleine Zeitung": "kleinezeitung.at",