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
812 stars 64 forks source link

Doesn't work at https://letters.gov.spb.ru/reception/form/ #101

Closed dosoft closed 11 months ago

dosoft commented 4 years ago

This site is in Russian, I hope this is not a big problem :-)

You can easily find the largest multi-line field ("Содержание обращения") and they blocked pasting into this field. Seems like enabling your extension doesn't help.

Thanks.

jswanner commented 4 years ago

@dosoft, you're right, the extension doesn't help there, unfortunately.

The extension prevents the most direct (and most common) methods that sites block paste, but it doesn't try to prevent all methods. Usually, this extension will at least let you use Edit -> Paste, but that's not the case with this site. The creators of this site are using pretty much every possible kind of event listener on that form element, and since their code is obfuscated it's not easy to figure out exactly how they are blocking paste.

This is not a satisfying, nor reusable, work-around, but one option is to open the JavaScript console and manipulate the element's value directly:

$$("#id_message")[0].value = "<your pasted content here>"
jswanner commented 11 months ago

Closing due to inactivity.