Help:Tips and tricks/Bookmarklets

Hello, you have come here looking for the meaning of the word Help:Tips and tricks/Bookmarklets. In DICTIOUS you will not only get to know all the dictionary meanings for the word Help:Tips and tricks/Bookmarklets, but we will also tell you about its etymology, its characteristics and you will know how to say Help:Tips and tricks/Bookmarklets in singular and plural. Everything you need to know about the word Help:Tips and tricks/Bookmarklets you have here. The definition of the word Help:Tips and tricks/Bookmarklets will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofHelp:Tips and tricks/Bookmarklets, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
See also: Wiktionary:Bookmarklets - some supplemental bookmarklets.

What is a bookmarklet? Usually, it is a piece of JavaScript that is meant to be pasted into your browser's url bar. Instead of cutting-n-pasting it every time, it is useful to create a bookmark (or favourite) containing the code. That is, instead of making a bookmark pointing to, for instance, http://en.wiktionary.org, point it to any of the following codes. For them to work, make sure JavaScript is enabled in your browser.

This does two things:

  • When on any webpage, select a word and then hit the bookmarklet. It should take you to the Wiktionary page for that word. This may or not work, depending on the website. It should definitely work on any Wikimedia site.
  • If no word is selected, a pop-up window appears, letting you enter one instead.

For Internet Explorer:

javascript:(function(){q=document.selection.createRange().text;if(!q)q=prompt('Wiktionary:',''); if(q)location.href='http://en.wiktionary.org/w/wiki.phtml?search='+escape(q);})()

For Mozilla Firefox:

javascript:(function(){q=window.getSelection().toString();if(!q)q=prompt('Wiktionary:'); if(q)location.href='http://en.wiktionary.org/w/wiki.phtml?search='+encodeURI(q);})()

For Safari:

javascript:void(q=prompt('Wiktionary:',getSelection())); if(q)void(location.href='http://en.wiktionary.org/w/wiki.phtml?search='+escape(q))

NB: a browser-agnostic version can and should be derived from the code at http://en.wikipedia.orghttps://dictious.com/en/Bookmarklet#Example instead.

On Wiktionary, the following bookmarklets will change all wikilinks on a page to any of the variants in the url. These should work in most browsers.

Edit page

Example: will change a link language to language?action=edit.

javascript:(function(){var x,i; x=document.links;for(i=0;i<x.length;++i) { if (https://dictious.com/en/.test(x.href)) {z=x.href.match(/+$/);x.href=%22https://dictious.com/en/%22+z+%22?action=edit%22; };}})();
History page

Example: will change a link language to language?action=history.

javascript:(function(){var x,i; x=document.links;for(i=0;i<x.length;++i) { if (https://dictious.com/en/.test(x.href)) {z=x.href.match(/+$/);x.href=%22https://dictious.com/en/%22+z+%22?action=history%22; };}})();
Watch

Example: will change a link language to language?action=watch.

javascript:(function(){var x,i; x=document.links;for(i=0;i<x.length;++i) { if (https://dictious.com/en/.test(x.href)) {z=x.href.match(/+$/);x.href=%22https://dictious.com/en/%22+z+%22?action=watch%22; };}})();
Delete (for sysops)

Example: will change a link language to language?action=delete.

javascript:(function(){var x,i; x=document.links;for(i=0;i<x.length;++i) { if (https://dictious.com/en/.test(x.href)) {z=x.href.match(/+$/);x.href=%22https://dictious.com/en/%22+z+%22?action=delete%22; };}})();
Protect (for sysops)

Example: will change a link language to language?action=protect.

javascript:(function(){var x,i; x=document.links;for(i=0;i<x.length;++i) { if (https://dictious.com/en/.test(x.href)) {z=x.href.match(/+$/);x.href=%22https://dictious.com/en/%22+z+%22?action=protect%22; };}})();