Created
September 12, 2012 03:51
-
-
Save maxjacobson/3704182 to your computer and use it in GitHub Desktop.
Some javascript/jquery(?) to add a class to certain tags in my pinboard linkroll widget so i can make them red
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$( '.pin-tag').html(function( index, oldHtml ) { | |
if(this.outerHTML == '<a class="pin-tag" href="http://pinboard.in/u:maxjacobson/t:max_jacobson">max_jacobson</a>') { | |
return '<a class="pin-tag extra-hot" href="http://pinboard.in/u:maxjacobson/t:max_jacobson"><strong>max_jacobson</strong></a>' | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment