Add businessinsider.com

master
Adam 2018-07-07 15:11:09 -07:00
parent 3da97cc3ee
commit d66bc0bbc4
6 changed files with 14 additions and 4 deletions

View File

@ -5,6 +5,7 @@ var defaultSites = {
'Baltimore Sun': 'baltimoresun.com',
'Barron\'s': 'barrons.com',
'Bloomberg': 'bloomberg.com',
'Business Insider': 'businessinsider.com',
'Crain\'s Chicago Business': 'chicagobusiness.com',
'Chicago Tribune': 'chicagotribune.com',
'Corriere Della Sera': 'corriere.it',

View File

@ -1,5 +1,6 @@
Updates--
2018-07-07 v1.3.1: Added Business Insider (businessinsider.com)
2018-07-04 v1.3.0: Added The Denver Post (denverpost.com, note: need to turn off uBlock for this site), added Hacked (hacked.com)
2018-06-20 v1.2.10: Added The Business Journals (bizjournals.com)
2018-06-27 v1.2.9: Fixed The Washington Post (washingtonpost.com)

View File

@ -1,4 +1,4 @@
if (window.location.href.indexOf("bizjournals.com") > -1) {
if (window.location.href.indexOf("bizjournals.com") !== -1) {
const hiddenStory = document.getElementsByClassName(
"js-pre-chunks__story-body"
);
@ -12,4 +12,11 @@ if (window.location.href.indexOf("bizjournals.com") > -1) {
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]);
}
}

View File

@ -4,7 +4,7 @@
},
"content_scripts": [
{
"matches": ["*://*.bizjournals.com/*"],
"matches": ["*://*.bizjournals.com/*", "*://*.businessinsider.com/*"],
"js": ["contentScript.js"]
}
],
@ -43,5 +43,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.3.0"
"version": "1.3.1"
}

View File

@ -3,6 +3,7 @@ var defaultSites = {
'Baltimore Sun': 'baltimoresun.com',
'Barron\'s': 'barrons.com',
'Bloomberg': 'bloomberg.com',
'Business Insider': 'businessinsider.com',
'Crain\'s Chicago Business': 'chicagobusiness.com',
'Chicago Tribune': 'chicagotribune.com',
'Corriere Della Sera': 'corriere.it',

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<div style="width:220px;">Bypass Paywalls v1.3.0 by Adam
<div style="width:220px;">Bypass Paywalls v1.3.1 by Adam
<a href="options.html">Options</a></div>
</body>
</html>