There are some sites like Twitter which take a query-string type input and autofill an important text box on the page. If you’ve used Summize to reply to someone, you would have seen the ‘Reply’ link point to something like:
http://twitter.com/home?status=<text>
It’s a handy shortcut to predefining the value of text boxes, and can be coupled with features like Firefox’s bookmark keyword feature for some handy short-cuts. Unfortunately, not all sites do that. This userscript aims to solve that problem.
How it works
A more comprehensive explanation is given at the Userscripts.org repository, but in brief, it analyses the appended query-string to your URL and resolves it into a key and a value. It looks for a input box with the ID attribute specified by the key, and prepopulates it with the value. What’s left is to just submit the form.
The script also adds a hover tip on all text boxes which show the ID of that box, to make it easier for you to know what key to use to populate which box.
Query String Input Autofiller
All my userscripts
Update: The script now checks for the ID and name both, to find the text box to auto-fill. name is a fallback after an ID search. (thanks @singpolyma)
1 Comment
Excellent! May I also request a name=”” fallback for items with no id?
Leave a comment
RSS feed for comments on this post. TrackBack URL