DTA! - Photobucket

By InsaneNinja Last update Mar 19, 2008 — Installed 3,646 times.

Re-code

in
Subscribe to Re-code 1 post, 1 voice

Avindra V.G. Scriptwright

How does this:

var selectedLinks = document.evaluate("//a[contains(@href, 'action=view&current=')]",
        document.getElementById('pageContainer'), null,6, null),
	i=0;

while (imageLink=selectedLinks.snapshotItem(i++)) {
    newLink = document.createElement('a');

	with(newLink) {
		href=imageLink.href.replace('?action=view&current=', '');
		style.display='none';
		title='DTA';
	}

	with(imageLink)	{
		parentNode.appendChild(newLink);
		href += '&';
	}
}

look?

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