forked from mirrors/akkoma-fe
Compare commits
No commits in common. "571e204f870716377f4c33125d0e8a9ef144808d" and "bcd2394cc59ae21d0db615d56e1a385177f44dff" have entirely different histories.
571e204f87
...
bcd2394cc5
1 changed files with 3 additions and 9 deletions
|
@ -136,7 +136,7 @@
|
||||||
.querySelector(".text")
|
.querySelector(".text")
|
||||||
.innerHTML
|
.innerHTML
|
||||||
.replace(/(<([^>]+)>)/ig, '')
|
.replace(/(<([^>]+)>)/ig, '')
|
||||||
.search(/profile them/ig) == -1)
|
.search(/profile theming post/ig) == -1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const ptp = pinnedPost.nextElementSibling.querySelector(".StatusBody");
|
const ptp = pinnedPost.nextElementSibling.querySelector(".StatusBody");
|
||||||
|
@ -148,14 +148,8 @@
|
||||||
setMusic(rand(musicContainer.children).src);
|
setMusic(rand(musicContainer.children).src);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
const placeholderContainer = ptp.querySelector(".placeholder-container");
|
setMusic(null);
|
||||||
if (placeholderContainer && placeholderContainer.href.endsWith(".m4a")) {
|
return false;
|
||||||
setMusic(placeholderContainer.href);
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
setMusic(null);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue