This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| async function fillQuery() { | |
| question = window.location.search.split("=")[1].replace("+", " ").replace("%3F", "?").replace("%27", "'") | |
| var input = document.getElementsByTagName("textarea")[0] | |
| await sleep(1000); // Pause for 1 second | |
| input.textContent = question | |
| // input.innerText = question |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const script = document.createElement('script'); | |
| script.src = `function modify(obj, key, value) { | |
| for (var k in obj) { | |
| if (k === key) { | |
| obj[k] = value; | |
| } | |
| if (typeof obj[k] === "object") { | |
| modify(obj[k], key, value); | |
| } | |
| } |