mirror of
https://github.com/FlamedDogo99/EaglerMobile.git
synced 2024-12-22 07:14:15 -08:00
Added warning for testing
This commit is contained in:
parent
54b32e6034
commit
9b19b2c01f
|
@ -16,6 +16,7 @@
|
|||
// IN THE FUTURE, JUST INJECT A SCRIPT TAG
|
||||
try {
|
||||
unsafeWindow.console.log("UNSAFE WINDOW RAGGHHH")
|
||||
alert("DANGER: This userscript is temporarily using unsafeWindow for testing purposes. Unsafe websites could potentially use this to gain access to data and other content that the browser normally wouldn't allow!")
|
||||
} catch {
|
||||
Object.defineProperty(window, "unsafeWindow", {
|
||||
value: window
|
||||
|
@ -404,6 +405,7 @@ function insertCanvasElements() {
|
|||
hiddenInput.style.cssText = "position:absolute;top: 0vh; margin: auto; left: 8vh; right:0vh; width: 8vh; height: 8vh;font-size:20px;z-index:10";
|
||||
hiddenInput.value = " " //Allows delete to be detected before input is changed
|
||||
hiddenInput.addEventListener("input", function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault(true);
|
||||
let inputData = e.data == null ? "delete" : e.data.slice(-1);
|
||||
unsafeWindow.console.log(`Received input by ${e.inputType}: ${e.data} -> ${inputData}`);
|
||||
|
|
Loading…
Reference in New Issue
Block a user