UD Never an Option

Removes the 'Suicide Button' from the game.

  1. // ==UserScript==
  2. // @name UD Never an Option
  3. // @namespace http://www.cursedtower.com
  4. // @version 1.0
  5. // @description Removes the 'Suicide Button' from the game.
  6. // @include http://urbandead.com/*
  7. // @include http://www.urbandead.com/*
  8. // ==/UserScript==
  9.  
  10. /* Urban Dead NaO
  11. * v1.0
  12. *
  13. * Copyright (C) 2014 Dr Heward
  14. * Author: Elaine M Heward (MEMS) aka Ayelis
  15. * Last Modified: 2014-04-26
  16. *
  17. * Tested under: Firefox 28.0 on Windows
  18. *
  19. * Changes:
  20. * v1.0 - Now works in Firefox
  21. *
  22. * Thanks:
  23. * Bradley Sattem (Aichon) - For creating UD Barrista
  24. * Midianian - For creating UD Building State Colorizer. It gave me the idea for adding cade levels.
  25. * Sean Dwyer - For the original AP recovery time concept that I saw.
  26. * Vaevictus - For producing QuickLinks. It was the inspiration for what got me started on this.
  27. *
  28. */
  29.  
  30.  
  31. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  32. // General functions that retrieve information about the character and environment and variables for accessing it all //
  33. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  34.  
  35. jumpButton = document.evaluate("//form[@action and contains(@action,'map.cgi?jump')]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  36. jumpButton = jumpButton.snapshotItem(0);
  37.  
  38. remove(jumpButton);
  39.  
  40. function remove(removeTarget) {
  41. removeTarget.parentNode.removeChild(removeTarget);
  42. }