Snippets

This page is for useful jQuery snippets.

Special:WhatLinksHere history link
Description: Add a "hist" link to Special:WhatLinksHere.

External links in Sidebar in new window
Description: Open external links in the Sidebar in a new window by adding target="_blank" to them.

Hide prefix in Special:PrefixIndex
Description: Adds a checkbox to the form on Special:PrefixIndex. When the form is submitted with this checkbox ticked, the prefix value will be hidden in the output (see also 27131).

How to use
You can use these snippets in extensions, existing scripts and any other place where jQuery is available and the page is ready for javascript manipulation.

MediaWiki:Common.js
You can use the following frame for snippets if you use MediaWiki:Common.js