Update (custom)options UI

This commit is contained in:
magnolia1234 2020-03-15 10:17:24 +01:00 committed by GitHub
parent 6cb7ed4248
commit 0429804012
4 changed files with 27 additions and 19 deletions

View file

@ -137,7 +137,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\/)/, '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

@ -18,11 +18,16 @@
<div> <div>
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. You should
uncheck sites you have an account with or else you will be logged out at every visit. uncheck sites you have an account with or else you will be logged out at every visit.
Add your <a href="options_custom.html">custom sites</a>.
</div> </div>
<br/> <br/>
<div style='float:right'><a href="options.html#save">to save-button</a></div> <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> <div style="clear:both;"></div>
<br>
<div id='bypass_sites'></div> <div id='bypass_sites'></div>
<br/> <br/>
<div id="status"></div> <div id="status"></div>
@ -33,6 +38,7 @@
<span style='float:right;padding-bottom:50px'> <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>
</span> </span>
<script src="sites.js"></script> <script src="sites.js"></script>
<script src="options.js"></script> <script src="options.js"></script>

View file

@ -14,11 +14,10 @@
</style> </style>
</head> </head>
<body> <body>
<h1>Options Custom</h1> <h2>Custom Sites</h2>
<div> <div>
Add new site: enter unique title/domain (without www.)<br/> To add new site, enter a unique title/domain (without www.) and select options for googlebot/block
& options for googlebot/block javascript (only on (sub)domain).<br/> 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).
Enable new site in <a href="options.html">options</a> (cookies removed by default).
<br/><br/> <br/><br/>
</div> </div>
<div id='add_site'></div> <div id='add_site'></div>
@ -26,12 +25,11 @@
<div id="status_add"></div> <div id="status_add"></div>
<span style='float:left;padding-bottom:20px'> <span style='float:left;padding-bottom:20px'>
<button id="add">Add</button> <button id="add">Add</button>
</span> </span>
<div style="clear:both;"></div> <div style="clear:both;"></div>
<div> <div>
<div> <h3>List of custom sites</h3>
List of custom sites<br/> Disable deleted sites in <a href="options.html" style="color:black">options</a>.
Disable deleted sites in <a href="options.html">options</a>.
<br/><br/> <br/><br/>
</div> </div>
<div id='custom_sites'></div> <div id='custom_sites'></div>
@ -39,12 +37,12 @@
<div id="status_delete"></div> <div id="status_delete"></div>
<span style='float:left;padding-bottom:20px'> <span style='float:left;padding-bottom:20px'>
<button id="delete">Delete</button> <button id="delete">Delete</button>
</span> </span>
<div style="clear:both;"></div> <div style="clear:both;"></div>
<div> <div>
Current custom sites (edit textarea & save).<br/> <h3>Json file</h3>
Saves only when valid json-text; clear & save to reset.<br/> You can edit the text area and save (only when json-text is valid).<br/>
Also possible to export/import json-text for new installation. Clear & save to reset. You can also export/import json-text for new installations.
</div> </div>
<br/> <br/>
<div id='bypass_sites'></div> <div id='bypass_sites'></div>
@ -53,10 +51,14 @@
<div id="error"></div> <div id="error"></div>
<span style='float:left;padding-bottom:20px'> <span style='float:left;padding-bottom:20px'>
<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"/>
<button><a href="options.html" style="text-decoration:none;color:inherit">Options</a></button>
</span> </span>
<script src="options_custom.js"></script> <script src="options_custom.js"></script>
</body> </body>
</html> </html>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
</head> </head>
<body> <body>
<div style="width:275px;"><strong>Bypass Paywalls Clean <span id="version"></span></strong> <div style="width:225px"><strong>Bypass Paywalls Clean <span id="version"></span></strong>
<br><a href="options.html">Options</a> | <br><a href="options.html" style="color:black">Options</a> |
<a href="https://github.com/magnolia1234/bypass-paywalls-firefox-clean/blob/master/README.md" target=”_blank”>GitHub</a> <a href="https://github.com/magnolia1234/bypass-paywalls-firefox-clean/blob/master/README.md" style="color:black" target=”_blank”>GitHub</a>
<span id="version_new"></span></div> <span id="version_new"></span></div>
<script src="version.js"></script> <script src="version.js"></script>
</body> </body>
</html> </html>