User:Blue-Haired Lawyer/Footnote popups

From OpenWetWare
Jump to: navigation, search

Footnote Popups is a relatively simple Javascript which floats a small box with a footnote's content on top of a footnote link whenever a user hovers their cursor over it.


To install the script just add the following line to your User:<Your User Name>/<Your Skin Name>.js file. (Mine is User:Blue-Haired Lawyer/monobook.js):

importScript("User:Blue-Haired Lawyer/footnote popups.js");

or if you want to use the script on a MediaWiki wiki other than English Wikipedia:


Like other Javascripts you'll have to purge your browser cache, before the changes take effect.

Programming stuff

Footnote Popups only works with Ævar Arnfjörð Bjarmason's Cite extension (<ref> style footnotes), and needs there to be a <references/> tag somewhere in a page (these's one in the {{reflist}} template) in order to read the footnotes.

I've tested the script in Firefox 2 and 3, Internet Explorer 6 and 7, and Safari 3. If it works / doesn't work for other browsers, please let me know. — Blue-Haired Lawyer 12:34, 22 February 2009 (UTC)

I've decided to stop support for Internet Explorer 6. I find it difficult to find a computer which still runs it, Microsoft have made it impossible to debug JavaScript errors on it and frankly, and perhaps most importantly, it's a bit shit. — Blue-Haired Lawyer 11:38, 10 March 2009 (UTC)