Files
X-GeoBlock/options/options.html
T

28 lines
2.4 KiB
HTML

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>X GeoBlock settings</title><link rel="stylesheet" href="options.css"></head>
<body><main>
<div class="brand"><img src="../icons/icon.png" alt=""><div><h1>X GeoBlock</h1><p class="lead">Hide posts based on the country shown in an account's About page.</p></div></div>
<form id="settings">
<label class="check"><input id="enabled" type="checkbox"> Enable filtering</label>
<fieldset>
<legend>Blocked countries and regions</legend>
<p class="hint">X may show a country such as “United Kingdom” or a broader region such as “West Asia”. Nothing is blocked by default.</p>
<div class="country-tools"><input id="country-search" type="search" placeholder="Search countries and regions…" autocomplete="off"><button type="button" class="link-button" id="clear-selection">Clear selection</button></div>
<p id="selection-count" class="selection-count"></p>
<div id="country-list" class="country-list"></div>
</fieldset>
<label class="check"><input id="placeholder" type="checkbox"> Show a clickable placeholder for hidden posts</label>
<label class="check"><input id="debug-mode" type="checkbox"> Enable debug logging in the X page console</label>
<fieldset class="cloud-settings">
<legend>Collaborative cloud cache</legend>
<p class="hint">Optional. Confirmed results reduce requests to X. Deploy the included Cloudflare Worker and enter its HTTPS URL.</p>
<label for="cloud-endpoint">Worker URL</label>
<input id="cloud-endpoint" type="url" placeholder="https://x-geoblock-cache.example.workers.dev" autocomplete="url">
<label class="check"><input id="cloud-contribute" type="checkbox"> Contribute locally observed locations</label>
<p class="hint">Contributions send a SHA-256 hash of the public username and its location. Following relationships, posts, and your blacklist are never uploaded.</p>
</fieldset>
<div class="actions"><button type="submit">Save settings</button><button type="button" class="secondary" id="clear">Clear user cache</button></div>
<p id="status" role="status"></p>
</form>
</main><script src="../lib/config.js"></script><script src="../lib/countries.js"></script><script src="../lib/cloud-cache.js"></script><script src="options.js"></script></body></html>