From 7702cd1a6f708cea72c7fd16a520d7c036ff3ec7 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 28 Apr 2025 08:38:59 +0800 Subject: Update --- web/bookmarklet/contextmenu | 1 + 1 file changed, 1 insertion(+) create mode 100644 web/bookmarklet/contextmenu (limited to 'web/bookmarklet') diff --git a/web/bookmarklet/contextmenu b/web/bookmarklet/contextmenu new file mode 100644 index 0000000..8bdf4c6 --- /dev/null +++ b/web/bookmarklet/contextmenu @@ -0,0 +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); -- cgit v1.2.3-70-g09d2