SilentXer0

slashers helper

May 7th, 2020
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Slashers Helper
  3. // @namespace   Slashers Helper
  4. // @include     http*://ladderslasher.d2jsp.org/*
  5. // @grant       none
  6. // @version     3.1
  7. // ==/UserScript==
  8.  
  9.  
  10.  
  11.  
  12. function addGlobalStyle(css) {
  13.   var head;var style;
  14.   head = document.getElementsByTagName('head') [0];
  15.   if (!head) {return;}
  16.   style = document.createElement('style');
  17.   style.type = 'text/css';
  18.   style.innerHTML = css;
  19.   head.appendChild(style);}
  20.  
  21. addGlobalStyle('.itemBoxRight { display:none; border:1px solid red}');
  22. addGlobalStyle('.cataArrowControls svg {width:0px; height:0px; position:absolute; opacity:.2; cursor:pointer }');
  23.  
  24. var drawCTD = window.drawCTD;
  25. var showLake = window.showLake;
  26. var setInvTab = window.setInvTab;
  27.  
  28. window.setInvTab = function() {openInv(); var t = pops.o[pops.INV]; t.tbc.select(t.tbc.tabs[0])}
  29. window.showLake = function() { new CSkill(Skill.FISHING); setInvTab();}
  30. window.drawCTD = function() {addLog(0, "The trapdoor was hidden by your plugin. press Z key to use it");}
Add Comment
Please, Sign In to add comment