Results 1 to 2 of 2

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

  1. #1
    Join Date
    Sep 2010

    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, http://linksku.com
    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:
    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);
    And the formatted version:
    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 {
    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!

  2. #2
    Join Date
    Sep 2010
    Any suggestions?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles