Cometh the hour annoying ux change, cometh the geek.
You may have noticed Facebook has changed the way the trusty text box works. Previously, if you hit return (Enter), you got a new line, and could arse around making new paragraphs to your hearts content. There was also a nice little submit button. In their wisdom, Facebook have switched this so that pressing return inside a textbox now submits the form by default.. quite annoying. It’s also a problem if, like me, you frequently type in the wrong window – no chance to undo.
Since watching Cruel Intentions wasn’t demanding my full attention, I quickly wrote a hacky little UserScript (Greasemonkey script) which puts things back how they were. You can install it by clicking here. I provide this script with no warranty, no guarantee it will work, no promise to fix/update it, and definitely no freebies. It has been tested in Chrome 10, and works most of the time.
The code is simple enough, so I won’t bother explaining it. If you want to make it better, or make it work on other browsers, please do. Let me know of a link to your updated version and I’ll link/post it here.
UPDATE “It can access: Your data on facebook.com”
Yup, you’ll get this warning if you click to install the script. It’s true that since the script runs whilst you access Facebook, it can ‘see’ the data on the same page as you. This script however doesn’t do anything with that (if you are familiar with JavaScript, why not open it up and have a look).
UPDATE 2
It seems when I was adding the match directives for Chrome, I bodged the regular expression. Alec Muffet fixed it, and I have now uploaded the fix (tested in Chrome 10.0, on Snow Leopard).










Pingback: dropsafe : Plugin-workaround for Chrome users to bypass Enter-To-Submit comments