User:R'n'B/dabcolorizer

dabcolorizer.js is a script to allow a user to highlight links to disambiguation pages while viewing any Wikipedia article. Mercury is a disambiguation page; if you have installed the script and the style definitions correctly, that link should be highlighted.

Installation
First, edit your common.js file.

To run dabcolorizer automatically on all pages every time they are loaded, insert the following line into this file:

Or, to install a Toolbox link so that you can run the script only on selected page, insert the following line instead:

Save changes and follow the instructions to clear your browser cache.

Important: Nothing will happen until you complete the next step.

Second, edit your common.css file to create the styles needed to display the disambiguation links. These are the ones I am currently using, but (if you know what you are doing) you can modify these according to your own aesthetic preferences:

.dabpagelink { /* incorrect links to disambiguation pages */ color: #C04800; } .intdablink {  /* intentional links to disambiguation pages */ color: #C04800; background-color: #DADEF2; }

Once you save these changes and load a new page, you should see links to disambiguation pages in a distinctive color.

Compatibility
If you are able to test on a browser not listed below, please let me know the results.


 * Works on Mozilla Firefox 4.
 * Works on Google Chrome.
 * Works on Microsoft Internet Explorer 8.
 * Appears to work, possibly with some problems, on Opera.

Cautions
This is an alpha release; there may be bugs!

The highlighter is invoked after the page text has been loaded; depending on server load and page size, there may be a significant delay (10 - 20 seconds or even more) before the highlighting appears.

Feedback
Please leave any messages on my talk page.