j
This commit is contained in:
parent
0595ac025b
commit
22b250daa7
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ async function GetPost() {
|
|||
// Any replies? Give them the thing :3
|
||||
let TempID = 0;
|
||||
while (TempID != (NumberOfThreads - 1)) {
|
||||
for (let i of document.getElementsByClassName(NumberOfThreads.toString())) {
|
||||
for (let i of document.getElementsByClassName(NumberOfThreads)) {
|
||||
i.onclick = (event) => {
|
||||
SetThreadPost(ThreadedPost[TempID], i);
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ async function GetPost() {
|
|||
async function MastodonReplylFunction(Id, 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/>";
|
||||
document.getElementsByTagName("body")[0].innerHTML = ShitHTML + document.getElementsByTagName("body")[0].innerHTML;
|
||||
document.getElementsByTagName("body")[0].insertAdjacentHTML("afterbegin", ShitHTML);
|
||||
if (OtherPost.spoiler_text != "") {
|
||||
document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue