From c759485868e2cb18fe35b8e0053ad952446aa494 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 17 Mar 2020 12:16:32 +0100 Subject: [PATCH] Fix-update Financial Times (remove cookies) Plus update UI (custom)options. --- background.js | 3 +-- options.html | 10 +++------- options_custom.html | 14 ++++++-------- options_custom.js | 2 +- 4 files changed, 11 insertions(+), 18 deletions(-) diff --git a/background.js b/background.js index c9baff5..82d7e40 100644 --- a/background.js +++ b/background.js @@ -28,7 +28,6 @@ var allow_cookies = [ 'elmercurio.com', 'fd.nl', 'folha.uol.com.br', -'ft.com', 'goldcoastbulletin.com.au', 'haaretz.co.il', 'haaretz.com', @@ -137,7 +136,7 @@ var blockedRegexes = { 'challenges.fr': /.+\.poool\.fr\/.+/, 'chicagobusiness.com': /.+\.tinypass\.com\/.+/, 'chicagotribune.com': /.+:\/\/.+\.tribdss\.com\//, -'corriere.it':/(\.rcsobjects\.it\/rcs_cpmt\/|\.rcsobjects\.it\/rcs_tracking-service\/|\.corriereobjects\.it\/.+\/js\/_paywall\.sjs|\.corriereobjects\.it\/.*\/js\/tracking\/|\.userzoom\.com\/files\/js\/|\.lp4\.io\/app\/)/, +'corriere.it': /(\.rcsobjects\.it\/rcs_cpmt\/|\.rcsobjects\.it\/rcs_tracking-service\/|\.corriereobjects\.it\/.+\/js\/_paywall\.sjs|\.corriereobjects\.it\/.*\/js\/tracking\/|\.userzoom\.com\/files\/js\/|\.lp4\.io\/app\/)/, 'digiday.com': /.+\.tinypass\.com\/.+/, 'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/_next\/static\/runtime\/main.+\.js)/, 'elmercurio.com': /merreader\.emol\.cl\/assets\/js\/vendor\/modal\.js/, diff --git a/options.html b/options.html index 49e9a1b..1c0a40c 100644 --- a/options.html +++ b/options.html @@ -15,15 +15,13 @@

Options |

-
- Selected sites will have their cookies cleared and referer set to Google. You should - uncheck sites you have an account with or else you will be logged out at every visit. +
+ Selected sites will have their cookies cleared and referer set to Google. + You should uncheck sites you have an account with or else you will be logged out at every visit.

-
-
@@ -34,8 +32,6 @@
- - diff --git a/options_custom.html b/options_custom.html index 633cef1..18f6084 100644 --- a/options_custom.html +++ b/options_custom.html @@ -8,14 +8,14 @@ display: block; } body { - width:450px; - height:700px; + width:350px; + height:600px; }

Custom Sites

-
+
To add new site, enter a unique title/domain (without www.) and select options for googlebot/block javascript (only on (sub)domain). Then, enable your new site in options (cookies will be removed by default).

@@ -39,9 +39,9 @@
-
+

Json file

- You can edit the text area and save (only when json-text is valid).
+ You can edit the text area and save (only when json-text is valid). Clear & save to reset. You can also export/import json-text for new installations.

@@ -49,10 +49,8 @@
- + - - diff --git a/options_custom.js b/options_custom.js index 836176d..55690ef 100644 --- a/options_custom.js +++ b/options_custom.js @@ -149,7 +149,7 @@ function renderOptions() { var textareaEl = document.createElement('textarea'); textareaEl.value = JSON.stringify(sites_custom); textareaEl.rows = 12; - textareaEl.cols = 45; + textareaEl.cols = 40; labelEl.appendChild(textareaEl); sitesEl.appendChild(labelEl);