17.Mai 2012
StartseiteWebdesignPC-TechnikIT-BeratungNetzwerkeSoftwareElektronikSupport
Dynamic Drive Remove right click lock

Greasemonkey Script to remove right Click lock from dynamicdrive

 

clickIE4, clickNS4

 

 

Javascript
function MOUSE_unlock() { 
            // cleanup global events
            unsafeWindow.document.onmousedown = null; 
            unsafeWindow.onmousedown = null;
            unsafeWindow.document.oncontextmenu = null;
            unsafeWindow.oncontextmenu = null;
            // run over all elements
            e_all = document.getElementsByTagName('*');
            e_count = e_all.length;
            for (var i = 0;i < e_count;i++)
                                           {
                                           e_all[i].setAttribute("oncontextmenu", "return true;");
                                           e_all[i].setAttribute("onmousedown"  , "return true;");
                                           e_all[i].setAttribute("onmouseup"    , "return true;");
                                           }
                                   
}
 
window.addEventListener("load", function() { MOUSE_unlock(); }, false);