del.icio.us and links

in Ideas and script requests
Subscribe to del.icio.us and links 9 posts, 4 voices



geetarista User

I'm not sure if this is possible, but I was wondering if there is a way to have links hilighted from any page if they are bookmarked in your del.icio.us bookmars. That way you can know if you've already bookmarked something when you come to it.

Thanks!

 
Henrik N Admin

How do you bookmark things to del.icio.us? Doesn't that interface tell you if something's been bookmarked already? I use del.icio.us Bookmarks, and it tells me. I can recommend that extension by the way (though it broke a little since the last version - hope they update it again soon).

A script like you're suggesting is certainly possible, but it would hit the del.icio.us servers for each page load - they might not agree with that. They offer an API, so really, scripts should use that. That API only allows one request per second, so it wouldn't be feasible to check every link (separately). One can request a list of all links, and could cache/update that, I suppose.

 
Jesse Andrews Admin

I would recommend that you downloaded all of your bookmarks (perhaps once every day?), instead of making constant queries

 
Flyne Scriptwright

You could also fetch and save the URLs the first time you use the script, and then alter the bookmarklet you submit with so that it also updates the script's list. You'd also have to alter the page on Del.icio.us.

I'll see if I can't write one to do this.

 
Flyne Scriptwright

I wrote a script for this.

http://userscripts.org/scripts/show/7956

It hasn't been tested extensively, so tell me if there are any bugs.

 
Henrik N Admin

Flyne: You should use their API. This seems to work fine:


GM_xmlhttpRequest({
	method: "GET",
	url: "https://username:password @api.del.icio.us/v1/posts/all?",
	onload: function(result) {
		alert(result.responseText);
	}
});

(Had to put a space before @ to avoid the forum auto-linking as an e-mail address.)

though requesting all posts like that takes 10+ seconds for me with 458 links.

 
Flyne Scriptwright

Alright, thanks.

I'll put that in.

 
geetarista User

Thanks, Flyne. Although it doesn't work for me yet since I have over 5,000 bookmarks. It shows you why this script would really save me some time. ;)

 
Flyne Scriptwright

Whoops, I forget to put in Henrik Nyh's thing.

All fixed now. It should get all the bookmarks, but if it doesn't, tell me. My account has about 10, which makes it harder to test.

Oh, also, if you find any more issues, post them on the script page comments. I'll probably get to them faster that way.

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