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

The government of Australia has f****d with this` #81

Closed brkorb closed 5 years ago

brkorb commented 5 years ago

https://www.eta.homeaffairs.gov.au/ETAS3/etas

jswanner commented 5 years ago

@brkorb, I do see that they don't allow pasting into the "Confirm ..." fields, but when this extension is active I am able to do so. Are you having trouble even with this extension active on their site?

brkorb commented 5 years ago

Yes. I double checked and restarted chrome, same result. :(

On Monday, December 3, 2018, Jacob Swanner notifications@github.com wrote:

@brkorb https://github.com/brkorb, I do see that they don't allow pasting into the "Confirm ..." fields, but when this extension is active I am able to do so. Are you having trouble even with this extension active on their site?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jswanner/DontFuckWithPaste/issues/81#issuecomment-443947332, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL3OKRw1XDE24j2aNglh657QGq_RV86ks5u1d6FgaJpZM4Y_opU .

--

jswanner commented 5 years ago

@brkorb, what color is the extension's icon when you are on that site (grey or blue)?

brkorb commented 5 years ago

Grey, of course. :( Attached is the DFWP config page which says, "active" to me. What am I missing? On Tue, Dec 4, 2018 at 11:03 AM Jacob Swanner notifications@github.com wrote:

@brkorb https://github.com/brkorb, what color is the extension's icon when you are on that site (grey or blue)?

jswanner commented 5 years ago

@brkorb, click on the extension icon, then press the "Save" button. The button's icon should then be blue, and you should be able to paste.

brkorb commented 5 years ago

Is the java RE anchored or not? i.e. is there an implicit "^" at the start and "$" at the end, or not? Anyway, my new pattern is ".*", so it doesn't really matter. Thank you.

On Tue, Dec 4, 2018 at 11:57 AM Jacob Swanner notifications@github.com wrote:

@brkorb https://github.com/brkorb, click on the extension icon, then press the "Save" button. The button's icon should then be blue, and you should be able to paste.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jswanner/DontFuckWithPaste/issues/81#issuecomment-444236316, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL3ODKSi_ohiljRpwol_VGAUPhGkxqdks5u1tOkgaJpZM4Y_opU .

--

jswanner commented 5 years ago

@brkorb, the patterns are not altered in any way when they are evaluated: https://github.com/jswanner/DontFuckWithPaste/blob/a2fdb5254ceb46567bacd650fb0146e7e08713e0/dfwp.js#L15-L21, but you shouldn't need to add ^/$ to the patterns, especially if the patterns start with <protocol>://.

I would not recommend a pattern like .* to match all sites, as you don't want this extension active on all sites, only problematic ones. This extension will have negative side-effects if active on sites like GitHub which do useful things on paste events (like turning paste of files into file uploads).

brkorb commented 5 years ago

OK. Thank you. I'll just click the grey box when I stub my toe, though I've never tried to paste a file before. I go into the upload menu. :)

On Tue, Dec 4, 2018 at 12:16 PM Jacob Swanner notifications@github.com wrote:

@brkorb https://github.com/brkorb, the patterns are not altered in any way when they are evaluated: https://github.com/jswanner/DontFuckWithPaste/blob/a2fdb5254ceb46567bacd650fb0146e7e08713e0/dfwp.js#L15-L21, but you shouldn't need to add ^/$ to the patterns, especially if the patterns start with ://.

I would not recommend a pattern like .* to match all sites, as you don't want this extension active on all sites, only problematic ones. This extension will have negative side-effects if active on sites like GitHub which do useful things on paste events (like turning paste of files into file uploads).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jswanner/DontFuckWithPaste/issues/81#issuecomment-444242469, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL3OGbQOYVXN8xIZqF6ncA3CwxIpeQMks5u1tgxgaJpZM4Y_opU .

--

jswanner commented 5 years ago

Okay :)