Remove Exchange Button

Remove the Exchange button on Halloween Basket so you don't accidently click it

  1. // ==UserScript==
  2. // @name Remove Exchange Button
  3. // @namespace heasleys.halloween
  4. // @version 1.0
  5. // @description Remove the Exchange button on Halloween Basket so you don't accidently click it
  6. // @author Heasleys4hemp [1468764]
  7. // @match https://www.torn.com/item.php*
  8. // @icon https://www.google.com/s2/favicons?domain=torn.com
  9. // @grant none
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var observer = new MutationObserver(function(mutations) {
  16. if ($(".exchange-action").length > 0) {
  17. $(".exchange-action").remove();
  18. }
  19. });
  20. observer.observe(document, {attributes: false, childList: true, characterData: false, subtree:true});
  21. })();