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.

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