I would love this block to go die in a server fire.
Ask HN: How to disable right-click blocking in the browser
1–10 of 66 posts
Re: Ask HN: How to disable right-click blocking in the browser
#2Above comes with disclaimer, I personally don't allow any extensions in browser I use for banking. A little bit paranoid but I prefer to reduce plain of attack when accessing my bank (of course there are other threats that may bring more severe risk, remove them one at a time :) ).
Re: Ask HN: How to disable right-click blocking in the browser
#3Re: Ask HN: How to disable right-click blocking in the browser
#4Re: Ask HN: How to disable right-click blocking in the browser
#5 javascript:void(document.oncontextmenu=document.onMouseDown=()=>true)
...which works for, maybe, 60% of cases. Or you can try a more sophisticated one for greater success. e.g.: javascript:(function(w){
var arr = ['contextmenu','copy','cut','paste'];
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);
Unfortunately, these don't work on 100% of the pages. Otherwise, as someone else has suggested, Firefox allows you to disable context menu hijacking for every site.Re: Ask HN: How to disable right-click blocking in the browser
#6[self-promotion] My extension StopTheMadness stops this (supports all web browsers on macOS): https://underpassapp.com/StopTheMadness/
Re: Ask HN: How to disable right-click blocking in the browser
#7For ins.tance you can shift right click a video to use picture in picture on Youtube
Re: Ask HN: How to disable right-click blocking in the browser
#8Same for sites that override ctrl + left click (to open link in new tab - some sites will treat it like you simply clicked the link and open it in the same tab - super annoying).
Re: Ask HN: How to disable right-click blocking in the browser
#9Re: Ask HN: How to disable right-click blocking in the browser
#10[self-promotion] My extension StopTheMadness stops this (supports all web browsers on macOS): https://underpassapp.com/StopTheMadness/
Extension permissions still can't block an extension from making network requests if they have access to a site, right?
(Not implying this extension does something nefarious, but more the general risk of such extensions especially when we hear that sometimes extensions get sold or their authors accounts get compromised...)