mirror of
https://github.com/FlamedDogo99/EaglerMobile.git
synced 2024-11-24 04:56:04 -08:00
Fix for double input and view height
This commit is contained in:
parent
9b19b2c01f
commit
4a786ae25c
|
@ -15,7 +15,7 @@
|
||||||
// THIS IS LAZY AND DANGEROUS AND CAN EXPOSE USERSCRIPT INTERNALS SO PLEASE REMOVE
|
// THIS IS LAZY AND DANGEROUS AND CAN EXPOSE USERSCRIPT INTERNALS SO PLEASE REMOVE
|
||||||
// IN THE FUTURE, JUST INJECT A SCRIPT TAG
|
// IN THE FUTURE, JUST INJECT A SCRIPT TAG
|
||||||
try {
|
try {
|
||||||
unsafeWindow.console.log("UNSAFE WINDOW RAGGHHH")
|
unsafeWindow.console.log("UNSAFE WINDOW");
|
||||||
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!")
|
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 {
|
} catch {
|
||||||
Object.defineProperty(window, "unsafeWindow", {
|
Object.defineProperty(window, "unsafeWindow", {
|
||||||
|
@ -411,7 +411,8 @@ function insertCanvasElements() {
|
||||||
unsafeWindow.console.log(`Received input by ${e.inputType}: ${e.data} -> ${inputData}`);
|
unsafeWindow.console.log(`Received input by ${e.inputType}: ${e.data} -> ${inputData}`);
|
||||||
|
|
||||||
unsafeWindow.lastKey = inputData
|
unsafeWindow.lastKey = inputData
|
||||||
hiddenInput.value = " "; // We need a character to detect deleting
|
// TEMP ADD BACK
|
||||||
|
// hiddenInput.value = " "; // We need a character to detect deleting
|
||||||
if(unsafeWindow.keyboardFix) {
|
if(unsafeWindow.keyboardFix) {
|
||||||
const sliceInputType = e.inputType.slice(0,1); // This is a really dumb way to do this because it's not future-proof
|
const sliceInputType = e.inputType.slice(0,1); // This is a really dumb way to do this because it's not future-proof
|
||||||
if(sliceInputType== 'i') {
|
if(sliceInputType== 'i') {
|
||||||
|
@ -590,7 +591,12 @@ customStyle.textContent = `
|
||||||
|
|
||||||
}
|
}
|
||||||
html, body {
|
html, body {
|
||||||
|
height: 100% !important;
|
||||||
|
height: 100dvh !important;
|
||||||
height: -webkit-fill-available !important;
|
height: -webkit-fill-available !important;
|
||||||
|
height: -moz-available !important;
|
||||||
|
height: fill-available !important;
|
||||||
|
height: stretch !important;
|
||||||
touch-action: pan-x pan-y;
|
touch-action: pan-x pan-y;
|
||||||
}
|
}
|
||||||
.hide {
|
.hide {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user