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.

URL


jRedirect

A jQuery script used to redirect to another url.

Download:

jRedirect 3.2

Xpnd.it!

Expand short URLs using http://xpnd.it

It supports more than 500 URL shortening services at a blazing-fast speed.

jQuery longUrl: Uniform Resource Elongator

jQuery Long Url uses the longurlplease.com short URL lengthening API to expand short URLs from at least 80 services, including bit.ly, is.gd, tinyurl.com and more!

And not only has jQuery Long Url been written to take advantage of the longurlplease.com API “batch” ability, where up to ten URLs can be lengthened per request, but it can optionally use any lengthening service, supporting any URL-per-request “batch” limitations, which minimizes the number of external requests made for faster performance.

Full documentation, source, and examples are available on benalman.com.

UrlFavicon

UrlFavicon

Description

My first plugin, I decided to make a plugin which prepends the favicons of websites linked to on the page to their respective parent elements.

So, for example if you had the following;

<a href="http://www.google.com/">Google</a>

Then the net result after calling the plugin would have the favicon for Google prepended internally as an image tag to the link, or if the favicon couldn't be found then a fallback would be used instead.

However, me being me led me to expand upon this quite a bit more with quite a few configuration possibilities included.

Usage

Assuming you want to apply the favicon to every link on your site, with the default configuration then the below will suffice. Please note that all Urls which are found by the plugin must begin with "http".

$('a').urlfavicon();

But if you want to change some settings, then perhaps these could interest you...

jQuery urlInternal: Easily test URL internal-, external-, or fragment-ness

jQuery urlInternal allows you to easily test internal-, external-, or fragment-ness for any relative or absolute URL. Includes element filtering methods and pseudo-selectors.

jQuery Append Format

Simple plugin to append a format to an URL. Like adding '.json', '.html', '.js' at the end of the passed url.

Fork me at: http://github.com/edgarjs/jquery_append_format

urlParser

This plugin contains urlParser class and $.urlParser object of this class suitable for parsing URLs.

Properties
* $.urlParser.protocol. Protocol part (i.e. "html:", "file:", "ftp:")
* $.urlParser.host. Host part (i.e. "jquery.com")
* $.urlParser.path. Path (i.e. "/mysection/mypage.html")
* $.urlParser.parameters. Parameters list of type Object
* $.urlParser.anchor. Anchor part (i.e. "#start")

Methods

* $.urlParser.parse(string url). Parses passed URL, changing protocol, host, path, parameters, anchor accordingly. Returns object of urlParser class.
* $.urlParser.assemble(). Assembles URL string from parts and returns it.
* $.urlParser.setBaseUrl(string url). Changes URL base.
* $.urlParser.resetBaseUrl. Reset url base to current document URL.

Examples
* $.urlParser.parse('http://jquery.com/docs/').host will return "jquery.com"
* $.urlParser.parse('/docs/').host will return current host

jq-shorten

This plugin allows you to easily shorten URLs with jQuery. Currently supporting only bit.ly, but I hope to include more services in the future!

jQuery URL Utils plugin: Query String, Fragment and more

This plugin has been superseded by both the jQuery BBQ plugin and the jQuery urlInternal plugins. Be sure to check those out, because they’re newer and way cooler! And also because this plugin is no longer getting any updates or support!

jQuery BBQ enables simple, yet powerful bookmarkable #hash history via a cross-browser window.onhashchange event. In addition, jQuery BBQ provides a full jQuery.deparam() method, along with both fragment and query string parse and merge utility methods.

jQuery urlInternal allows you to easily test internal-, external-, or fragment-ness for any relative or absolute URL. Includes element filtering methods and pseudo-selectors.

SEO Friendly URL

This is a jQuery plugin that makes your titles or url's SEO friendly, suitable for use as hyperlinks, in CMS, blog or etc.

The "friendurl" method takes 1 or 2 arguments:

  • id - The id of container where returned value will be placed.
  • divider - (optional) The character used for separation of words into the URL. Default value is '-'