John's Bookmarklets
The following is a short list of bookmarklets that I've written.
------------------------------------------
Click each link to test the script.
Depending on your browser, either
drag a link to your bookmarks toolbar,
or
Right click the link, and select " add to favorites " to save.
Now you can write your code in a normal text editor, then test and compress your code in the same window. Conversely, you can open up someone else's bookmarklet, and more conveniently understand how it was put together. Now it (non recursively) attempts to indent functions and control structures by one level. This is some crazy code. It uses JavaScript to write a window full of JavaScript functions, to help you edit you JavaScript Bookmarklets. It even works with it's OWN code!!! Now that's cool. :) Note: While this code runs flawlessly in Opera and Firefox as both a link and a bookmarklet, in IE6, it refuses to run as a bookmarklet... Anyone??? Anyone??? |
|
This Bookmarklet grabs all the form elements from a page, and places them in a "prompt" field for copying. It works in both Firefox and IE. |
This Bookmarklet takes data copied from the "copy variables" bookmarklet, and populates all form with the same data. This can be used to copy data across pages, or to archive form data for re-input later. Now the bad news... It only works in Firefox. If you can get it to work in IE, I'll be your best friend... |
Disclaimer: This is a script that will be useless for anyone but me, but it's here for educational purposes, in case you want a simple example of how to copy and assign form variables. On a page with TWO forms, it sets the values of the second and third elements of the second form to the value of the first element of the first form. Confused yet? |
This sets the current page default font to verdana. I use this with %s and Firefoxes hot keys to dynamically change the current font to whatever font I want to test. I use 'font' as my keyword, so I can enter in the URL line,'font neona' and boom, the whole page is in that font. (provided it is installed on my system.) |
Technically, this one isn't a bookmarklet. It uses a complex search sent to google to find mp3 directories. This isn't mine, but I edited it to work as a shortcut in Firefox with the %s variable. So if this is saved as a bookmark with a shortcut key of 'mu' then you could type 'mu nirvana' in the URL box, and it would sniff out songs by that band. |
Click this on a Craigslist search page. The script adds a red X icon on the left of all posts, which allows you to hide spam posts, or items that you aren't interested in. The script also changes all item links to open in a new tab, so you don't lose your formatting. To re-show hidden posts, just refresh the page. |
This will colorize all the elements of the page in random RGB colors. Useful for troubleshooting CSS issues. (Note:requires jQuery on the page, but you can get a bookmarklet that adds jquery to any page from here.) |
This reverts the colorize script above. (Note:requires jQuery on the page, but you can get a bookmarklet that adds jquery to any page from here.) |
Quick toggles 12 columns of random (light) colors for every element on the page with class "row". (Note:requires jQuery on the page, but, as mentioned above, you can get a bookmarklet that adds jquery to any page from here.) |