/    Sign up×
Community /Pin to ProfileBookmark

I made a simple Javascript bookmarklet, do you like it?

I made a Javascript bookmarklet (browser bookmark) that allows you to share links on my website, [url]http://linksku.com[/url]
Linksku is very similar to Digg, Reddit, Delicious, etc. The only difference is that Linksku uses Likes instead of Diggs to determine which links are displayed on the homepage.

Here’s the bookmarklet:

[CODE]javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,l=d.location,e=encodeURIComponent,u=”http://linksku.com/submit?url=”+e(l.href);a=function(){if(!w.open(u,”t”,”toolbar=0,resizable=1,scrollbars=1,status=1,width=550,height=550″)){l.href=u}};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}void (0);[/CODE]

And the formatted version:

[CODE]javascript: var d = document,
w = window,
e = w.getSelection,
k = d.getSelection,
l = d.location,
e = encodeURIComponent,
u = “http://linksku.com/submit?url=” + e(l.href);
a = function () {
if (!w.open(u, “t”, “toolbar=0,resizable=1,scrollbars=1,status=1,width=550,height=550”)) {
l.href = u
}
};
if (/Firefox/.test(navigator.userAgent)) {
setTimeout(a, 0)
} else {
a()
}
void(0);[/CODE]

Please try it out and tell me if it works or not. I was testing it earlier today and found out it doesn’t work properly in FireFox, I want to be sure that it works for everyone. Thanks!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@linkskuauthorJul 17.2011 — Any suggestions?
×

Success!

Help @linksku spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...