jswanner / DontF-WithPaste

Google Chrome extension that prevents the blocking of pasting into input fields
https://chrome.google.com/webstore/detail/dont-fuck-with-paste/nkgllhigpcljnhoakjkgaieabnkmgdkb
MIT License
805 stars 63 forks source link

[Feature Suggestion] Dont F With Right-Clicks #129

Open alkaris2 opened 10 months ago

alkaris2 commented 10 months ago

I know this extension deals with not being able to paste on web forms and such, but there are also the few odd sites where they will unnecessarily block you from right-clicking on pages. Despite how minor this is, I believe having access blocked to context menus is completely useless and adds nothing in terms of securing content served on the page despite being able to open the Inspector Console and view the contents.

This is what some bad actors will typically use to block context menu access;

window.oncontextmenu = function() { return false; }
    $('body').bind('contextmenu', function(e) {
        return false;
    });

$(document).ready(function () {
    $('.select2').select2();
});
jswanner commented 10 months ago

@alkaris2, this is not an unreasonable request. I'm still debating with myself whether it seems like an appropriate fit or not...

timmc commented 4 months ago

In the meantime, it's worth noting that in Firefox you can hold down shift while right-clicking to always get the context menu. (Not sure what's available in other browsers.)