Skip to content

Instantly share code, notes, and snippets.

@jashmenn
Created April 30, 2009 02:32
Show Gist options
  • Save jashmenn/104206 to your computer and use it in GitHub Desktop.
Save jashmenn/104206 to your computer and use it in GitHub Desktop.
// bookmarklet to click delicious recommended tags
javascript:var%20tags%20=%20[];%20var%20result%20=%20document.evaluate("//li[@id=\"save-reco-tags\"]//a/text()%20|%20//li[@id=\"save-pop-tags\"]//a/text()",%20document,%20null,%20XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,%20null);%20for%20(var%20i%20=%200;%20i%20<%20result.snapshotLength;%20i++)%20{%20thisLink%20=%20result.snapshotItem(i);%20tags.push(thisLink.nodeValue);%20}%20document.getElementById('tags').value%20+=%20tags.join('%20');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment