Added mentions of compatibility between pure JS and HTTP
This commit is contained in:
parent
aa0f317d1f
commit
47df44ca38
3 changed files with 4 additions and 3 deletions
|
@ -18,7 +18,8 @@
|
|||
<label>Chances out of 100 for a URL to have two domains:</label>
|
||||
<input type="number" id="second" value="1">
|
||||
<label>Application protocols (separated with commas):</label>
|
||||
<input type="text" id="mode" value="http, https">
|
||||
Please note that http requests (not https) will not work if the file is not run locally, <b>putting http in that field is useless if you're using GitHub Pages</b>
|
||||
<input type="text" id="mode" value="https">
|
||||
<label>Minimum URL length (excluding domain and protocol):</label>
|
||||
<input type="number" id="mini" value="2">
|
||||
<label>Maximum URL length (excluding domain and protocol):</label>
|
||||
|
|
|
@ -36,7 +36,7 @@ function findWebsites() {
|
|||
const times = document.getElementById("times").value ? Math.round(Number(document.getElementById("times").value)) : 3000
|
||||
const domains = document.getElementById("domains").value ? document.getElementById("domains").value.split(", ") : ['.co', '.com', '.net', '.edu', '.gov', '.cn', '.org', '.cc', '.us', '.mil', '.ac', '.it', '.de']
|
||||
const second = document.getElementById("second").value ? Math.round(Number(document.getElementById("second").value)) : 1
|
||||
const mode = document.getElementById("mode").value ? document.getElementById("mode").value.split(", ") : ['http', 'https']
|
||||
const mode = document.getElementById("mode").value ? document.getElementById("mode").value.split(", ") : ['https']
|
||||
const mini = document.getElementById("mini").value ? Math.round(Number(document.getElementById("mini").value)) : 2
|
||||
const maxi = document.getElementById("maxi").value ? Math.round(Number(document.getElementById("maxi").value)) : 50
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ Unless you're using the Javascript script, if you wish to use arguments, you are
|
|||
|
||||
* "-t" defaults to 3000.
|
||||
* "-d" defaults to a lot of popular top-level domains.
|
||||
* "-m" defaults to "http".
|
||||
* "-m" defaults to "http", but the Javascript script defaults to "https" due to [requests made with the "http" application protocol being blocked when not run locally](https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content).
|
||||
* "-l" makes it so URLs will be logged.
|
||||
* "-s" defaults to 1.
|
||||
* "-MIN" defaults to 2.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue