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
818 stars 66 forks source link

Feature/unblock more events #50

Open ktully opened 6 years ago

ktully commented 6 years ago

Unblock copy and paste on more sites, and unblock cut in general

The new unblockings will probably break some sites with rich content editors, necessitating more use of the site whitelist/blacklist by users.

ktully commented 6 years ago

May resolve #47 as a side-effect

ktully commented 6 years ago

@jswanner if I resolve the conflicts with your 2.0 updates (and follow the new pattern for deregistering event handlers when the extension is deactivated), is this a merge request you're likely to accept?

How do you feel about me renaming allowCopyAndPaste() in content.js?

jswanner commented 6 years ago

@ktully firstly, thanks for caring enough to make the changes and the PR.

I've been debating with myself over how I feel about these changes -- with the exception of cut events, which I should have thought about when I accepted the PR that added copy events.

I certainly would not have wanted to merge this with version 1, since with the default configuration those event handlers would have run on the majority of pages, causing far more harm than good. Now that I've released v2 (setting aside the negative feedback), I'm more open to the idea of the extension intercepting these additional events.

jswanner commented 6 years ago

How do you feel about me renaming allowCopyAndPaste() in content.js?

I'm fine with it being renamed, but I would probably call it something along the lines of forceBrowserDefault.

nitrocode commented 6 years ago

@ktully Why is your fork DontMessWithPaste instead of DontFuckWithPaste ?

:disappointed: that you removed the emotional expletive that increases our satisfaction to use this addon

kwaaak commented 6 years ago

https://www.cloudbet.com/ also blocks pasting into their "Stake" input fields. If someone has the leisure, you could go through https://www.cloudbet.com/public/js/desktop_cecc931.js and figure out how.