Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

digg - add mirrors w/ duggback + bug fixes

Adds duggmirror, duggback, coral, and google caches.

This is my first script. Figuring out base64 images was a pain in the butt.
This is based off of this script, http://userscripts.org/scripts/show/1807.
I added a duggback link and icon.

Update 1: Fixed the bug where you it shows up twice on stories that you have already dugg.
Update 2: Fixed the bug so it looks as it should on the submit page.
Update 3: Mirror links now open in new window/tab thanks to ICDeadPpl
Update 4: Now uses 8080 port for Coral Cache.




Sep 8, 2007
teridon Scriptwright

Nevermind.. seems they fixed it.

 
Sep 6, 2007
teridon Scriptwright

It seems with the latest digg update that they changed something. On subsequent pages (e.g. digg.com/all/page2), there is no "diggs0" div. Instead, it starts at "digg1". To fix this, replace lines 112-117 with:
if (location.href.indexOf("page") != -1) {
// For some reason, subsequent pages don't start from enclosure0, they start from enclosure1
for ( var i = 1; i <= result.snapshotLength; i++ )
{
//GM_log("href is " + result.snapshotItem(i - 1).href);
addIcons ( result.snapshotItem ( i -1 ), true, i );
}
} else {
for ( var i = 0; i < result.snapshotLength; i++ )
{
//GM_log("href is " + result.snapshotItem(i).href);
addIcons ( result.snapshotItem ( i ), true, i );
}
}
}

 
Jun 1, 2007
coollettuce Script's author

Thanks ICDeadPpl, I'll update the script ASAP.

 
Jun 1, 2007
ICDeadPpl User

For opening the mirror links in a new page/tab, add anchor.target = "_blank"; to each mirror segment.

 
Jun 1, 2007
ICDeadPpl User

It seems that Pagerization breaks it, as that it won't put links in pages > 1.

You could comment on this script if you were logged in.