This commit is contained in:
CatAClock 2025-07-16 17:52:17 -07:00
parent 8953fe5ad2
commit b07290ed14

View file

@ -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 id=" + id + " class=\"Handle\"> " + website + "</h1> <h1 id=" + id + " class=\"Origin\"> " + OtherPost.account.acct + "</h1> </header> <p id=" + id + " class=\"PostText\"></p> <div id=" + id + " class=\"Images\"></div> <hr/>"; let ShitHTML = "<header> <h1 id=" + id + " class=\"Handle\"> " + website + "</h1> <h1 id=" + id + " class=\"Origin\"> " + OtherPost.account.acct + "</h1> </header> <p id=" + id + " class=\"PostText\"></p> <div id=" + id + " class=\"Images\"></div> <hr/>";
document.getElementsByTagName("body")[0] = ShitHTML + document.getElementsByTagName("body")[0].innerHTML; document.getElementsByTagName("body")[0].innerHTML = ShitHTML + document.getElementsByTagName("body")[0].innerHTML;
if (OtherPost.spoiler_text != "") { if (OtherPost.spoiler_text != "") {
document.getElementsByClassName("PostText").getElementById(id).innerHTML = "WARNING: " + OtherPost.spoiler_text; document.getElementsByClassName("PostText").getElementById(id).innerHTML = "WARNING: " + OtherPost.spoiler_text;
} else { } else {