Created
August 14, 2012 08:13
-
-
Save davestewart/3347448 to your computer and use it in GitHub Desktop.
JavaScript favelet to set Font Squirrel listing page sample text
This file contains hidden or 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
javascript:function update(i, e){e = $(e);var src = e.attr('src').replace(/prepend=[^&]+/, 'prepend=' + str);e.attr('src', src);}var str = prompt('Enter sample text:', $.cookie('sample text') || 'The quick brown fox jumped over the lazy dog');if(str){$.cookie('sample text', str); $('img.listing_font_image').each(update);}void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment