>>101408690
in the end what took me the longest was putting the text in the button
// ==UserScript==
// @name archive link getter
// @namespace Violentmonkey Scripts
// @match https://desuarchive.org/*/thread/*
// @match https://archiveofsins.com/*/thread/*
// @match https://archived.moe/*/thread/*
// @grant none
// @version 1.0
// @author anon
// @description 14/07/2024, 16:33:38
// ==/UserScript==
function hole(){
t = ""
for (i of document.body.getElementsByClassName("thread_image_link")){
t += i.href+"\n"
}
alert(t)
}
butt = document.createElement("button")
butt.onclick = hole
butt.append("GET LINKS")
document.getElementById("main").prepend(butt)
dunno about the other archives but if they look like desuarchive you can just add // @match https://[url]/*/thread/*
to the header