Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thinkswan/jquery-twitter-autolink

A jQuery plugin that automatically links URLs, email addresses, mentions, and hashtags in embedded tweets.
https://github.com/thinkswan/jquery-twitter-autolink

javascript jquery plugin twitter

Last synced: 5 days ago
JSON representation

A jQuery plugin that automatically links URLs, email addresses, mentions, and hashtags in embedded tweets.

Awesome Lists containing this project

README

        

# jquery-twitter-autolink

This plugin automatically creates links for URLs, email addresses, @-mentions, and hashtags in embedded tweets.

## Features

- Rewrites links in plaintext tweets as appropriate links.

## Installation

Include the plugin in your page:

## Usage

Call the `twitter_autolink()` function on any element containing a tweet.

$().twitter_autolink();

## Examples

Consider the following element on your page:

Check out this cool new stock video site: dissolve.com. #video #4k /cc @dissolve

Use the plugin on this element:

$(".tweet").twitter_autolink();

And the element will be rewritten like this (note that `%23` is the URL-encoded representation of `#`):

Check out this cool new stock video site: dissolve.com. #video #4k /cc @dissolve

## Support

If you need support for this plugin, please email me at [[email protected]](mailto:[email protected]).

## License

[MIT License](https://github.com/thinkswan/jquery-twitter-autolink/blob/master/LICENSE)