
4.15.2006
A Better Digg Bookmarklet
I've made a better digg.com bookmarklet that automagically adds the page's title to your posts. I had found one very alike to this one but I did not remember where so I 'remade' it.
Well, just drag this to your browser toolbar:
digg it!
And you will finally have a Digg bookmarklet that copies the page's title. Much better than the ones I've seen around.
Cheers!
Comments:
Links to this post:
<< Home
Good job!
I modified it to open another window to digg.
void(open('http://digg.com/submit?phase=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)));
I modified it to open another window to digg.
void(open('http://digg.com/submit?phase=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)));
Great way to digg, thank you!
I modified the code to post the selected text as description:
javascript:var notes='';if(window.getSelection)notes=window.getSelection();else if(document.getSelection)notes=document.getSelection();else if(document.selection)notes=document.selection.createRange().text;if(notes.length>350)notes=notes.substring(0,349);location.href='http://digg.com/submit?phase=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&bodytext='+encodeURIComponent(notes)
I modified the code to post the selected text as description:
javascript:var notes='';if(window.getSelection)notes=window.getSelection();else if(document.getSelection)notes=document.getSelection();else if(document.selection)notes=document.selection.createRange().text;if(notes.length>350)notes=notes.substring(0,349);location.href='http://digg.com/submit?phase=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&bodytext='+encodeURIComponent(notes)
here is another one i found. apparently this one is universal for other browsers. it worked for me so try it if this one doesnt work for u.
here is the url to the link
http://skattertech.com/2006/06/digg-this-bookmarklet/
here is the url to the link
http://skattertech.com/2006/06/digg-this-bookmarklet/
Simplified the code a bit, modified to open in a new window no matter what:
javascript:(function(){x='http://digg.com/submit?phase=2%20&url='+location.href+'&title='+encodeURIComponent(document.title);if(document.getSelection()){x=x+'&bodytext='+encodeURIComponent(document.getSelection())};window.open(x,'digger','width=925,height=600,toolbar=yes,location=yes,status=0,scrollbars=yes')})()
The only problem I've encountered so far is that for some reason the window doesn't have focus when it opens.
javascript:(function(){x='http://digg.com/submit?phase=2%20&url='+location.href+'&title='+encodeURIComponent(document.title);if(document.getSelection()){x=x+'&bodytext='+encodeURIComponent(document.getSelection())};window.open(x,'digger','width=925,height=600,toolbar=yes,location=yes,status=0,scrollbars=yes')})()
The only problem I've encountered so far is that for some reason the window doesn't have focus when it opens.
Okay, I found the problem thanks to a particularly relevant article, and I also found a "remote digg" URL via the New York Times Web site. So, presenting the ultimate Digg bookmarklet (works like Facebook's):
javascript:(function(){x='http://digg.com/remote-submit?phase=2%20&url='+location.href+'&title='+encodeURIComponent(document.title);if(document.getSelection()){x=x+'&bodytext='+encodeURIComponent(document.getSelection())};setTimeout("y.focus()",1000);y=window.open(x,'digger','width=650,height=450,toolbar=0,location=0,status=0,scrollbars=yes')})()
javascript:(function(){x='http://digg.com/remote-submit?phase=2%20&url='+location.href+'&title='+encodeURIComponent(document.title);if(document.getSelection()){x=x+'&bodytext='+encodeURIComponent(document.getSelection())};setTimeout("y.focus()",1000);y=window.open(x,'digger','width=650,height=450,toolbar=0,location=0,status=0,scrollbars=yes')})()
I rewrote a bookmarklet for del.icio.us that I had. This bookmarklet will open a new window to go to digg.
javascript:void window.open('http://digg.com/submit?phase=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));
javascript:void window.open('http://digg.com/submit?phase=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));
However mean your gold in wow life is,buy wow gold meet it and live it ;wow gold cheap do not shun it and call it hard names.It is not so bad as you are.It looks poorest when you are richest.The fault-finder will find faults in paradise.wow gold kaufen love your life,poor as it is.maple meso You may perhaps have some pleasant,thrilling,maplestory power leveling glorious hourss,even in a poor-house.The setting sun is reflected from the windows of the alms-house as brightly as from the rich man's abode;the snow melts before its door as early in the spring.sell wow gold I do not see but a quiet mind may live as contentedly there,cheap mesos and have as cheering thoughts,as in a palace.The town's poor seem to me often to live the most independent lives of any.May be they are simply great enough to billig wow gold receive without misgiving.Most think that they are above being supported by the town;powerlevel but it often happens that buy maplestory mesos they are not above supporting themselves by dishonest means.which should be more disreputable.Cultivate poverty like a garden herb,like sage.Do not trouble wow powerleveln yourself much to get new things,maple mesos whether clothes or friends
Post a Comment
Links to this post:
<< Home




