Sleazy Fork is available in English.

Darkside.se ❤️

Replace friend's plain heart symbols with a shiny red one.

  1. // ==UserScript==
  2. // @name Darkside.se ❤️
  3. // @namespace darkside.se
  4. // @version 0.1
  5. // @description Replace friend's plain heart symbols with a shiny red one.
  6. // @author Stout
  7. // @license MIT
  8. // @match https://www.darkside.se/?event=*
  9. // @match https://www.darkside.se/?event=*?*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=darkside.se
  11. // @run-at document-idle
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. var heartElements = document.evaluate("//div[starts-with(@id, 'folklista_')]//div[starts-with(@id, 'invitedentry_')]//td/span[text()='♥']",
  19. document,
  20. null,
  21. XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE);
  22.  
  23. for (let i = 0; i < heartElements.snapshotLength; ++i)
  24. {
  25. heartElements.snapshotItem(i).innerText = '❤️';
  26. }
  27. })();