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.
URL Parser
Parses URLs and provides easy access to information within them, such as the protocol, host, port, the segments that make up the path and the various query string values. The parser is based on the Regex URI parser by Stephen Levithian - http://blog.stevenlevithan.com/archives/parseuri.
// Get the domain name (host) from the current page URL
jQuery.url.attr("host");
// Get the query string value for 'item' for the current page
jQuery.url.param("item");
// Get the second segment of the URL of the current page
jQuery.url.segment(2);
// Get the protocol of a manually passed in URL
jQuery.url.setUrl("http://allmarkedup.com/").attr("protocol") // returns 'http'
