Find and link text to a given URL in a given set of elements.
JavaScript CoffeeScript
Latest commit 1d719e7 Aug 2, 2013 @MatthewCallis URL added.
Failed to load latest commit information.
LICENSE.txt jQuery Plugin Updates Aug 2, 2013
jquery.linkup.coffee Get started. Feb 11, 2012
jquery.linkup.js
jquery.linkup.min.js Get started. Feb 11, 2012
linkup.jquery.json URL added. Aug 2, 2013
readme.markdown jQuery Plugin Updates Aug 2, 2013

readme.markdown

LinkUp

I needed to link many strings to various URLs but I didn't want to have to continuously update the page or keep track of the URLs in the database, and in some cases I didn't want the text linked in the visible source.

Examples

Find and link BSNES and byuu to the appropriate page.

$('p').linkup([
    { find: "BSNES",        replace: 'http://byuu.org/bsnes/' },
    { find: /byuu(-san)?/,  replace: 'http://byuu.org/' }
]);

Find and link SNES to the proper page, but don't link things in the black list.

$('div').linkup([
    { find: "SNES", replace: 'http://superfamicom.org/' }
], { blacklist: 'html,head,style,title,link,meta,script,object,embed,iframe,pre,a,h1,h2,h3' });

Change Log

  • 0.1.0: Initial Commit