PESWiki:Bookmarklet

One error has been found on this page. Administrator will correct this soon.

This page has been imported from the old peswiki website. This message will be removed once updated.

A Bookmarklet is a small computer program written in JavaScript that can be stored as a URL within a bookmark in most web browsers, or within hyperlinks on a web page. The term "favelet" was developed by IE user to reflect and mirror the terminology of that browser, because Internet Explorer uses the term favorites instead of bookmarks.

Description

Steve Kangas of http://www.bookmarklets.com coined the term "bookmarklet," which he started to create based on an idea suggested in the Netscape JavaScript Guide. Bookmarklets can be saved and used like normal web page bookmarks. Therefore, they are simple "one-click" tools that can add substantial functionality to the browser. For example, they can:

Modify the way a web page is displayed within the browser (e.g., change the font size, background color, etc.).

Extract data from a web page (e.g., hyperlinks, images, text, etc.).

Jump directly to a search engine, with the search term(s) input either from a new dialog box, or from a selection already made on a web page.

Submit the page to a validation service.

Brendan Eich, who developed JavaScript at Netscape, gave this account of his invention of the javascript: URL (which makes bookmarklets possible): javascript: URL (which makes bookmarklets possible):

{{quotation|They were a deliberate feature in this sense: I invented the javascript: URL along with JavaScript in 1995, and intended that javascript: URLs could be used as any other kind of URL, including being bookmark-able.

In particular, I made it possible to generate a new document by loading, e.g. javascript:'hello, world', but also (key for bookmarklets) to run arbitrary script against the DOM of the current document, e.g. javascript:alert(document.links[0].href). The difference is that the latter kind of URL uses an expression that evaluates to the undefined type in JS. I added the void operator to JS before Netscape 2 shipped to make it easy to discard any non-undefined value in a javascript: URL.|Brendan Eich}}

PESWiki Search Code

The following lines, when joined together to form a bookmarklet, will search PESWiki for the string currently highlighted in the browser, or else, if nothing is selected, it will display a dialog box form field in which to enter a search string. This bookmarklet works in Mozilla Firefox and Konqueror (Minitools):

To install the previous bookmarklet in Internet Explorer, follow these steps:

# Make sure the Links toolbar is visible (ensure View/Toolbars/Links is checked).

# In the Favorites menu, select Add to Favorties...

# Type "PESWiki" in the Name field.

# In the Create In box, select the Links folder. Click OK.

# Copy the text of the bookmarklet, above.

# Right-click on the new "PESWiki" link in the Links bar, and select Properties.

# Paste the bookmarklet text into the URL field. Click OK.

Other PESWiki Codes

The following bookmarklets will give yoy simple tools that extend the surf and search capabilities of Netscape and Explorer web browsers at PESWik. The Bookmarklets are "free". Bookmarklets wlll work on all platforms (Windows, Macintosh, Unix,...) and you do not have have to download or install software to use Bookmarklets. The text to copy wiill appear as follows:

: javascript code

More Info About ...

"More Info About" is a available from bookmarklet.com. Instead of clicking on links, you can select some text from the webpage and quickly feed it into all of the search engines below no copying or pasting.

The search bookmarklets below will allow you to search PESWiki content, instead of clicking on links, select some text from the webpage and quickly feed it into all of the search engines below no copying or pasting.