Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

external link


n/a

jQuery newWin Plugin

jQuery newWin Plugin

$.newWin() takes a set of links (usually the entire document's worth) and if they are external it sets them to open in a new window. This way you can avoid having to use the target="_blank" attribute if you want your XHTML to be valid. Links in the same domain are left alone, as well as non-HTTP links.

Example to filter all links in the document:

$(document).ready(function(){
    $('a').newWin();
});

Example just for links inside a certain element:

$(document).ready(function(){
    $('#sidebar a').newWin();
});

Companion Wordpress plugin is attached under the 1.0.1 release. Thank you to http://www.theflow.cc/.

ExternalLink

This plugin add an icon opening a new window to each link with many options :
- apply_local : boolean to apply plugin on internal link
- apply_img : boolean to apply plugin on image-link
- apply_favicon : boolean to use favicon if available
- default_img : image used if favicon is not available
- img_title : value of "title" attribut of the new icon
- img_class : value of "class" attribut of the new icon
- img_alt : value of "alt" attribut of the new icon