Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
digg - add mirrors
Adds links to DuggMirror, Coral Cache, DuggBack and Archive.org wayback machine to every story. What separates this from the rest is that it's better integrated with digg: it's displayed beneath every digg-button.
Adds links to DuggMirror, Coral Cache, DuggBack and Archive.org wayback machine to every story on digg.
What separates this from the rest is that it's displayed beneath every digg-button and thus better integrated with digg.

- Additional features:
- Automatically checks whether the story is available, and link to DiggMirror if not.
- Compatible with Opera.
- Auto-update (when User Script Updates is installed)
- Compatible with Add Digg Control.
- Blazing fast
|
|
Ayush: the script is compatible again with opera, although automatic mirror selection won't work, since it requires GM_xmlhttpRequest, which Opera doesn't provide. |
|
|
Not true. See: http://my.opera.com/community/forums/findpost.p... |
|
|
Bug fixed, thanks jackyyll |
|
|
Also, lines 128 and 134 need the same updates. |
|
|
Since the new comment system adds /all to the url, the mirror links don't work in the story if you have all comments expanded. To fix this line 123 should read: dugglink= window.location.href.replace(/\/all/, ''); |
|
|
Hey, Sorry, just one more problem, you don't have the @identifier tag in your header comments anymore, the updates script uses that string and it is reporting an error when checking your script because it's missing. |
|
|
Cool stuff. I don't think your update stuff is set up quite right though. You need to be using an unsafeWindow to request the update checking, and your date needs to subtract one from the month because JS uses 0 to 11 for the month argument. You can take a look at my script if you want, I just finished testing out my changes to use UserScriptUpdates and got it working right. |
|
|
Also, the order is based on install (not update) order. So if yours was before mine and you wanted it to be after, you'd remove your script (so it is no longer in the list at all) then reinstall it. Just updating a script doesn't change the ordering. Obviously this would be an advanced thing, but honestly, I don't imagine too many people would care either way and those that would care can easily figure out how to fix it. :) |
|
|
I've found that the order listed in the manage scripts dialog is the order of execution. For instance, if my script is above yours in the list, your mirror links will have my #digg_link marker, but if yours is first, they won't. |
|
|
Daniel, I believe this must be possible, however we have to ensure that my script executes after yours, and I've got no idea how to do that. |
|
|
I like this mirror script better than many of the others I have tried.
Do you think there is any chance you could tweak your script to be able to instrument my Add Digg Control widget with the links? That would be really kewl for me since sometimes, I open a link in the background and then when I get to that tab to read it, I see the FF error page with my ADC widget on it. If I had the mirror buttons right there, it would be nifty! :) I'm sure I could do it myself, but rather than copying your code I thought I'd ask to see if it could be part of your script first. |
|
|
sweet...thx |
|
|
w00t! I was install number 3000! :-) |
|
|
Like I said, Firefox can be annoying. What may be fast on my system can be the exact opposite on another system. I have no idea how to reliably test javascript speed. |
|
|
SpookeyET: I timed our scripts using the exact same method, and according to me, my script runs 30-50ms faster than yours, except on the story pages, where they have the exact same speed.
|
|
|
I timed your script and my script using Firebug's timer feature ( unsafeWindow.console.time("name"); unsafeWindow.console.timeEnd("name"); ). On avery, my script runs 50-60ms faster. |
|
|
I think I fixed the speed problem now. |
|
|
SpookyET: although xpath might be slower, my overall code now is faster than yours, so the xpath probably isn't that much of an issue. |
|
|
XPATH is horribly slow. Google around for benchmarks. It's ungodly slow. I don't use it unless I really have to. |
|
|
The script is now as fast as the one SpookyET made. |
|
|
My script is faster: http://userscripts.org/scripts/source/7902 |
|
|
Now mirrors are also added to the #1 stories on a users page. |
|
|
The mirrors now follow your digg preferences to open in a new tab or not. |
|
|
surplus: the icons have the same size as all the other scripts that add mirrors to digg. Plus if the icons would be bigger, it wouldn't fit on one line anymore. |
|
|
Works and checked safe. Icons a little small/close together. |
You could comment on this script if you were logged in.
