This commit is contained in:
CatAClock 2025-07-16 18:57:55 -07:00
parent 0595ac025b
commit 22b250daa7

View file

@ -125,7 +125,7 @@ async function GetPost() {
// Any replies? Give them the thing :3 // Any replies? Give them the thing :3
let TempID = 0; let TempID = 0;
while (TempID != (NumberOfThreads - 1)) { while (TempID != (NumberOfThreads - 1)) {
for (let i of document.getElementsByClassName(NumberOfThreads.toString())) { for (let i of document.getElementsByClassName(NumberOfThreads)) {
i.onclick = (event) => { i.onclick = (event) => {
SetThreadPost(ThreadedPost[TempID], i); SetThreadPost(ThreadedPost[TempID], i);
} }
@ -177,7 +177,7 @@ async function GetPost() {
async function MastodonReplylFunction(Id, post) { async function MastodonReplylFunction(Id, post) {
let OtherPost = await MastodonAPI.GetStatus(post); let OtherPost = await MastodonAPI.GetStatus(post);
let ShitHTML = "<header> <h1 class=\"Handle " + Id + "\"> " + OtherPost.account.acct + "</h1> <h2 class=\"Origin " + Id + "\"> " + website + "</h2> </header> <p class=\"PostText " + Id + "\"></p> <div class=\"Images " + Id + "\"></div> <hr/>"; let ShitHTML = "<header> <h1 class=\"Handle " + Id + "\"> " + OtherPost.account.acct + "</h1> <h2 class=\"Origin " + Id + "\"> " + website + "</h2> </header> <p class=\"PostText " + Id + "\"></p> <div class=\"Images " + Id + "\"></div> <hr/>";
document.getElementsByTagName("body")[0].innerHTML = ShitHTML + document.getElementsByTagName("body")[0].innerHTML; document.getElementsByTagName("body")[0].insertAdjacentHTML("afterbegin", ShitHTML);
if (OtherPost.spoiler_text != "") { if (OtherPost.spoiler_text != "") {
document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text; document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
} else { } else {