osnoser1 / SICEUDO Script Toolkit

// ==UserScript==
// @name       SICEUDO Script Toolkit
// @namespace  http://use.i.E.your.homepage/
// @version    0.3
// @description  enter something useful
// @match      http://*/*
// @copyright  2012+, You
// ==/UserScript==

(function() {
    if(location.hostname !== 'ccaanz.udo.edu.ve') {
        return;
    }
    window.addEventListener('load', function() {
        console.log('window.onload');
        document.oncontextmenu = undefined;
        document.querySelector('body').addEventListener('click', function(event) {
            console.log(event.target.tagName.toLowerCase());
            if (event.target.tagName.toLowerCase() === 'input' || event.target.tagName.toLowerCase() === 'select') {
                event.target.removeAttribute('readonly');
                event.target.removeAttribute('disabled');
                if(event.target.type && event.target.type.toLowerCase() === 'password') {
                    event.target.type = 'text';
                }
            }
        });
    });
})();