-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
23 lines (22 loc) · 947 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
window.onload() = function() {
//alert("script made by g4o2 button is at the bottom left")
var sheet = window.document.styleSheets[0];
sheet.insertRule('button{height:60px;width:150px;background:darkgrey;border-radius:10px;border:solid 3px orange;color:orange;}', sheet.cssRules.length);
let btn = document.createElement("button");
btn.innerHTML = "SUPER SPEED";
btn.onclick = function hack() {
}
var myHoverInterval = null;
btn.addEventListener("click", function () {
if (myHoverInterval != null) {
return;
}
myHoverInterval = setInterval(function () {
let text = document.querySelector(".highlight").textContent + " ";
document.querySelector("input").value = text
var inputEvent = new InputEvent("input");
document.querySelector("input").dispatchEvent(inputEvent)
}, 1);
});
document.body.appendChild(btn);
}