Sinisterly
[JS] UserSparkleRemover | Remove Fancy Particles from usernames - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: [JS] UserSparkleRemover | Remove Fancy Particles from usernames (/Thread-JS-UserSparkleRemover-Remove-Fancy-Particles-from-usernames)



[JS] UserSparkleRemover | Remove Fancy Particles from usernames - miso - 04-19-2020

the script removes the following gif, it might be loaded a few hundred times on the index page, which can make some low-performance devices lag, you can use this script to remove all of the instances of the gif, which reduces load times (see also PrefixSparkleRemover):

[Image: sparkle.gif]

Without UserSparkleRemover Script:
[Image: 1ZXt-uuPR-SBgcvlCWPxZA.png]

With UserSparkleRemover:
[Image: iYrCe6I9SViX6XW10hYz6A.png]

Script:
Code:
var x = document.getElementsByTagName("span"), i; for (i = 0; i < x.length; i++) {   if (x[i].style.backgroundImage == 'url("https://www.sinister.ly/images/groupimages/extra/sparkle.gif")') {     x[i].style.backgroundImage = ""   } }

Code:
For TamperMonkey, add this to the script: // @match https://sinister.ly/*



RE: [JS] UserSparkleRemover | Remove Fancy Particles from usernames - Crimin4L - 04-19-2020

Nice script @miso !

For people using TamperMonkey be sure to include the text in red box:
Spoiler:
[Image: knBIEph.png]



RE: [JS] UserSparkleRemover | Remove Fancy Particles from usernames - miso - 04-19-2020

(04-19-2020, 01:34 AM)Crimin4L Wrote: Nice script @miso !

For people using TamperMonkey be sure to include the text in red box:
Spoiler:
[Image: knBIEph.png]
i don't really use tampermonkey but i'll add it