Fix-update Financial Times (remove cookies)

Plus update UI (custom)options.
This commit is contained in:
magnolia1234 2020-03-17 12:16:32 +01:00 committed by GitHub
parent 0429804012
commit c759485868
4 changed files with 11 additions and 18 deletions

View file

@ -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/,

View file

@ -15,15 +15,13 @@
</head>
<body>
<h1>Options | <small><span id="version"></span><span id="version_new"></span></small></h1>
<div>
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.
<div style="width:90%;">
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.
</div>
<br/>
<div style='float:left'>
<small><button><a href="options_custom.html" style="text-decoration:none;color:inherit">Custom sites</a></button></small>
</div>
<div style='float:right'>
<small><button><a href="options.html#save" style="text-decoration:none;color:inherit">Go to save</a></button></small>
</div>
<div style="clear:both;"></div>
@ -34,8 +32,6 @@
<div id="error"></div>
<span style='float:left;padding-bottom:50px'>
<button id="save">Save</button>
</span>
<span style='float:right;padding-bottom:50px'>
<button id="select-all">Select all</button>
<button id="select-none">Select none</button>
<button><a href="options_custom.html" style="text-decoration:none;color:inherit">Custom sites</a></button>

View file

@ -8,14 +8,14 @@
display: block;
}
body {
width:450px;
height:700px;
width:350px;
height:600px;
}
</style>
</head>
<body>
<h2>Custom Sites</h2>
<div>
<div style="width:90%;">
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 <a href="options.html" style="color:black">options</a> (cookies will be removed by default).
<br/><br/>
@ -39,9 +39,9 @@
<button id="delete">Delete</button>
</span>
<div style="clear:both;"></div>
<div>
<div style="width:90%;">
<h3>Json file</h3>
You can edit the text area and save (only when json-text is valid).<br/>
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.
</div>
<br/>
@ -49,10 +49,8 @@
<br/>
<div id="status"></div>
<div id="error"></div>
<span style='float:left;padding-bottom:20px'>
<span style='float:left;padding-bottom:50px'>
<button id="save">Save</button>
</span>
<span style='float:right'>
<button id="export">Export</button>
<button id="import">Import</button>
<input type="file" id="importInput" accept=".txt" style="display:none"/>

View file

@ -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);