From 69195e7e1eb0d87c4eaf58500cac56d7f2e8372a Mon Sep 17 00:00:00 2001 From: apank Date: Wed, 2 Aug 2017 05:26:04 -0400 Subject: [PATCH 01/20] Bypass paywall for bloomberg --- manifest.json | 6 +++++- src/bg/background.js | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index e0b5265..1f397c3 100755 --- a/manifest.json +++ b/manifest.json @@ -24,6 +24,10 @@ "https://*.nytimes.com/*", "http://*.nytimes.com/*", "https://*.nyt.com/*", - "http://*.nyt.com/*" + "http://*.nyt.com/*", + "https://*.bloomberg.com/*", + "http://*.bloomberg.com/*", + "https://*.bwbx.io/*", + "http://*.bwbx.io/*" ] } \ No newline at end of file diff --git a/src/bg/background.js b/src/bg/background.js index 8df060c..f12827a 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -26,6 +26,10 @@ var sites = { }, nyt: { js: "*://*.com/*mtr.js" // this one causing a pop up asking for subscription + }, + bloomberg: { + url: "*://*.bloomberg.com/*", + js: "*://*.bwbx.io/s3/javelin/public/javelin/js/pianola/*" } }; @@ -35,7 +39,7 @@ chrome.webRequest.onBeforeRequest.addListener( return { cancel: true }; }, { - urls: [ sites.nyt.js, sites.wsj.js ], + urls: [ sites.nyt.js, sites.wsj.js, sites.bloomberg.js ], // target is script types: [ "script" ] }, @@ -61,7 +65,7 @@ chrome.webRequest.onBeforeSendHeaders.addListener( return { requestHeaders: details.requestHeaders }; }, { - urls: [ sites.wsj.url, sites.ft.url ], + urls: [ sites.wsj.url, sites.ft.url, sites.bloomberg.url ], // target is the document that is loaded for a top-level frame types: [ "main_frame" ] }, From 61bd650f40e1ffdb76129bcc4719ef6899c7c8b7 Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Fri, 4 Aug 2017 10:48:34 -0400 Subject: [PATCH 02/20] update readme for adding bloomberg --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f29681c..ea2356a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ ## Make WSJ & NYTimes Great Again: -#### Get around the paywall for many Wall Street Journal, New York Times and Financial Times content +#### Get around the paywalls for Wall Street Journal, New York Times, Financial Times and Bloomberg. + +### Update in Aug 2017: +* Thank [apank](https://github.com/apank) for adding [Bloomberg](https://www.bloomberg.com/businessweek) to our list. ### Update in Apr 2017: * **Fact**: WSJ has an advertisement popping up *every single time* we read an article, too much! From 31b2e141ffc71aaab0f0b9f57653d1f1ae41c777 Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Thu, 10 Aug 2017 10:18:09 -0400 Subject: [PATCH 03/20] override CSS to block cooking.nytimes.com popup --- css/nyt.css | 7 +++++++ manifest.json | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 css/nyt.css diff --git a/css/nyt.css b/css/nyt.css new file mode 100644 index 0000000..19b4ef7 --- /dev/null +++ b/css/nyt.css @@ -0,0 +1,7 @@ +body { + overflow: scroll !important; +} + +#app-container div[role=dialog] { + display: none !important; +} diff --git a/manifest.json b/manifest.json index 1f397c3..2d5f1e1 100755 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Make WSJ & NYT Great Again", - "version": "0.2", + "version": "0.3", "manifest_version": 2, "description": "Get around the paywall for many WSJ, NYT & FT content", "homepage_url": "http://blog.jinsongli.com", @@ -13,6 +13,12 @@ ], "persistent": true }, + "content_scripts": [ + { + "matches": ["https://cooking.nytimes.com/*"], + "css" : ["css/nyt.css"] + } + ], "permissions": [ "webRequest", "webRequestBlocking", From a98ede84999ce7d64a37b7bd1455829102eb3b6c Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Thu, 10 Aug 2017 19:41:44 -0400 Subject: [PATCH 04/20] perfectly fix issue that images are not lazyloaded, just by css --- css/nyt.css | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/css/nyt.css b/css/nyt.css index 19b4ef7..546742d 100644 --- a/css/nyt.css +++ b/css/nyt.css @@ -1,5 +1,25 @@ -body { - overflow: scroll !important; +/** + * Note about why we need to override these attributes + * + * there is this class on html and body: + * .nytc---modal-window---noScroll { + * height: 100%; + * overflow: hidden; + * position: relative; + * }; + * + * It causes issues: + * 1: unable to scroll + * So we need to override `overflow` to make page scrollable. + * 2: images should be lazyloaded but do not load at all + * I just accidently find it out that removing this `height: 100%` will restore javascript's + * functionality to lazyload images, so we are all set! + * + * We do not want to see the pop up for signup, so just hide it + */ +html { + height: auto !important; + overflow: scroll !important; } #app-container div[role=dialog] { From f878401fce1312727dcc56e999cd259b3295c7f0 Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Sat, 12 Aug 2017 00:12:24 -0400 Subject: [PATCH 05/20] update readme and comments --- README.md | 1 + css/nyt.css | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ea2356a..4b63276 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ ### Update in Aug 2017: * Thank [apank](https://github.com/apank) for adding [Bloomberg](https://www.bloomberg.com/businessweek) to our list. +* Thank [strafer](https://github.com/strafer) for creating an issue that [New York Times Cooking section](https://cooking.nytimes.com/) has separate paywall. We fixed it by just injecting CSS to the pages to hide the pop up dialog and still keep JavaScript working as expected. See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/3) for details. ### Update in Apr 2017: * **Fact**: WSJ has an advertisement popping up *every single time* we read an article, too much! diff --git a/css/nyt.css b/css/nyt.css index 546742d..8163a48 100644 --- a/css/nyt.css +++ b/css/nyt.css @@ -3,25 +3,27 @@ * * there is this class on html and body: * .nytc---modal-window---noScroll { - * height: 100%; - * overflow: hidden; - * position: relative; - * }; + * height: 100%; + * overflow: hidden; + * position: relative; + * }; * * It causes issues: - * 1: unable to scroll - * So we need to override `overflow` to make page scrollable. - * 2: images should be lazyloaded but do not load at all + * 1: unable to scroll + * So we need to override `overflow` to make page scrollable. + * [ref](https://davidwalsh.name/prevent-body-scrolling) + * 2: images should be lazyloaded but are not loaded at all * I just accidently find it out that removing this `height: 100%` will restore javascript's * functionality to lazyload images, so we are all set! - * - * We do not want to see the pop up for signup, so just hide it */ html { - height: auto !important; - overflow: scroll !important; + height: auto !important; + overflow: scroll !important; } +/** + * We do not want to see the pop up for signup, so just hide it + */ #app-container div[role=dialog] { display: none !important; } From 1b3841350a6ea0bee52a65aa21096d07990322ae Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 12 Oct 2017 22:57:27 -0700 Subject: [PATCH 06/20] Add Washington Post paywall bypass --- manifest.json | 8 +++++--- src/bg/background.js | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 2d5f1e1..d40fe7c 100755 --- a/manifest.json +++ b/manifest.json @@ -34,6 +34,8 @@ "https://*.bloomberg.com/*", "http://*.bloomberg.com/*", "https://*.bwbx.io/*", - "http://*.bwbx.io/*" - ] -} \ No newline at end of file + "http://*.bwbx.io/*", + "https://*.washingtonpost.com/*", + "http://*.washingtonpost.com/*" + ] +} diff --git a/src/bg/background.js b/src/bg/background.js index f12827a..2df0df3 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -17,6 +17,9 @@ var newHeader = { // sites that we want to access var sites = { + washingtonpost: { + js: "*://*.washingtonpost.com/*drawbridge/drawbridge.js?_*" // This one causes unescapable paywall/ad-wall lightbox for every article + }, wsj: { url: "*://*.wsj.com/*", js: "*://*/*cxense-candy.js" // this one causing a pop up advertisement for every article @@ -39,7 +42,7 @@ chrome.webRequest.onBeforeRequest.addListener( return { cancel: true }; }, { - urls: [ sites.nyt.js, sites.wsj.js, sites.bloomberg.js ], + urls: [ sites.nyt.js, sites.wsj.js, sites.bloomberg.js, sites.washingtonpost.js ], // target is script types: [ "script" ] }, From 955b213d08947c0c8651bdd9af512ba7515c7b23 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 13 Oct 2017 00:44:18 -0700 Subject: [PATCH 07/20] Support multiple blocked JS patterns --- src/bg/background.js | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/bg/background.js b/src/bg/background.js index 2df0df3..64d25cd 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -18,31 +18,47 @@ var newHeader = { // sites that we want to access var sites = { washingtonpost: { - js: "*://*.washingtonpost.com/*drawbridge/drawbridge.js?_*" // This one causes unescapable paywall/ad-wall lightbox for every article + js: [ + "*://*.washingtonpost.com/*drawbridge/drawbridge.js?_*" // This one causes paywall/ad-wall lightbox sometimes with Adblock Plus enabled + ] }, wsj: { url: "*://*.wsj.com/*", - js: "*://*/*cxense-candy.js" // this one causing a pop up advertisement for every article + js: [ + "*://*/*cxense-candy.js" // this one causing a pop up advertisement for every article + ] }, ft: { url: "*://*.ft.com/*", }, nyt: { - js: "*://*.com/*mtr.js" // this one causing a pop up asking for subscription + js: [ + "*://*.com/*mtr.js" // this one causing a pop up asking for subscription + ] }, bloomberg: { url: "*://*.bloomberg.com/*", - js: "*://*.bwbx.io/s3/javelin/public/javelin/js/pianola/*" + js: [ "*://*.bwbx.io/s3/javelin/public/javelin/js/pianola/*" ] } }; +var js_urls = []; +for (var site_index in sites) +{ + site = sites[site_index]; + if(site.js) + { + js_urls = js_urls.concat(site.js); + } +} + chrome.webRequest.onBeforeRequest.addListener( function() { console.log( "we are going to block some low energy javascripts" ); return { cancel: true }; }, { - urls: [ sites.nyt.js, sites.wsj.js, sites.bloomberg.js, sites.washingtonpost.js ], + urls: js_urls, // target is script types: [ "script" ] }, From aade537e53d25270307d89eff73fa128170181e6 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 13 Oct 2017 00:45:42 -0700 Subject: [PATCH 08/20] Add vanilla (non-Adblock) WaPo paywall bypass --- src/bg/background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bg/background.js b/src/bg/background.js index 64d25cd..98b4f40 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -19,6 +19,7 @@ var newHeader = { var sites = { washingtonpost: { js: [ + "*://*.washingtonpost.com/*pwapi/*.js*", // This one causes paywall/ad-wall lightbox for every article "*://*.washingtonpost.com/*drawbridge/drawbridge.js?_*" // This one causes paywall/ad-wall lightbox sometimes with Adblock Plus enabled ] }, From 9eed362a180aaebecff1f1b826d7fa96f57a76cf Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Sat, 14 Oct 2017 22:12:12 -0400 Subject: [PATCH 09/20] some javascript update and format cleanup --- README.md | 3 +++ src/bg/background.js | 49 +++++++++++++++++++++++--------------------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 4b63276..29aa8ce 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ #### Get around the paywalls for Wall Street Journal, New York Times, Financial Times and Bloomberg. +### Update in Oct 2017: +* Thank [hotcap](https://github.com/hotcap) for adding [Washington Post](https://www.washingtonpost.com) to our list. See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/7) for details. + ### Update in Aug 2017: * Thank [apank](https://github.com/apank) for adding [Bloomberg](https://www.bloomberg.com/businessweek) to our list. * Thank [strafer](https://github.com/strafer) for creating an issue that [New York Times Cooking section](https://cooking.nytimes.com/) has separate paywall. We fixed it by just injecting CSS to the pages to hide the pop up dialog and still keep JavaScript working as expected. See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/3) for details. diff --git a/src/bg/background.js b/src/bg/background.js index 98b4f40..d1b107d 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -19,14 +19,14 @@ var newHeader = { var sites = { washingtonpost: { js: [ - "*://*.washingtonpost.com/*pwapi/*.js*", // This one causes paywall/ad-wall lightbox for every article - "*://*.washingtonpost.com/*drawbridge/drawbridge.js?_*" // This one causes paywall/ad-wall lightbox sometimes with Adblock Plus enabled + "*://*.washingtonpost.com/*pwapi/*.js*", // this one causes paywall/ad-wall lightbox for every article + "*://*.washingtonpost.com/*drawbridge/drawbridge.js?_*", // this one causes paywall/ad-wall lightbox sometimes with Adblock Plus enabled ] }, wsj: { url: "*://*.wsj.com/*", js: [ - "*://*/*cxense-candy.js" // this one causing a pop up advertisement for every article + "*://*/*cxense-candy.js", // this one causes a pop up advertisement for every article ] }, ft: { @@ -34,32 +34,35 @@ var sites = { }, nyt: { js: [ - "*://*.com/*mtr.js" // this one causing a pop up asking for subscription + "*://*.com/*mtr.js", // this one causes a pop up asking for subscription ] }, bloomberg: { url: "*://*.bloomberg.com/*", - js: [ "*://*.bwbx.io/s3/javelin/public/javelin/js/pianola/*" ] + js: [ + "*://*.bwbx.io/s3/javelin/public/javelin/js/pianola/*", + ] } }; -var js_urls = []; -for (var site_index in sites) -{ - site = sites[site_index]; - if(site.js) - { - js_urls = js_urls.concat(site.js); - } -} +// extract all script urls we want to block +var script_urls = Object.values(sites) + .map(site => site.js) + .filter(Array.isArray) + .reduce((prev, curr) => prev.concat(curr), []); + +// extract all main_frame urls we want to override +var main_frame_urls = Object.values(sites) + .map(site => site.url) + .filter(url => url); chrome.webRequest.onBeforeRequest.addListener( function() { - console.log( "we are going to block some low energy javascripts" ); + console.log("we are going to block some low energy javascripts"); return { cancel: true }; }, { - urls: js_urls, + urls: script_urls, // target is script types: [ "script" ] }, @@ -67,25 +70,25 @@ chrome.webRequest.onBeforeRequest.addListener( ); chrome.webRequest.onBeforeSendHeaders.addListener( - function( details ) { - console.log( "we are going to override some request headers" ); + function(details) { + console.log("we are going to override some request headers"); // remove existing referer and cookie - for ( var i = 0; i < details.requestHeaders.length; i++) { - if ( details.requestHeaders[i].name === newHeader.referer.name || details.requestHeaders[i].name === newHeader.cookie.name ) { + for (let i = 0; i < details.requestHeaders.length; i++) { + if (details.requestHeaders[i].name === newHeader.referer.name || details.requestHeaders[i].name === newHeader.cookie.name) { details.requestHeaders.splice(i, 1); i--; } } // add new referer - details.requestHeaders.push( newHeader.referer ); + details.requestHeaders.push(newHeader.referer); // remove cache - details.requestHeaders.push( newHeader.cachecontrol ); + details.requestHeaders.push(newHeader.cachecontrol); return { requestHeaders: details.requestHeaders }; }, { - urls: [ sites.wsj.url, sites.ft.url, sites.bloomberg.url ], + urls: main_frame_urls, // target is the document that is loaded for a top-level frame types: [ "main_frame" ] }, From 87e5365ee1631b965adb37bed39cc4920099dcde Mon Sep 17 00:00:00 2001 From: Tyler Getsay Date: Sun, 5 Nov 2017 10:30:16 -0500 Subject: [PATCH 10/20] add support for bizjournals.com --- manifest.json | 4 +++- src/bg/background.js | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index d40fe7c..f6d139c 100755 --- a/manifest.json +++ b/manifest.json @@ -36,6 +36,8 @@ "https://*.bwbx.io/*", "http://*.bwbx.io/*", "https://*.washingtonpost.com/*", - "http://*.washingtonpost.com/*" + "http://*.washingtonpost.com/*", + "https://*.bizjournals.com/*", + "http://*.bizjournals.com/*" ] } diff --git a/src/bg/background.js b/src/bg/background.js index d1b107d..dc1d066 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -42,6 +42,12 @@ var sites = { js: [ "*://*.bwbx.io/s3/javelin/public/javelin/js/pianola/*", ] + }, + bizjournals: { + url: "*://*.bizjournals.com/*", + js: [ + "*://*.bizjournals.com/dist/js/article.min.js*" + ] } }; @@ -59,7 +65,7 @@ var main_frame_urls = Object.values(sites) chrome.webRequest.onBeforeRequest.addListener( function() { console.log("we are going to block some low energy javascripts"); - + return { cancel: true }; }, { urls: script_urls, From 9edc29bb6a1ee9c88b858bcfbe45ceac5a44949b Mon Sep 17 00:00:00 2001 From: Chris Ly Date: Thu, 4 Jan 2018 20:22:31 -0500 Subject: [PATCH 11/20] add philly.com paywall bypass --- src/bg/background.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bg/background.js b/src/bg/background.js index dc1d066..f2b334c 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -48,6 +48,9 @@ var sites = { js: [ "*://*.bizjournals.com/dist/js/article.min.js*" ] + }, + philly: { + url: "*://*.philly.com", } }; From bf2bd03b7779abeb4d2b794bf13634478a54d558 Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Sun, 28 Jan 2018 17:58:25 -0500 Subject: [PATCH 12/20] Fix philly.com bug --- manifest.json | 1 + src/bg/background.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index f6d139c..e2030a8 100755 --- a/manifest.json +++ b/manifest.json @@ -37,6 +37,7 @@ "http://*.bwbx.io/*", "https://*.washingtonpost.com/*", "http://*.washingtonpost.com/*", + "http://*.philly.com/*", "https://*.bizjournals.com/*", "http://*.bizjournals.com/*" ] diff --git a/src/bg/background.js b/src/bg/background.js index f2b334c..deb986b 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -50,7 +50,10 @@ var sites = { ] }, philly: { - url: "*://*.philly.com", + url: "*://*.philly.com/*", + }, + kleinezeitung: { + url: "*://*.kleinezeitung.at/*", } }; From adc0f76a2ffec73f3eaa62c03cc967ff8376ebe4 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 22 Jan 2018 16:58:19 +0100 Subject: [PATCH 13/20] added kleinezeitung.at, switched Referer-rewriting to facebook --- manifest.json | 3 ++- src/bg/background.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index e2030a8..c951cc0 100755 --- a/manifest.json +++ b/manifest.json @@ -39,6 +39,7 @@ "http://*.washingtonpost.com/*", "http://*.philly.com/*", "https://*.bizjournals.com/*", - "http://*.bizjournals.com/*" + "http://*.bizjournals.com/*", + "http://www.kleinezeitung.at/*" ] } diff --git a/src/bg/background.js b/src/bg/background.js index deb986b..e495f27 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -3,7 +3,7 @@ var newHeader = { referer: { name: "Referer", - value: "https://www.twitter.com", // or "https://www.facebook.com" + value: "https://www.facebook.com", // or "https://www.twitter.com" }, cookie: { name: "Cookie", From 847e3f3d39e1f9183a201c77e60eeedfe9ea47b9 Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Sun, 28 Jan 2018 18:18:32 -0500 Subject: [PATCH 14/20] add Firefox and Edge support --- manifest.json | 3 ++- src/bg/background.js | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index c951cc0..4fc08ce 100755 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,9 @@ { "name": "Make WSJ & NYT Great Again", - "version": "0.3", + "version": "0.4", "manifest_version": 2, "description": "Get around the paywall for many WSJ, NYT & FT content", + "author": "Jinsong Li", "homepage_url": "http://blog.jinsongli.com", "icons": { "48": "icons/eric_cartman.png" diff --git a/src/bg/background.js b/src/bg/background.js index e495f27..b04aa42 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -1,6 +1,6 @@ // new http header parameters to override -var newHeader = { +const newHeader = { referer: { name: "Referer", value: "https://www.facebook.com", // or "https://www.twitter.com" @@ -16,7 +16,7 @@ var newHeader = { }; // sites that we want to access -var sites = { +const sites = { washingtonpost: { js: [ "*://*.washingtonpost.com/*pwapi/*.js*", // this one causes paywall/ad-wall lightbox for every article @@ -68,7 +68,10 @@ var main_frame_urls = Object.values(sites) .map(site => site.url) .filter(url => url); -chrome.webRequest.onBeforeRequest.addListener( +// add Firefox and Edge support with the global `browser` object +browser = typeof browser !== "undefined" ? browser : chrome; + +browser.webRequest.onBeforeRequest.addListener( function() { console.log("we are going to block some low energy javascripts"); @@ -81,7 +84,7 @@ chrome.webRequest.onBeforeRequest.addListener( [ "blocking" ] ); -chrome.webRequest.onBeforeSendHeaders.addListener( +browser.webRequest.onBeforeSendHeaders.addListener( function(details) { console.log("we are going to override some request headers"); From 8cb51c051baf94a2b2f11c9ed789c7df98942d16 Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Sun, 28 Jan 2018 20:23:51 -0500 Subject: [PATCH 15/20] update readme --- README.md | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 29aa8ce..ecd1b6f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,20 @@ ## Make WSJ & NYTimes Great Again: #### Get around the paywalls for Wall Street Journal, New York Times, Financial Times and Bloomberg. +#### Now support [Firefox](#install-instructions-for-firefox) and [Microsoft Edge](#install-instructions-for-microsoft-edge). + +### Supported Websites: +* [Wall Street Journal](https://www.wsj.com/) +* [New York Times](https://www.nytimes.com/) +* [Financial Times](https://www.ft.com/) +* [Bloomberg](https://www.bloomberg.com/) +* [Washington Post](https://www.washingtonpost.com) +* [Business Journals](https://www.bizjournals.com/) +* [Philly.com](https://www.philly.com/) +* [Kleine Zeitung](http://www.kleinezeitung.at/) + +### Update in Jan 2018: +* Thank [Scratch](https://github.com/Scrxtchy) for adding Firefox and Edge support of this extension! See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/25) for details. Also add [`kleinezeitung.at`](https://github.com/njuljsong/wsjUnblock/pull/22), [`bizjournals.com`](https://github.com/njuljsong/wsjUnblock/pull/14) and `philly.com` ### Update in Oct 2017: * Thank [hotcap](https://github.com/hotcap) for adding [Washington Post](https://www.washingtonpost.com) to our list. See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/7) for details. @@ -43,15 +57,26 @@ #### Interested in development process? * I wrote a blog [How to bypass WSJ and NYTimes paywalls?](http://blog.jinsongli.com/) about the details on my website. - -### Install Instructions -* click "clone or download", download zip. The downloaded file is an unpacked chrome extension, unzip it into a directory. -* Visit `chrome://extensions` (via omnibox or menu -> Tools -> Extensions). -* Enable Developer mode by ticking the checkbox in the upper-right corner. -* Click on the "Load unpacked extension..." button. -* Select the directory containing your *unpacked* extension. -* Reference: [How to install an unpacked chrome extension](http://stackoverflow.com/questions/24577024/install-chrome-extension-not-in-the-store/24577660#24577660) - +### Want to contribute? +* You are welcome to use the same logic to get around sites you are interested in, if it works, submit a Pull Request, and I'd love to merge it. Thank you! + +### Install Instructions for Chrome +* click "clone or download", download zip. The downloaded file is an unpacked chrome extension, unzip it into a directory. +* Visit `chrome://extensions` (via omnibox or menu -> Tools -> Extensions). +* Enable Developer mode by ticking the checkbox in the upper-right corner. +* Click on the "Load unpacked extension..." button. +* Select the directory containing your *unpacked* extension. +* Reference: [How to install an unpacked chrome extension](http://stackoverflow.com/questions/24577024/install-chrome-extension-not-in-the-store/24577660#24577660) + +### Install Instructions for Firefox +* Open Firefox +* Enter "about:debugging" in the URL bar +* Click "Load Temporary Add-on" +* Open the extension's directory and select `manifest.json` inside the extension. +* Read [Temporary installation in Firefox](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox) For details. + +### Install Instructions for Microsoft Edge +* Read [Adding, moving, and removing extensions for Microsoft Edge](https://docs.microsoft.com/en-us/microsoft-edge/extensions/guides/adding-and-removing-extensions) ### License This is free and unencumbered software released into the public domain. From 9b437fc89357f413522eb38cee1fd086974f8b7f Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 31 Jan 2018 21:49:05 -0500 Subject: [PATCH 16/20] Added support for Globe and Mail --- manifest.json | 4 +++- src/bg/background.js | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 4fc08ce..d2bb3c7 100755 --- a/manifest.json +++ b/manifest.json @@ -41,6 +41,8 @@ "http://*.philly.com/*", "https://*.bizjournals.com/*", "http://*.bizjournals.com/*", - "http://www.kleinezeitung.at/*" + "http://www.kleinezeitung.at/*", + "https://*.theglobeandmail.com/*", + "http://*.theglobeandmail.com/*" ] } diff --git a/src/bg/background.js b/src/bg/background.js index b04aa42..2a21c18 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -54,7 +54,12 @@ const sites = { }, kleinezeitung: { url: "*://*.kleinezeitung.at/*", - } + }, + globeandmail: { + js: [ + "*://*.theglobeandmail.com/pb/gr/c/default/*/story-bundle/*.js*" + ] + }, }; // extract all script urls we want to block From 836e5fe9e25004a5308e119d7d1ff96f2fe5eabf Mon Sep 17 00:00:00 2001 From: Jinsong Li Date: Sat, 10 Feb 2018 21:29:08 -0500 Subject: [PATCH 17/20] update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ecd1b6f..e010bf5 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,10 @@ * [Business Journals](https://www.bizjournals.com/) * [Philly.com](https://www.philly.com/) * [Kleine Zeitung](http://www.kleinezeitung.at/) +* [The Globe and Mail](https://www.theglobeandmail.com/) ### Update in Jan 2018: -* Thank [Scratch](https://github.com/Scrxtchy) for adding Firefox and Edge support of this extension! See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/25) for details. Also add [`kleinezeitung.at`](https://github.com/njuljsong/wsjUnblock/pull/22), [`bizjournals.com`](https://github.com/njuljsong/wsjUnblock/pull/14) and `philly.com` +* Thank [Scratch](https://github.com/Scrxtchy) for adding Firefox and Edge support of this extension! See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/25) for details. Also add [`kleinezeitung.at`](https://github.com/njuljsong/wsjUnblock/pull/22), [`bizjournals.com`](https://github.com/njuljsong/wsjUnblock/pull/14), [`theglobeandmail.com`](https://github.com/njuljsong/wsjUnblock/pull/26) and `philly.com` ### Update in Oct 2017: * Thank [hotcap](https://github.com/hotcap) for adding [Washington Post](https://www.washingtonpost.com) to our list. See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/7) for details. From cc99157c359c68345128056c2259f030a3731e72 Mon Sep 17 00:00:00 2001 From: apank Date: Mon, 19 Feb 2018 14:16:43 -0500 Subject: [PATCH 18/20] Added nydailynews.com --- manifest.json | 6 +++++- src/bg/background.js | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index d2bb3c7..4a4597d 100755 --- a/manifest.json +++ b/manifest.json @@ -43,6 +43,10 @@ "http://*.bizjournals.com/*", "http://www.kleinezeitung.at/*", "https://*.theglobeandmail.com/*", - "http://*.theglobeandmail.com/*" + "http://*.theglobeandmail.com/*", + "https://*.nydailynews.com/*", + "http://*.nydailynews.com/*", + "https://*.tribdss.com/*", + "http://*.tribdss.com/*" ] } diff --git a/src/bg/background.js b/src/bg/background.js index 2a21c18..85b3056 100755 --- a/src/bg/background.js +++ b/src/bg/background.js @@ -60,6 +60,12 @@ const sites = { "*://*.theglobeandmail.com/pb/gr/c/default/*/story-bundle/*.js*" ] }, + nydailynews: { + url: "*://*.nydailynews.com/*", + js: [ + "*://*.tribdss.com/reg/tribune/*" + ] + } }; // extract all script urls we want to block From 02ae275d23231c4fc701e83ed3c54d3d03b82cdd Mon Sep 17 00:00:00 2001 From: Kovaelin <31721791+Kovaelin@users.noreply.github.com> Date: Fri, 16 Mar 2018 15:00:00 -0400 Subject: [PATCH 19/20] Update README.md Fixed typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e010bf5..6299456 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ * **Idea**: Block those Javascript files from downloading :) -* **Sugggestion For NYTimes Developers**: concatenate the minified Javascript files, and maybe attach a random string in your concatenated Javascript filename? +* **Suggestion For NYTimes Developers**: concatenate the minified Javascript files, and maybe attach a random string in your concatenated Javascript filename? #### Interested in development process? * I wrote a blog [How to bypass WSJ and NYTimes paywalls?](http://blog.jinsongli.com/) about the details on my website. From 7009c84e1897f621f044ac9181699fc38c137f04 Mon Sep 17 00:00:00 2001 From: Kovaelin <31721791+Kovaelin@users.noreply.github.com> Date: Fri, 16 Mar 2018 15:02:50 -0400 Subject: [PATCH 20/20] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6299456..1491104 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ * [Philly.com](https://www.philly.com/) * [Kleine Zeitung](http://www.kleinezeitung.at/) * [The Globe and Mail](https://www.theglobeandmail.com/) +* [New York Daily News](http://www.nydailynews.com/) ### Update in Jan 2018: * Thank [Scratch](https://github.com/Scrxtchy) for adding Firefox and Edge support of this extension! See [this pull request](https://github.com/njuljsong/wsjUnblock/pull/25) for details. Also add [`kleinezeitung.at`](https://github.com/njuljsong/wsjUnblock/pull/22), [`bizjournals.com`](https://github.com/njuljsong/wsjUnblock/pull/14), [`theglobeandmail.com`](https://github.com/njuljsong/wsjUnblock/pull/26) and `philly.com`