Delicious.com - Slash Tag Emboldener

By murklins Last update Oct 21, 2008 — Installed 71 times. Daily Installs: 0, 0, 1, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
// ==UserScript==
// @name Delicious.com - Slash Tag Emboldener
// @description Makes tags that have forward slashes in them stand out better in Delicious.
// @include http://delicious.com/*
// ==/UserScript==


(function(){
  
  var main_node, tag_links;  
  main_node = document.getElementById("bd");
  tag_spans = document.evaluate("//span[contains(@class,'tag-chain-item-span')]", main_node, null,
                                XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
                                null);
                                  
  for (var s = 0; s < tag_spans.snapshotLength; s++) {      
    tag_s = tag_spans.snapshotItem(s);    
    if (tag_s.innerHTML.indexOf("/") != -1) {  
      tag_s.parentNode.style.color = "#3274D0";  
    	tag_s.parentNode.style.fontWeight = "bold";     
    }
  }
  
})()