Skip to content

Instantly share code, notes, and snippets.

@andersonvom
Created March 24, 2014 16:16
Show Gist options
  • Save andersonvom/9743531 to your computer and use it in GitHub Desktop.
Save andersonvom/9743531 to your computer and use it in GitHub Desktop.
Javascript to remove all extict distro lines from the linux SVG timeline.
var remove_extict = function() {
var line = null;
var dot = null;
var num_extinct = 0;
do {
try {
line = $('[marker-end]');
dot = $('#'+line.id.replace('__line', '__dot'));
line.remove();
// dot.remove()
console.log('Removed ' + line.id);
num_extinct++;
} catch (exc) {
console.log(num_extinct + ' linux distros have passed away. :(');
}
} while (line != null)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment