forked from Alterdot/browser-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
executable file
·112 lines (112 loc) · 8.5 KB
/
options.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html>
<head>
<title>
Alterdot Settings
</title>
<link rel="stylesheet" href="options.css">
<script src="options.js"></script>
</head>
<body>
<div class="main-container">
<div class="title-section">
<img class="alterdot-logo" src="alterdot256.png">
<span class="title-text">Extension Settings</span>
</div>
<form id="settings-form">
<div class="explain-fragment">
  Here you can configure your connections to the Alterdot and IPFS networks and more. Setting up your browser extension correctly is a must if you want to take advantage of a fully decentralized experience. If you just want to browse the Alterdot web without hosting a local wallet or an IPFS node you can skip straight to the section about Alterdot Domain Identifiers.
</div>
<div class="settings-row colored">
<div class="column">
<span class="upper-text">Wallet RPC Port</span>
<span class="lower-text">Set the port used by your desktop wallet for JSON-RPC calls. It is found under rpcport in your alterdot.conf file, by default the desktop wallet sets it to 31050.</span>
</div>
<div class="settings-input-container">
<input class="settings-input" type="number" min="0" max="65535" step="1" name="wallet-port">
<div class="error-container" id="wallet-port-error"></div>
</div>
</div>
<div class="settings-row">
<div class="column">
<span class="upper-text">Wallet RPC Username</span>
<span class="lower-text">Set the username used by your desktop wallet for JSON-RPC calls. It is found under rpcuser in your alterdot.conf file, by default the wallet generates a random username.</span>
</div>
<div class="settings-input-container">
<input class="settings-input" type="text" name="wallet-user">
<div class="error-container" id="wallet-user-error"></div>
</div>
</div>
<div class="settings-row colored">
<div class="column">
<span class="upper-text">Wallet RPC Password</span>
<span class="lower-text">Set the password used by your desktop wallet for JSON-RPC calls. It is found under rpcpassword in your alterdot.conf file, by default the wallet generates a random password. This is not your wallet passphrase!</span>
</div>
<div class="settings-input-container">
<input class="settings-input" type="text" name="wallet-pass">
<div class="error-container" id="wallet-pass-error"></div>
</div>
</div>
<div class="settings-row">
<div class="column">
<span class="upper-text">IPFS Local Gateway Port</span>
<span class="lower-text">The port used by your local IPFS gateway. This can be found in the IPFS Companion under Gateway, by default it is set to 8080 and if that one is used, it gets set to 8081. If you're using Brave this port is usually set to 48084.</span>
</div>
<div class="settings-input-container">
<input class="settings-input" type="number" min="0" max="65535" step="1" name="ipfs-port">
<div class="error-container" id="ipfs-port-error"></div>
</div>
</div>
<div class="settings-row delimited-row-title colored">
<span class="upper-text">Alterdot Domain Identifiers</span>Read this section!
</div>
<div class="explain-fragment">
  Whenever you try to access an Alterdot domain our extension looks for one of several special identifiers that let it know that you are indeed looking for such a domain.
There are three default identifiers: <b>.adot</b> and <b>.a</b> which are added at the end of the domain name as well as <b>.</b> which is added in front. For example, by searching for either <b>bitcoin.adot</b>, <b>bitcoin.a</b> or <b>.bitcoin</b> you will be taken to the <b>bitcoin</b> domain registered on our BlockchainDNS.
<br>  The primary way of addressing a blockchain domain works by checking if the search query matches any of the aforementioned patterns. If you discover that it interferes with your usual web surfing, you can disable Intercepted Search in the main extension popup. Report your situation to our team so we can improve the experience with future updates.
</div>
<div class="explain-fragment colored">
  <b>Important!</b> If Intercepted Search is disabled you will have to use the secondary way of addressing domains which is very similar, just add <b>/</b> at the end of the request, like <b>bitcoin.adot/</b> or <b>bitcoin.a/</b>. Beware that the <b>.bitcoin/</b> format is <b>not</b> supported.
</div>
<div class="settings-row">
<div class="column">
<span class="upper-text">Custom Domain Identifier</span>
<span class="lower-text">Create your own custom identifier here, by default <b>.chain</b> can also be used for addressing, change it to anything you want.</span>
</div>
<div class="settings-input-container">
<input class="settings-input" type="text" name="custom-identifier">
<div class="error-container" id="custom-identifier-error"></div>
</div>
</div>
<div class="settings-row">
<div class="column">
<span class="upper-text">Use Debugging</span>
<span class="lower-text">Enabling this results in numerous debug messages being logged in the browser console. If you encounter any problem while using the browser extension, you should report it to the developers. Using this Debug feature might be requested in order to correctly identify the problem.</span>
</div>
<div class="settings-input-container">
<label class="switch">
<input type="checkbox" id="intercepted-search-toggle" name="use-debug">
<span class="slider round"></span>
</label>
</div>
</div>
<div class="explain-fragment">
  <b>Disclaimer!</b> This software is open-source and operates under an MIT License. We cannot be held accountable for any liabilities caused by its usage. If you do not host an Alterdot node, then you rely on our infrastructure and so the searched queries that fit the patterns mentioned above will be sent to our servers but we do not keep any user-specific information. We might create statistics for the most requested domains, but otherwise we do not collect any data from your search queries as processing is done in your browser.
</div>
</form>
<div class="save-section">
<button id="save-button">Save</button>
<!--
Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
-->
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" class="save-result success svg-inline--fa fa-check-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path>
</svg>
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="times-circle" class="save-result error svg-inline--fa fa-times-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"></path>
</svg>
</div>
</div>
</body>
</html>