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
| links = []; | |
| text = []; | |
| function n(num) { | |
| if (num > 99) return num; | |
| if (num > 9) return `0${num}`; | |
| return `00${num}`; | |
| } | |
| async function downloadURI(uri, name) { | |
| await new Promise(res => setTimeout(() => res(), 100)); | |
| var link = document.createElement("a"); |
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
| let editWaitTimeout = 2000; | |
| let deleteWaitTimeout = 2000; | |
| (async () => { | |
| for (let thing of document.querySelectorAll('.thing.comment')) { | |
| const textArea = thing.querySelector('textarea'); | |
| if (textArea.innerHTML === '*') { | |
| continue; | |
| } | |
| const editButton = thing.querySelector("a.edit-usertext") |