aboutsummaryrefslogtreecommitdiffhomepage
path: root/web/bookmarklet/contextmenu
blob: 8bdf4c60dd88c9d3a52650e3362db7c62081a0f0 (plain)
1
javascript:(function(w){     var arr = ['contextmenu','copy','cut','paste','mousedown','mouseup','beforeunload','beforeprint'];     for(var i = 0, x; x = arr[i]; i++){         if(w['on' + x])w['on' + x] = null;         w.addEventListener(x, function(e){e.stopPropagation()}, true);     };     for(var j = 0, f; f = w.frames[j]; j++){try{arguments.callee(f)}catch(e){}}})(window);