Wouldn't it be easier if...
|
|
Wouldn't it be easier if you just:
... which is the REAL address (no digg.com/blahfoo nonsense)? I was hoping that was what this script did :). |
|
|
I thought about doing that, but it's too failure prone. When you view the comments page, the Digg anchor doesn't make use of the title attribute. Also, there is the possibility of Digg anchors residing within comments themselves that may need to be parsed and deciphered. Finally, Digg may arbitrarily decide to change the contents of the title attribute. To handle these edge cases, the script would need to grow in complexity. I prefer to utilize a simple AJAX call to the Digg API to deal with the HREF anchor attribute directly. |
