SMLWiki - Restored obituary.html

Restores obituary.html on nfl.smlwiki.com with an archive from my website.

  1. // ==UserScript==
  2. // @name SMLWiki - Restored obituary.html
  3. // @namespace https://greasyfork.org/en/users/1434767
  4. // @version 1.0
  5. // @description Restores obituary.html on nfl.smlwiki.com with an archive from my website.
  6. // @author BoyOHBoy
  7. // @match https://nfl.smlwiki.com/global/sidebar.html
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Create the anchor element
  15. var link = document.createElement('a');
  16. link.href = 'https://boyohboy.xyz/indux/obituary.html';
  17. link.target = '_parent';
  18.  
  19. // Create the image element
  20. var img = document.createElement('img');
  21. img.src = 'https://boyohboy.xyz/indux/obituary/candles.png';
  22. img.style.position = 'absolute';
  23. img.style.top = '109px';
  24. img.style.marginLeft = '13px';
  25.  
  26. // Append image to the link
  27. link.appendChild(img);
  28.  
  29. // Append link to body
  30. document.body.appendChild(link);
  31. })();