Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/thinkswan/jquery-twitter-autolink
- Owner: thinkswan
- License: mit
- Created: 2013-09-20T04:11:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-20T05:35:57.000Z (about 11 years ago)
- Last Synced: 2023-03-11T18:28:17.098Z (over 1 year ago)
- Topics: javascript, jquery, plugin, twitter
- Language: JavaScript
- Homepage: https://plugins.jquery.com/twitter.autolink/
- Size: 145 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)