From 9523440d222fa69f1dcb656e34b5154f61476fda Mon Sep 17 00:00:00 2001 From: Adam <36013816+iamadamdev@users.noreply.github.com> Date: Mon, 16 Nov 2020 21:36:23 -0800 Subject: [PATCH] Fix naming and ordering --- README.md | 18 ++++++++++++++---- src/js/background.js | 4 ++-- src/js/sites.js | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aa03dff..0ce5f5a 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,12 @@ [Adweek](https://www.adweek.com)\ [Algemeen Dagblad](https://www.ad.nl)\ [American Banker](https://www.americanbanker.com)\ -[BN De Stem](https://www.bndestem.nl)\ [Baltimore Sun](https://www.baltimoresun.com)\ [Barron's](https://www.barrons.com)\ [Bloomberg Quint](https://www.bloombergquint.com)\ [Bloomberg](https://www.bloomberg.com)\ -[Brabands Dagblad (BD)](https://www.bd.nl)\ +[BN De Stem](https://www.bndestem.nl)\ +[Brabants Dagblad](https://www.bd.nl)\ [Brisbane Times](https://www.brisbanetimes.com.au)\ [Business Insider](https://www.businessinsider.com)\ [Caixin](https://www.caixinglobal.com)\ @@ -210,7 +210,7 @@ Only large or major sites will be considered. Usually premium articles cannot be ### Troubleshooting * This extension works best alongside uBlock Origin [for Google Chrome](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm) or [for Mozilla Firefox](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/). * If a site doesn't work, try turning off uBlock and refreshing. -* Make sure the site is checked under Options (on macOS sometimes the sites get unselected). +* Try clearing [cookies](https://chrome.google.com/webstore/detail/cookie-remover/kcgpggonjhmeaejebeoeomdlohicfhce). * Make sure you're running the latest version of Bypass Paywalls. * If a site is having problems try unchecking "\*General Paywall Bypass\*" in Options. * If none of these work, you can submit an issue [here](https://github.com/iamadamdev/bypass-paywalls-chrome/issues/new/choose). @@ -224,4 +224,14 @@ PRs are welcome. ### Show your support * Follow me on Twitter [@iamadamdev](https://twitter.com/iamadamdev) for updates. -* I am not asking for donations or anything like that, all I ask is that you star this repo. +* I do not ask for donations, all I ask is that you star this repo. + +### Disclaimer +* This software is provided for educational purposes only. +* This software is provided "AS IS", without warranty of any kind, express or +implied, including but not limited to the warranties of merchantability, +fitness for a particular purpose and noninfringement. in no event shall the +authors or copyright holders be liable for any claim, damages or other +liability, whether in an action of contract, tort or otherwise, arising from, +out of or in connection with the software or the use or other dealings in the +software. \ No newline at end of file diff --git a/src/js/background.js b/src/js/background.js index 2d69c64..0c29c60 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -146,7 +146,7 @@ const removeCookiesSelectDrop = { 'humo.be': ['TID_ID'], 'nrc.nl': ['counter'], 'pzc.nl': ['temptationTrackingId'], - 'tubantia.nl': ['temptationTrackingId'], + 'tubantia.nl': ['temptationTrackingId'] }; // Override User-Agent with Googlebot @@ -284,7 +284,7 @@ extensionApi.tabs.onActivated.addListener(function (activeInfo) { }); function updateBadge (activeTab) { - if (!activeTab) { return; } + if (extensionApi.runtime.lastError || !activeTab) { return; } const badgeText = getBadgeText(activeTab.url); extensionApi.browserAction.setBadgeBackgroundColor({ color: 'blue' }); extensionApi.browserAction.setBadgeText({ text: badgeText }); diff --git a/src/js/sites.js b/src/js/sites.js index bd128d0..98029ff 100644 --- a/src/js/sites.js +++ b/src/js/sites.js @@ -8,7 +8,7 @@ const defaultSites = { 'Bloomberg': 'bloomberg.com', 'Bloomberg Quint (free articles only)': 'bloombergquint.com', 'BN De Stem': 'bndestem.nl', - 'Brabands Dagblad (BD)': 'bd.nl', + 'Brabants Dagblad': 'bd.nl', 'Brisbane Times': 'brisbanetimes.com.au', 'Business Insider': 'businessinsider.com', 'Caixin': 'caixinglobal.com',