From 0718039382e4efc99c7dfad6f9ef909689a783a1 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 20 Feb 2019 19:42:13 -0800 Subject: [PATCH] Fix ft.com --- README.md | 1 + background.js | 2 +- manifest.json | 2 +- updates.xml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb85ccb..702521a 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ Winston-Salem Journal (journalnow.com)\ Wired (wired.com) ### New site requests: +Only large or major sites will be considered. No small sites or local newspapers. 1. Visit an article on the site you want to bypass the paywall for and copy the article title. 2. Open up a new incognito window (Ctrl+Shift+N) and paste the article title into Google. 3. Click on the same article from the Google search results page. If it loads without a paywall you can [submit a request](https://github.com/iamadamdev/bypass-paywalls-firefox/issues/new) to add the site, otherwise my extension cannot bypass it either. diff --git a/background.js b/background.js index f9219f0..b81937c 100644 --- a/background.js +++ b/background.js @@ -196,7 +196,7 @@ chrome.webRequest.onBeforeSendHeaders.addListener(function(details) { // if referer exists, set it to google requestHeaders = requestHeaders.map(function(requestHeader) { if (requestHeader.name === 'Referer') { - if (details.url.indexOf("wsj.com") !== -1) { + if (details.url.indexOf("wsj.com") !== -1 || details.url.indexOf("ft.com") !== -1) { requestHeader.value = 'https://www.facebook.com/'; } else { requestHeader.value = 'https://www.google.com/'; diff --git a/manifest.json b/manifest.json index 7ecd2f1..492a382 100644 --- a/manifest.json +++ b/manifest.json @@ -20,5 +20,5 @@ "page": "options.html" }, "permissions": [ "cookies", "", "storage", "webRequest", "webRequestBlocking"], - "version": "1.4.5" + "version": "1.4.6" } diff --git a/updates.xml b/updates.xml index b9a7d72..ed3b682 100644 --- a/updates.xml +++ b/updates.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file