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', 'elmercurio.com',
'fd.nl', 'fd.nl',
'folha.uol.com.br', 'folha.uol.com.br',
'ft.com',
'goldcoastbulletin.com.au', 'goldcoastbulletin.com.au',
'haaretz.co.il', 'haaretz.co.il',
'haaretz.com', 'haaretz.com',
@ -137,7 +136,7 @@ var blockedRegexes = {
'challenges.fr': /.+\.poool\.fr\/.+/, 'challenges.fr': /.+\.poool\.fr\/.+/,
'chicagobusiness.com': /.+\.tinypass\.com\/.+/, 'chicagobusiness.com': /.+\.tinypass\.com\/.+/,
'chicagotribune.com': /.+:\/\/.+\.tribdss\.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\/.+/, 'digiday.com': /.+\.tinypass\.com\/.+/,
'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/_next\/static\/runtime\/main.+\.js)/, 'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/_next\/static\/runtime\/main.+\.js)/,
'elmercurio.com': /merreader\.emol\.cl\/assets\/js\/vendor\/modal\.js/, 'elmercurio.com': /merreader\.emol\.cl\/assets\/js\/vendor\/modal\.js/,

View file

@ -15,15 +15,13 @@
</head> </head>
<body> <body>
<h1>Options | <small><span id="version"></span><span id="version_new"></span></small></h1> <h1>Options | <small><span id="version"></span><span id="version_new"></span></small></h1>
<div> <div style="width:90%;">
Selected sites will have their cookies cleared and referer set to Google. You should Selected sites will have their cookies cleared and referer set to Google.
uncheck sites you have an account with or else you will be logged out at every visit. You should uncheck sites you have an account with or else you will be logged out at every visit.
</div> </div>
<br/> <br/>
<div style='float:left'> <div style='float:left'>
<small><button><a href="options_custom.html" style="text-decoration:none;color:inherit">Custom sites</a></button></small> <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> <small><button><a href="options.html#save" style="text-decoration:none;color:inherit">Go to save</a></button></small>
</div> </div>
<div style="clear:both;"></div> <div style="clear:both;"></div>
@ -34,8 +32,6 @@
<div id="error"></div> <div id="error"></div>
<span style='float:left;padding-bottom:50px'> <span style='float:left;padding-bottom:50px'>
<button id="save">Save</button> <button id="save">Save</button>
</span>
<span style='float:right;padding-bottom:50px'>
<button id="select-all">Select all</button> <button id="select-all">Select all</button>
<button id="select-none">Select none</button> <button id="select-none">Select none</button>
<button><a href="options_custom.html" style="text-decoration:none;color:inherit">Custom sites</a></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; display: block;
} }
body { body {
width:450px; width:350px;
height:700px; height:600px;
} }
</style> </style>
</head> </head>
<body> <body>
<h2>Custom Sites</h2> <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 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). 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/> <br/><br/>
@ -39,9 +39,9 @@
<button id="delete">Delete</button> <button id="delete">Delete</button>
</span> </span>
<div style="clear:both;"></div> <div style="clear:both;"></div>
<div> <div style="width:90%;">
<h3>Json file</h3> <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. Clear & save to reset. You can also export/import json-text for new installations.
</div> </div>
<br/> <br/>
@ -49,10 +49,8 @@
<br/> <br/>
<div id="status"></div> <div id="status"></div>
<div id="error"></div> <div id="error"></div>
<span style='float:left;padding-bottom:20px'> <span style='float:left;padding-bottom:50px'>
<button id="save">Save</button> <button id="save">Save</button>
</span>
<span style='float:right'>
<button id="export">Export</button> <button id="export">Export</button>
<button id="import">Import</button> <button id="import">Import</button>
<input type="file" id="importInput" accept=".txt" style="display:none"/> <input type="file" id="importInput" accept=".txt" style="display:none"/>

View file

@ -149,7 +149,7 @@ function renderOptions() {
var textareaEl = document.createElement('textarea'); var textareaEl = document.createElement('textarea');
textareaEl.value = JSON.stringify(sites_custom); textareaEl.value = JSON.stringify(sites_custom);
textareaEl.rows = 12; textareaEl.rows = 12;
textareaEl.cols = 45; textareaEl.cols = 40;
labelEl.appendChild(textareaEl); labelEl.appendChild(textareaEl);
sitesEl.appendChild(labelEl); sitesEl.appendChild(labelEl);