Thursday, 8 January 2009

Love Grease Mokey, Adopt a Fire Bug ;-)

Just now it took me about a minute to fix an annoying bit on RS Electronics website, namely the "family" selection box. Someone at RS had a great idea to limit the height of this box, which worked nicely as long as you are browsing a small product line, but when you get to the holy grail of component selection, connectors, you are presented with a list of 43 options, of which only the top two lines fit in the box height, thus you gotta scroll, and scroll a lot, because the these options are not grouped by pitch, so same pitch connectors happily live in several lines of the list, thus if you wanted to see all the options for 5.0 and 5.08 mm pitch you'd have to scroll up and down and up and down to get 3 lines of options through 2 lines of screen.

Firebug: F12 to turn on, right click in the box to inspect element, check CSS of element and its parents for abnormal height restrictions.
Google: greasemonkey add css, copy.
Greasemonkey: add new script, asterixize the url, paste, enter class and property name, inherit.
Reload.
Done.

0 comments: