A bookmarklet is an applet An applet is any small application that performs one specific task; sometimes running within the context of a larger program, perhaps as a plugin. However, the term typically also refers to programs written in the Java programming language which are included in an HTML page. The word Applet originally comes from the application AppleScript.[, a small computer application, stored as the URL In computing, a Uniform Resource Locator is a subset of the Uniform Resource Identifier (URI) that specifies where an identified resource is available and the mechanism for retrieving it. In popular usage and in many technical documents and verbal discussions it is often incorrectly used as a synonym for URI, the best-known example of which is the of a bookmark In the context of the World Wide Web, a bookmark is a locally stored Uniform Resource Identifier . All modern web browsers include bookmark features. Bookmarks are called favorites or Internet shortcuts in Internet Explorer, and by virtue of that browser's large market share, these terms have been synonymous with bookmark since the first browser in a web browser A web browser is a software application for retrieving, presenting, and traversing information resources on the World Wide Web. An information resource is identified by a Uniform Resource Identifier and may be a web page, image, video, or other piece of content. Hyperlinks present in resources enable users to easily navigate their browsers to or as a hyperlink In computing, a hyperlink is a reference to a document that the reader can directly follow, or that is followed automatically. The reference points to a whole document or to a specific element within a document. Hypertext is text with hyperlinks. Such text is usually viewed with a computer. A software system for viewing and creating hypertext is a on a web page A webpage or web page is a document or resource of information that is suitable for the World Wide Web and can be accessed through a web browser and displayed on a computer screen. The term is a portmanteau A portmanteau (pronounced /pɔrtmænˈtoʊ/ ) or portmanteau word is used broadly to mean a blend of two (or more) words or morphemes and their meanings into one new word, and narrowly in linguistics fields to mean only a blend of two or more function words of the terms bookmark and applet. Whether bookmarklet utilities Utility software is a kind of system software designed to help analyze, configure, optimize and maintain the computer. A single piece of utility software is usually called a utility or tool are stored as bookmarks or hyperlinks, they are designed to add one-click functionality to a browser or web page. When clicked, a bookmarklet performs some function, one of a wide variety such as a search query or data extraction. Usually the applet is a JavaScript JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications. It is primarily used in the form of client-side JavaScript, implemented as an integrated component of the web browser, allowing the development of enhanced user interfaces and dynamic websites program Computer programs are instructions for a computer. A computer requires programs to function, typically executing the program's instructions in a central processor. The program has an executable form that the computer can use directly to execute the instructions. The same program in its human-readable source code form, from which executable.
Contents |
Concept
Web browsers use URIs In computing, a Uniform Resource Identifier is a string of characters used to identify a name or a resource on the Internet. Such identification enables interaction with representations of the resource over a network (typically the World Wide Web) using specific protocols. Schemes specifying a concrete syntax and associated protocols define each for the href attribute of the <a> tag and for bookmarks. The URI scheme In the field of computer networking, a URI scheme is the top level of the Uniform Resource Identifier naming structure. All URIs and absolute URI references are formed with a scheme name, followed by a colon character (":"), and the remainder of the URI called (in the outdated RFCs 1738 and 2396, but not the current STD 66/RFC 3986) the, such as http:, file:, or ftp:, specifies the protocol and required form for the rest of the string. Browsers also implement a prefix javascript: that to a parser is just like any other URI. Internally, the browser sees that the protocol is javascript, treats the rest of the string as javascript code which is then executed, and uses the resulting string as the new page.
The executing script has access to the current page, which it may inspect and change. If the script returns an undefined type rather than a string, the browser will not load a new page, with the result that the script simply runs against the current page content. This permits in-place font size and color changes, for example, without a page reload.
Usage
Bookmarklets are saved and used as normal bookmarks. As such, they are simple "one-click" tools which add functionality to the browser. For example, they can:
- Modify the appearance of a web page within the browser (e.g., change font size, background color, etc.).
- Extract data from a web page (e.g., hyperlinks In computing, a hyperlink is a reference to a document that the reader can directly follow, or that is followed automatically. The reference points to a whole document or to a specific element within a document. Hypertext is text with hyperlinks. Such text is usually viewed with a computer. A software system for viewing and creating hypertext is a, images An image is an artifact, for example a two-dimensional picture, that has a similar appearance to some subject—usually a physical object or a person, text In mathematics, a string is a sequence of symbols that are chosen from a set or alphabet.[citation needed], etc.).
- Query a search engine A web search engine is designed to search for information on the World Wide Web. The search results are usually presented in a list of results and are commonly called hits. The information may consist of web pages, images, information and other types of files. Some search engines also mine data available in databases or open directories. Unlike, with search term(s) provided by previously selected text, or by a dialog box In graphical user interfaces, a dialog box is a special window, used in user interfaces to display information to the user, or to get a response if needed. They are so-called because they form a dialog between the computer and the user—either informing the user of something, or requesting input from the user, or both. It provides controls that.
- Submit the current page to a link validation service, or translation Translation is the comprehension of the meaning of a text and the subsequent production of an equivalent text, likewise called a "translation," that communicates the same message in another language. The text to be translated is called the source text, and the language that it is to be translated into is called the target language; the service.
- Set commonly chosen configuration options when the page itself provides no way to do this.
"Installation of a bookmarklet" is performed by creating a new bookmark, and pasting the code into the URL destination field. Alternatively, if the bookmarklet is presented as a link, under some browsers it can be dragged and dropped onto the bookmark bar. The bookmarklet can then be run by loading the bookmark normally.
History
Steve Kangas of bookmarklets.com coined the term "bookmarklet",[1] which he started to create based on an idea suggested in the Netscape Netscape Communications is a US computer services company, best known for its web browser. When it was an independent company, its headquarters were in Mountain View, California JavaScript Guide. The term favelet was used early on by Tantek Çelik Tantek Çelik, of San Francisco, is a computer scientist of Turkish-American descent[citation needed] and was the Chief Technologist at Technorati.. He is one of the principal editors of several CSS Specifications on 6 September 2001 (personal email). Brendan Eich Brendan Eich (born 1964) is a computer programmer and creator of the JavaScript programming language. He is the Chief Technology Officer at the Mozilla Corporation, who developed JavaScript JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications. It is primarily used in the form of client-side JavaScript, implemented as an integrated component of the web browser, allowing the development of enhanced user interfaces and dynamic websites at Netscape, gave this account of the origin of bookmarklets:
They were a deliberate feature in this sense: I invented thejavascript:URL along with JavaScript in 1995, and intended thatjavascript: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.
—Brendan Eich , email to Simon Willison[2]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 ajavascript:URL.
Example
This example bookmarklet performs a Wikipedia search on any highlighted text in the web browser window. In normal use, the following Javascript would be installed to a bookmark in a browser[3] bookmarks toolbar. From then on, after selecting any text, clicking the bookmarklet performs the search.
|
|
See also
- Greasemonkey Greasemonkey is a Mozilla Firefox add-on that allows users to install scripts that make on-the-fly changes to HTML web page content before it is displayed in the browser . As Greasemonkey scripts are persistent, the changes made to the web pages are executed every time the page is opened, making them effectively permanent for the user running the
- iMacros iMacros is an extension for the Mozilla Firefox web browsers and Internet Explorer which adds record and replay functionality similar to that found in web testing and form filler software. The macros can be combined and controlled via Javascript. Demo macros and Javascript code examples are included with the software. The extension was developed
- Ubiquity (Firefox)
References
- ^ Domain bookmarklets.com registered 9 April 1998
- ^ Willison, Simon (April 10th, 2004). "Email from Brendan Eich". SitePoint SitePoint Pty. Ltd is a Melbourne, Australia based publisher of books and websites. It is best known for its web developer books and online magazine. http://www.sitepoint.com/blogs/2004/04/09/bookmarklets/#comment-3424. Retrieved 22 April 2007.
- ^ Tested on Mozilla Firefox Mozilla Firefox is a free and open source web browser descended from the Mozilla Application Suite and managed by Mozilla Corporation. A Net Applications statistic put Firefox at 24.43% of the recorded usage share of web browsers as of January 2010[update], making it the second most popular browser in terms of current use worldwide after Microsoft', Opera Opera is a web browser and Internet suite developed by the Opera Software company. The browser handles common Internet-related tasks such as displaying web sites, sending and receiving e-mail messages, managing contacts, chatting on IRC clients, downloading files via BitTorrent, and reading Web feeds. Opera is offered free of charge for personal, Safari Safari is a web browser developed by Apple. First released as a public beta on January 7, 2003 on the company's Mac OS X operating system, it became Apple's default browser beginning with Mac OS X v10.3 "Panther." Safari is also the native browser for the iPhone OS. A version of Safari for the Microsoft Windows operating system, first, and Chrome Google Chrome is a web browser developed by Google that uses the WebKit layout engine and application framework. It was first released as a beta version for Microsoft Windows on 2 September 2008, and the public stable release was on 11 December 2008. The name is derived from the graphical user interface frame, or "chrome", of web. Does not work in IE7 or IE8. Original source: Alex Boldt
External links
- Marklets.com - Bookmarklet Directory - The largest user run directory of bookmarklets.
- Bookmarklets.com - One of the earliest collections.
- Jesse's Bookmarklets Site - One of the earliest collections.
- Bookmarklets Boost Web Surfing, PC Magazine, Tara Calishain, 4 March 2004. Retrieved 31 August 2007.
- How to Use Is.Gd/Tiny Url/Bookmarklet-X in Chrome - Effective method for bookmarklets in Google Chrome Google Chrome is a web browser developed by Google that uses the WebKit layout engine and application framework. It was first released as a beta version for Microsoft Windows on 2 September 2008, and the public stable release was on 11 December 2008. The name is derived from the graphical user interface frame, or "chrome", of web, 1 June 2009. Retrieved 18 July 2009
Categories: Web development
LUPA
Do toho za alo byt z ejme, e software o podobne vykonnosti lo vytvo it jako javascriptovy bookmarklet , ktery by mohl fungovat ve vice prohli e ich i ...
and more »
315px x 500px | 109.60kB
[source page]
4 912 bytes when URL encoded does this make it a regular bookmark A supermarklet that uses the Flickr jsonp api to look up the names of full size images Output can be provided as linked HTML images linked HTML images within a LiveJournal LJ cut or forum BBCode Unlike that of the old bookmarklet the output
Dan Grigsby
ue, 26 Jan 2010 16:49:22 GM
Mobile Safari, like any modern browser, supports . bookmarklets. . . Bookmarklets. are compact blurbs of JavaScript saved as a bookmark. When you navigate to a JavaScript bookmark the browser simply executes the JavaScript in the current page. ...
Q. What is meant by bookmarklet blogging?
Asked by Mohamed S - Wed Mar 28 11:41:13 2007 - - 1 Answers - 0 Comments
A. I think it's where you store your favourite links...
Answered by MARCO - Sun Apr 1 03:50:56 2007


