forked from mirrors/akkoma-fe
Compare commits
2 commits
bcd2394cc5
...
571e204f87
Author | SHA1 | Date | |
---|---|---|---|
|
571e204f87 | ||
|
0ad35c7ea0 |
1 changed files with 9 additions and 3 deletions
|
@ -136,7 +136,7 @@
|
|||
.querySelector(".text")
|
||||
.innerHTML
|
||||
.replace(/(<([^>]+)>)/ig, '')
|
||||
.search(/profile theming post/ig) == -1)
|
||||
.search(/profile them/ig) == -1)
|
||||
return false;
|
||||
|
||||
const ptp = pinnedPost.nextElementSibling.querySelector(".StatusBody");
|
||||
|
@ -147,10 +147,16 @@
|
|||
if (musicContainer) {
|
||||
setMusic(rand(musicContainer.children).src);
|
||||
return true;
|
||||
} else {
|
||||
const placeholderContainer = ptp.querySelector(".placeholder-container");
|
||||
if (placeholderContainer && placeholderContainer.href.endsWith(".m4a")) {
|
||||
setMusic(placeholderContainer.href);
|
||||
return true;
|
||||
} else {
|
||||
setMusic(null);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//Configure by fields
|
||||
|
|
Loading…
Reference in a new issue