adding support for business chronicles

master
Richard Wright 2018-06-30 15:48:40 -04:00
parent f031061e6c
commit 7e64a7d29c
7 changed files with 46 additions and 14 deletions

View File

@ -39,6 +39,7 @@ OrlandoSentinel (orlandosentinel.com)\
Quora (quora.com)\
SunSentinel (sun-sentinel.com)\
TheMarker (themarker.com)\
The Business Journals (bizjournals.com)\
The Seattle Times (seattletimes.com)\
The Sydney Morning Herald (smh.com.au)\
The Washington Post (washingtonpost.com)\
@ -47,4 +48,5 @@ Vanity Fair (vanityfair.com)\
Wired (wired.com)
### Troubleshooting
If WSJ stops working try removing all wsj.com site cookies.

View File

@ -27,6 +27,7 @@ var defaultSites = {
'Nikkei Asian Review': 'asia.nikkei.com',
'NRC': 'nrc.nl',
'The Boston Globe': 'bostonglobe.com',
'The Business Journals': 'bizjournals.com',
'The Globe and Mail': 'theglobeandmail.com',
'The Mercury News': 'mercurynews.com',
'The Morning Call': 'mcall.com',
@ -231,4 +232,4 @@ browser.webRequest.onCompleted.addListener(function(details) {
}
}, {
urls: ["<all_urls>"]
});
});

View File

@ -1,5 +1,6 @@
Updates--
2018-06-20 v1.2.10: Added The Business Journals (bizjournals.com)
2018-06-27 v1.2.9: Fixed The Washington Post (washingtonpost.com)
2018-06-22 v1.2.8: Added Vanity Fair (vanityfair.com), added The Globe and Mail (theglobeandmail.com)
2018-06-03 v1.2.7: Added Wired (wired.com)

View File

@ -1 +1,13 @@
window.localStorage.clear();
if (window.location.href.indexOf("bizjournals.com") > -1) {
const hiddenStory = document.getElementsByClassName(
"js-pre-chunks__story-body"
);
if (hiddenStory) {
hiddenStory[0].style.display = "block";
}
const payWallMessage = document.getElementsByClassName("chunk chunk--flex@lg chunk--paywall");
if (hiddenStory) {
payWallMessage[0].style.display = "none";
}
}

View File

@ -2,20 +2,29 @@
"background": {
"scripts": ["background.js"]
},
"content_scripts": [
{
"matches": ["*://*.bizjournals.com/*"],
"js": ["contentScript.js"]
}
],
"applications": {
"gecko": {
"id": "iamadamdev@hotmail.com"
}
"gecko": {
"id": "iamadamdev@hotmail.com"
}
},
"browser_action": {
"default_popup": "popup.html",
"default_icon": {
"128": "bypass.png"
},
"theme_icons": [{
"light": "bypass-dark.png",
"dark": "bypass.png",
"size": 128 }]
"128": "bypass.png"
},
"theme_icons": [
{
"light": "bypass-dark.png",
"dark": "bypass.png",
"size": 128
}
]
},
"description": "Bypass News Sites' Paywalls",
"icons": {
@ -27,6 +36,12 @@
"options_ui": {
"page": "options.html"
},
"permissions": [ "cookies", "<all_urls>", "storage", "webRequest", "webRequestBlocking"],
"version": "1.2.9"
"permissions": [
"cookies",
"<all_urls>",
"storage",
"webRequest",
"webRequestBlocking"
],
"version": "1.2.10"
}

View File

@ -25,6 +25,7 @@ var defaultSites = {
'Nikkei Asian Review': 'asia.nikkei.com',
'NRC': 'nrc.nl',
'The Boston Globe': 'bostonglobe.com',
'The Business Journals': 'bizjournals.com',
'The Globe and Mail': 'theglobeandmail.com',
'The Mercury News': 'mercurynews.com',
'The Morning Call': 'mcall.com',

View File

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