Skip to content

Instantly share code, notes, and snippets.

@bernatfortet
Last active April 26, 2016 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernatfortet/f81d6752d176e95c29ce to your computer and use it in GitHub Desktop.
Save bernatfortet/f81d6752d176e95c29ce to your computer and use it in GitHub Desktop.
// Step 1
// First, add a bookmarklet to add jQuery to the given page. For that bookmarlet add the following code
// javascript:(function ()%7B%0A if(window.jQuery)%7B%0A alert('jQuery already loaded.');%0A %7Delse%7B%0A var script = document.createElement("script");%0A script.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";%0A document.head.appendChild(script);%0A alert('jQuery Loaded.');%0A %7D%0A %0A%7D())
//(more info here: http://www.learningjquery.com/2006/12/jquerify-bookmarklet)
//Step 2
//Run This code in the console
$('.glyph').each(function(){
var glyphName = $(this).find('.glyphName').text();
var liga = $(this).find('.liga');
liga.val( glyphName )
});
//Step 3
//go to the first icon name. focus the textbox and then press "TAB" until you reach the end of the page. It might take a couple of minutes and your computer might go really slow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment