Roll Your Own Custom Bookmarklets In Firefox, part 2: Page 2

Posted October 27, 2008

Akkana Peck

(Page 2 of 3)

What, you say you don't particularly need a bookmarklet that turns text green? Okay, me neither. But you can use javascript: for all sorts of really useful things.

Ever wonder who links to your pages? There's a Google query term for finding "back refs" (it's link:), but who remembers all the special Google query terms? Instead, just bookmark this handy Javascript expression:


Or right-click on this link and choose "Copy Link Location": Find back-refs. Now you'll be able to invoke the bookmarklet on any page and it will tell you links to that page.

Here's a short but sweet one. Did you know that web servers give an idea of when a page was last modified? You can get that information with a last-modified bookmarklet: javascript:alert(document.lastModified)

Some of the useful Javascript bookmarklets get a bit long, and they're not very readable. So for the rest of the bookmarklets in this article I'll simply provide the link. To try one, or paste it as a bookmark, right-click on the link and choose "Copy Link Location".

Remember the Wikipedia search bookmarklet in the last article? You can make it even more powerful by adding some Javascript to search for words selected in the current page: Look up selected words in Wikipedia.

Here's a bookmarklet that translates a page from another language using Babelfish, provided you know the appropriate two-letter code: Babelfish translate.

A frequently requested feature for Firefox is a button to go up one level from the current page. But you don't need a button if you just make a bookmarklet: Up one level.

Page 2 of 3

Previous Page
1 2 3
Next Page

Tags: browsers, JavaScript, Firefox, IT, browser

0 Comments (click to add your comment)
Comment and Contribute


(Maximum characters: 1200). You have characters left.



IT Management Daily
Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that datamation.com may send you Datamation offers via email, phone and text message, as well as email offers about other products and services that Datamation believes may be of interest to you. Datamation will process your information in accordance with the Quinstreet Privacy Policy.