Increase comment timeout
This commit is contained in:
parent
dd08715d87
commit
c45e2a54a9
|
@ -1,3 +1,8 @@
|
|||
<style>
|
||||
.post-action {
|
||||
margin-top: -3rem !important;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function addCheckbox(container = document) {
|
||||
const original_submit = container.querySelector(
|
||||
|
@ -35,6 +40,7 @@
|
|||
legal.style.setProperty("font-style", "italic");
|
||||
legal.style.setProperty("font-size", "1.333rem");
|
||||
legal.style.setProperty("line-height", "150%");
|
||||
legal.style.setProperty("padding-bottom", "3rem");
|
||||
container
|
||||
.querySelector("#isso-thread .auth-section")
|
||||
.insertBefore(
|
||||
|
@ -56,14 +62,19 @@
|
|||
original_submit.parentElement.appendChild(faux_submit);
|
||||
}
|
||||
|
||||
(async function () {
|
||||
for (let i = 0; i <= 20; i++) {
|
||||
if (document.querySelector(".post-action input[type='submit']")) {
|
||||
continue;
|
||||
async function waitForSelector(selector) {
|
||||
for (let i = 0; i <= 100; i++) {
|
||||
if (document.querySelector(selector)) {
|
||||
break;
|
||||
}
|
||||
await new Promise((resolve) => setTimeout(resolve, 200));
|
||||
}
|
||||
}
|
||||
|
||||
(async function () {
|
||||
await waitForSelector(".post-action input[type='submit']");
|
||||
addCheckbox(document.querySelector("#isso-thread"));
|
||||
await waitForSelector(".isso-comment-footer a.reply");
|
||||
document.querySelectorAll(".isso-comment-footer a.reply").forEach((el) =>
|
||||
el.addEventListener("click", (e) =>
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user