PESWiki:Tools/Browser tools

From PESWiki

<< PESWiki:Tools

PESWiki:Tools intended to enhance browser functions as related to PESWiki; contains bookmarklets, user scripts, browser extensions, etc.

Table of contents

Cross-Browser

This bookmarklet searches PESWiki for highlighted text.

Description

This bookmarklet allows you to quickly search for a highlighted or entered term using a bookmark. The scripts support Mozilla/Mozilla Firefox, Opera and Internet Explorer.

Installation instructions

  1. Create a "new bookmark" / "new favorite"
  2. Name "PESWikiLook up"
  3. Copy the javascript code below into the location space.
  4. Click "Ok"
"PESWikiLook up" Code (Firefox and Netscape)

javascript:q=document.getSelection();for(i=0;i%3cframes.length;i++){q=frames[i].document.getSelection();if(q)break;}if(!q)void(q=prompt('Type%20in%20what%20you%20want%20to%20look%20up%20on%20PESWiki',));if(q)location.href='http://peswiki.com/index.php/Special:Search?search='+escape(q)

"PESWikiLook up" Code (IE 6)

javascript:q=(document.frames.length?:document.selection.createRange().text);for(i=0;i<document.frames.length;i++){q=document.frames[i].document.selection.createRange().text;if(q!=)break;}if(q==)void(q=prompt('Enter text of which you want to look up on Wikipedia. You can also highlight a word and Click on PESWiki Lookup',));if(q)location.href='http://peswiki.com/index.php/Special:Search?search='+escape(q)

Usage

To use the bookmarklet, highlight a word or phrase on any page and click on the bookmark. Alternately, click on the bookmark and enter a word or phrase at the prompt. This script works in both Internet Explorer and Mozilla Firefox. To use it in Opera, you may want to add the bookmark to the personal panel.

Mozilla extensions

Wiki Toolbar

The extension (version 0.8.* or higher) works with all websites that use the MediaWiki software.

  • Supports all standard MediaWiki formatting commands.
  • Formatting works on selected text or without any selection.
  • Commands available via toolbar and context menu.
  • Dialog based creation of tables, image links and links.
  • Locale specific templates with catagory grouping. (New!)
  • Site side template packs, that are for a certain site. (New!)
  • Either select large icons or small icons. (New!)
  • All WikiMedia wikis are preconfigured
  • User defined wikis and formats.
  • Fast switching between multiple Wikis.
  • Open all MediaWiki special pages from toolbar.

FoxClocks

FoxClocks 
The FoxClocks (https://addons.mozilla.org/extensions/moreinfo.php?id=1117) extension allows you to have one or more customized clocks displayed in the status bar or toolbar of the Firefox browser. Helpful to have one set to UTC/PESWiki time, and/or to the time zone of frequent collaborators.

Document Map

By James Graham

Description
Adds a sidebar (hidden when not activated) which shows a hierarchical list of headings on a page.
Installation
Direct link to install extension (http://releases.mozilla.org/pub/mozilla.org/extensions/document_map/document_map-0.5-fx.xpi)
  1. Browse to the Document Map extension page (https://addons.mozilla.org/firefox/475/) on Mozilla Add-ons
  2. Click the "Install now" link.

If a yellow bar appears under your toolbars:

  1. Click the "Edit options" button on the yellow bar.
  2. In the box that pops up, click "allow" to let you install content from that site.
  3. Click the "Install now" link again to pop up an extension installation box.
  4. Wait a few moments until the "Install now" button becomes clickable, and click it to automatically install.
  5. The plugin will be installed the next time you start your browser (it must be closed to finished installing).

Usage

In Firefox, activate the sidebar through the menu bar (View >> Document Map). Click on a heading in the list to scroll to that heading on the page.
Caution: the default shortcut ([ALT+O]) to show and hide the Document Map is the same shortcut used by Wikipedia to log out. Pressing [ALT+O] with a Wikipedia page open will log you out, but have no effect on the Document Map.

Microsoft Internet Explorer

URL shortcut

Description

Allows the user to go to a PESWiki article from the Windows Internet Explorer address bar by typing "pw Article_Name".

Instructions

  1. Open a new text file in your favourite text editor.
  2. Copy and paste the code into it exactly as written.
  3. Save the text file as "PESWiki.reg" (make sure it's filename extension is ".reg", not ".reg.txt").
  4. Note: Windows 98 users and others using version 4 of the Registry Editor must instead input the 1st line as "REGEDIT4", without the quotes.
  5. Double-click on the file you just saved to add the information to the Windows registry.
  6. Click Yes to proceed if it asks you if you want to continue.

Code

See instructions above.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\pw]
 @="http://peswiki.com/index.php/%s"

Usage

In the address bar, type "pw Article_name" without quotes into the address bar, where Article_name is the name of the article you wish to navigate to.
Related
Advertisement