fixAnchorPing

By Karl Hansen Last update Jan 20, 2006 — Installed 1,433 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 2 posts, 2 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Junk Blocker Scriptwright

Much simplified version:

(function() {

var tags = document.getElementsByTagName("a");

var numofAnchorTags = tags.length;

var x = 0;

while(x < numofAnchorTags) {

try {

if (tags[x].hasAttribute('ping')) tags[x].removeAttribute('ping');

}

catch(e) {}

x++;

}

})();

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel