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”
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).