GW-Editer ON

EDIT THINGS LIKE A BOSS

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        GW-Editer ON
// @include     https://www.htacademy.org/
// @include     http://game.galaxywarfare.com*
// @version     1
// @namespace   http://hairballtech.wix.com/hb-chat
// @description EDIT THINGS LIKE A BOSS
// ==/UserScript==

var zNode       = document.createElement ('div');
zNode.innerHTML = '<button id="myButton2" type="button">'
                + 'Editer On</button>'
                ;
zNode.setAttribute ('id', 'myContainer2');
document.body.appendChild (zNode);


document.getElementById ("myButton2").addEventListener (
    "click", ButtonClickAction, true
);

function ButtonClickAction (zEvent) {
   
    var zNode       = document.body.contentEditable='true'; document.designMode='on'; void 0;
    zNode.innerHTML = '';
    document.getElementById ("myContainer2").appendChild (zNode);
}

GM_addStyle ( multilineStr ( function () {/*!
    #myContainer2 {
        position:               fixed;
        top:                    0;
        left:                   0;
        font-size:              12px;
        background:             ;
        border:                 0px outset black;
        margin:                 52px 12px;
        opacity:                10;
        z-index:                1000;
        padding:                0px 0px;
    }
    #myButton2 {
         color:                 #00ff00;
    background:                 #313131;
        cursor:                 pointer;
    }
*/} ) );

function multilineStr (dummyFunc) {
    var str = dummyFunc.toString ();
    str     = str.replace (/^[^\/]+\/\*!?/, '') 
            .replace (/\s*\*\/\s*\}\s*$/, '')   
            .replace (/\/\/.+$/gm, '')
            ;
    return str;
}