Skip to content

Instantly share code, notes, and snippets.

@tron1point0
Created March 2, 2012 21:06
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 tron1point0/1961403 to your computer and use it in GitHub Desktop.
Save tron1point0/1961403 to your computer and use it in GitHub Desktop.
dotlan functions
// Raw SVG: http://evemaps.dotlan.net/svg/Branch.dark.svg
function system(name,fn) {
document.getElementsByClassName('ss').each(function(elem){
if(elem.textContent == name) fn.call(elem.parentElement)
});
}
system('D4R-H7',function(){this.getElementsByClassName('s')[0].style.fill = '#000000'});
system('D4R-H7',function(){this.getElementsByClassName('st')[0].textContent = 'sup.'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment