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

`onpaste` attribute causing override #75

Closed niftylettuce closed 6 years ago

niftylettuce commented 6 years ago

costco.com for example has a login form that has the following:

<input id="logonPassword" name="logonPassword" maxlength="20" type="password" class="ctHidden form-control" onpaste="return false" value="" title="Password:">

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste

while this is non-standard we should support the removal of this attribute completely from the DOM when it's loaded or when new DOM elements added that have this

niftylettuce commented 6 years ago

related: https://github.com/jswanner/DontFuckWithPaste/issues/40#issuecomment-335295464

niftylettuce commented 6 years ago

nevermind I have to click "Add rule", it doesn't happen by default