aboutsummaryrefslogtreecommitdiffhomepage
path: root/web/bookmarklet
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2025-04-28 08:38:59 +0800
committerHsieh Chin Fan <pham@topo.tw>2025-04-28 08:42:47 +0800
commit7702cd1a6f708cea72c7fd16a520d7c036ff3ec7 (patch)
tree3970c7c291457e9ac2d44ff7541a2797e8174c54 /web/bookmarklet
parent4cad49b1bf0a3998a76d948f9c53b857510676e0 (diff)
Update
Diffstat (limited to 'web/bookmarklet')
-rw-r--r--web/bookmarklet/contextmenu1
1 files changed, 1 insertions, 0 deletions
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);