GW-Editer ON

EDIT THINGS LIKE A BOSS

  1. // ==UserScript==
  2. // @name GW-Editer ON
  3. // @include https://www.htacademy.org/
  4. // @include http://game.galaxywarfare.com*
  5. // @version 1
  6. // @namespace http://hairballtech.wix.com/hb-chat
  7. // @description EDIT THINGS LIKE A BOSS
  8. // ==/UserScript==
  9.  
  10. var zNode = document.createElement ('div');
  11. zNode.innerHTML = '<button id="myButton2" type="button">'
  12. + 'Editer On</button>'
  13. ;
  14. zNode.setAttribute ('id', 'myContainer2');
  15. document.body.appendChild (zNode);
  16.  
  17.  
  18. document.getElementById ("myButton2").addEventListener (
  19. "click", ButtonClickAction, true
  20. );
  21.  
  22. function ButtonClickAction (zEvent) {
  23. var zNode = document.body.contentEditable='true'; document.designMode='on'; void 0;
  24. zNode.innerHTML = '';
  25. document.getElementById ("myContainer2").appendChild (zNode);
  26. }
  27.  
  28. GM_addStyle ( multilineStr ( function () {/*!
  29. #myContainer2 {
  30. position: fixed;
  31. top: 0;
  32. left: 0;
  33. font-size: 12px;
  34. background: ;
  35. border: 0px outset black;
  36. margin: 52px 12px;
  37. opacity: 10;
  38. z-index: 1000;
  39. padding: 0px 0px;
  40. }
  41. #myButton2 {
  42. color: #00ff00;
  43. background: #313131;
  44. cursor: pointer;
  45. }
  46. */} ) );
  47.  
  48. function multilineStr (dummyFunc) {
  49. var str = dummyFunc.toString ();
  50. str = str.replace (/^[^\/]+\/\*!?/, '')
  51. .replace (/\s*\*\/\s*\}\s*$/, '')
  52. .replace (/\/\/.+$/gm, '')
  53. ;
  54. return str;
  55. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址