mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 12:00:02 -04:00
not case sensitive whoops
This commit is contained in:
parent
3f10060708
commit
12ed47a1bc
1 changed files with 10 additions and 16 deletions
|
@ -1,29 +1,23 @@
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
/* Authors: OlyB, QuiteAFancyEmerald
|
/* Authors: OlyB
|
||||||
/* GNU Affero General Public License v3.0: https://www.gnu.org/licenses/agpl-3.0.en.html
|
/* GNU Affero General Public License v3.0: https://www.gnu.org/licenses/agpl-3.0.en.html
|
||||||
/* prSet script
|
/* prSet script
|
||||||
/* ----------------------------------------------- */
|
/* ----------------------------------------------- */
|
||||||
|
|
||||||
function prSet(type) {
|
function prSet(type) {
|
||||||
var prUrl = document.getElementById("pr-url");
|
var prUrl = document.getElementById("pr-url"),
|
||||||
var prGo1 = document.getElementById("pr-go1");
|
prGo1 = document.getElementById("pr-go1"),
|
||||||
var prGo2 = document.getElementById("pr-go2");
|
prGo2 = document.getElementById("pr-go2");
|
||||||
|
|
||||||
prUrl.addEventListener("keydown", function(e) {
|
prUrl.addEventListener("keydown", function(e) {
|
||||||
if (e.code === "Enter" && prUrl.value.trim() !== "") {
|
if (e.code == "Enter" && prUrl.value) goProx[type](prUrl.value);
|
||||||
goProx[type](prUrl.value.trim());
|
}, false);
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
prGo1.addEventListener("click", function() {
|
prGo1.addEventListener("click", function() {
|
||||||
if (prUrl.value.trim() !== "") {
|
if (prUrl.value) goProx[type](prUrl.value, "window");
|
||||||
goProx[type](prUrl.value.trim(), "window"); // Classic Mode
|
}, false);
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
prGo2.addEventListener("click", function() {
|
prGo2.addEventListener("click", function() {
|
||||||
if (prUrl.value.trim() !== "") {
|
if (prUrl.value) goProx[type](prUrl.value, "stealth");
|
||||||
goProx[type](prUrl.value.trim(), "stealth"); // Stealth Mode
|
}, false);
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue