Groovy web console

subscribe to the feed Subscribe
to this
site
limpiar (via #groovywebconsole)
tweet this snippet Tweet
this
script

limpiar

Published 1 month ago by nico with tags limpiar
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
    setTimeout(function(){        $('h1, #about, table:has(#atomLink), #button-bar *:not(:contains("Execute"))').remove();
        $('#textarea-container, form, #button-bar, #button-bar *').css("margin","0").css("background-image","none");
        $("#executeButton").click(function(event) {
            localStorage.lastExec_5 = localStorage.lastExec_4;
            localStorage.lastExec_4 = localStorage.lastExec_3;
            localStorage.lastExec_3 = localStorage.lastExec_2;
            localStorage.lastExec_2 = localStorage.lastExec_1;
            localStorage.lastExec_1 = localStorage.lastExec;
            localStorage.lastExec = editor.getCode();
        });
        editor.setCode(localStorage.lastExec);
        window.onbeforeunload = function() {
            return "Ojooo";
        };
    },500);