Merge branch 'master' into master

This commit is contained in:
magnolia1234 2019-10-19 20:03:23 +02:00 committed by GitHub
commit 930c5f5b82
6 changed files with 53 additions and 38 deletions

View File

@ -20,6 +20,7 @@
[Baltimore Sun](https://www.baltimoresun.com)\
[Barron's](https://www.barrons.com)\
[Bloomberg](https://www.bloomberg.com)\
[Bloomberg Quint](https://bloombergquint.com)\
[Business Insider](https://www.businessinsider.com)\
[Chicago Tribune](https://www.chicagotribune.com)\
[Corriere Della Sera](https://www.corriere.it)\
@ -49,6 +50,7 @@
[La Repubblica](https://www.repubblica.it)\
[Les Échos](https://lesechos.fr)\
[Libération](https://liberation.fr)\
[Loeb Classical Library](https://www.loebclassics.com)\
[Los Angeles Times](https://www.latimes.com)\
[MIT Sloan Management Review](https://sloanreview.mit.edu)\
[MIT Technology Review](https://www.technologyreview.com)\
@ -98,6 +100,7 @@
[Trouw](https://www.trouw.nl)\
[Vanity Fair](https://www.vanityfair.com)\
[Winston-Salem Journal](https://journalnow.com)\
[Vrij Nederland](https://vn.nl)\
[Wired](https://www.wired.com)\
[Zeit Online](https://www.zeit.de)

View File

@ -6,6 +6,7 @@ var defaultSites = {
'Baltimore Sun': 'baltimoresun.com',
'Barron\'s': 'barrons.com',
'Bloomberg': 'bloomberg.com',
'Bloomberg Quint': 'bloombergquint.com',
'Business Insider': 'businessinsider.com',
'Crain\'s Chicago Business': 'chicagobusiness.com',
'Chicago Tribune': 'chicagotribune.com',
@ -36,6 +37,7 @@ var defaultSites = {
'Irish Times': 'irishtimes.com',
'La Repubblica': 'repubblica.it',
'Liberation': 'liberation.fr',
'Loeb Classical Library': 'loebclassics.com',
'Los Angeles Times': 'latimes.com',
'Medium': 'medium.com',
'Mexico News Daily': 'mexiconewsdaily.com',
@ -143,6 +145,7 @@ const remove_cookies = [
'examiner.com.au',
'lesechos.fr',
'liberation.fr',
'loebclassics.com',
'hbr.org',
'theatlantic.com',
'medium.com',
@ -161,7 +164,8 @@ const remove_cookies = [
'demorgen.be',
'sloanreview.mit.edu',
'zeit.de',
'firstthings.com'
'firstthings.com',
'bloombergquint.com'
]
// Override User-Agent with Googlebot
@ -170,7 +174,9 @@ const use_google_bot = [
'barrons.com',
'telegraph.co.uk',
'zeit.de',
'nytimes.com',
'mexiconewsdaily.com',
'nytimes.com',
'thetimes.co.uk',
]

View File

@ -18,10 +18,12 @@ if (location.hostname.endsWith('rep.repubblica.it')) {
}
if (window.location.href.indexOf("americanbanker.com") !== -1) {
const paywall = document.getElementsByClassName('embargo-content');
if (paywall && paywall.length > 0) {
paywall[0].className = "";
}
const paywall = document.getElementsByClassName(
"embargo-content"
);
if (paywall && paywall.length > 0) {
paywall[0].className = "";
}
}
if (window.location.href.indexOf('telegraaf.nl') !== -1) {
@ -32,11 +34,11 @@ if (window.location.href.indexOf('telegraaf.nl') !== -1) {
}
if (window.location.href.indexOf('ed.nl') !== -1) {
const paywall = document.querySelector('.article__component.article__component--paywall-module-notification');
if (paywall) {
paywall.remove();
paywall = null;
}
let paywall = document.querySelector('.article__component.article__component--paywall-module-notification');
if (paywall) {
paywall.remove();
paywall = null;
}
}
if (window.location.href.indexOf("washingtonpost.com") !== -1) {
@ -79,42 +81,44 @@ if (window.location.href.indexOf("mexiconewsdaily.com") !== -1) {
}
if (window.location.href.indexOf("the-american-interest.com") !== -1) {
const counter = document.getElementById('article-counter') || false;
if (counter) {
counter.remove();
counter = false;
}
let counter = document.getElementById('article-counter') || false;
if (counter) {
counter.remove();
counter = false;
}
}
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');
var paras = paywall.querySelectorAll("p, span, h2, div");
var delClass = "";
for (var i = paras.length; i--; ) {
if (delClass == "") {
delClass = paras[i].className;
}
paras[i].classList.remove(delClass);
paras[i].removeAttribute('style');
}
}
const paywall = document.getElementById(
"article-content"
);
if (paywall) {
paywall.classList.remove('premium-content');
paywall.classList.add('full-content');
var paras = paywall.querySelectorAll("p, span, h2, div");
var delClass = "";
for (var i = paras.length; i--;) {
if (delClass == "") {
delClass = paras[i].className;
}
paras[i].classList.remove(delClass);
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"]');
removeDOMElement(paywall, hidden_section);
});
document.addEventListener('DOMContentLoaded', () => {
const paywall = document.querySelector('div[data-temptation-position="ARTICLE_BOTTOM"]');
const hidden_section = document.querySelector('div[data-temptation-position="ARTICLE_INLINE"]');
removeDOMElement(paywall, hidden_section);
});
}
if (window.location.href.indexOf("firstthings.com") !== -1) {
const paywall = document.getElementsByClassName('paywall')[0];
if (paywall)
if (paywall)
removeDOMElement(paywall);
}

View File

@ -20,5 +20,5 @@
"page": "options.html"
},
"permissions": [ "cookies", "<all_urls>", "storage", "webRequest", "webRequestBlocking"],
"version": "1.5.3"
"version": "1.5.4"
}

View File

@ -4,6 +4,7 @@ var defaultSites = {
'Baltimore Sun': 'baltimoresun.com',
'Barron\'s': 'barrons.com',
'Bloomberg': 'bloomberg.com',
'Bloomberg Quint': 'bloombergquint.com',
'Business Insider (javascript disabled)': 'businessinsider.com',
'Crain\'s Chicago Business': 'chicagobusiness.com',
'Chicago Tribune': 'chicagotribune.com',
@ -34,6 +35,7 @@ var defaultSites = {
'La Repubblica': 'repubblica.it',
'Les Echos': 'lesechos.fr',
'Liberation': 'liberation.fr',
'Loeb Classical Library': 'loebclassics.com',
'Los Angeles Times': 'latimes.com',
'Medium': 'medium.com',
'Mexico News Daily': 'mexiconewsdaily.com',

View File

@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='dcpihecpambacapedldabdbpakmachpb'>
<updatecheck codebase='https://github.com/iamadamdev/bypass-paywalls-chrome/releases/download/v1.5.3/bypass-paywalls-chrome.crx' version='1.5.3' />
<updatecheck codebase='https://github.com/iamadamdev/bypass-paywalls-chrome/releases/download/v1.5.4/bypass-paywalls-chrome.crx' version='1.5.4' />
</app>
</gupdate>