digg - add mirrors w/ duggback + bug fixes

By coollettuce Last update Jun 6, 2007 — Installed 1,596 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0

Archived Comments (locked)

Subscribe to Archived Comments 6 posts, 4 voices

Jesse Andrews Admin

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

 
teridon Scriptwright

Nevermind.. seems they fixed it.

 
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 );
}
}
}

 
coollettuce Script's Author

Thanks ICDeadPpl, I'll update the script ASAP.

 
ICDeadPpl User

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

 
ICDeadPpl User

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

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