How-To Geek

Automate Adding Bookmarks to del.icio.us

I use del.icio.us to store all of my infrequently used bookmarks, but I’ve found that browsing by tag just isn’t very efficient for me. I always use a full text search through my bookmarks to find what I’m looking for, so what I’m really looking for is a single-click save solution similar to the star button on the Flock browser.

Greasemonkey comes to the rescue with the del.icio.us autotag user script, but the problem is that you can’t edit the bookmarks by clicking on the del.icio.us tag button, because that script always immediately submits the form, and also duplicates the tags.

I’ve created an upgrade to the script that fixes those problems. Just like the first script, it will automatically add the popular and recommended tags:

image

Here’s the details:

  • Automatically enters in popular or recommended tags, submits the form and closes the pop-up window.
  • If the bookmark has already been saved, it will leave the edit window as is.
  • Doesn’t duplicate the tags if you use the tag button more than once.

And here’s the source code, in case you are interested:

var poptags = unsafeWindow['tagPop'];
if (poptags) { // test to make sure we’re on the post page
  if (poptags == “”) {
    var rectags = unsafeWindow['tagRec'];
    var finaltags = rectags.toString();
  } else {
    var finaltags = poptags.toString();
  }
  if(document.getElementById(‘tags’).value.length > 4){
    editmode = 1;
  }else{
    editmode = 0;
    var myarray = finaltags.split(“,”);
      for (var tag in myarray) {
            if (document.getElementById(‘tags’).value.search(/myarray[tag]/) == -1) {
            document.getElementById(‘tags’).value += myarray[tag] + ” “;
        }
      }
  }
  if(finaltags.length > 4 && editmode == 0){
      document.getElementById(‘delForm’).submit();
  }
}

I simply couldn’t live without this script, but I wouldn’t recommend using it if you like to browse by tag.

Install del.icio.us automater Greasemonkey script

Don't show again X

Subscribe

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your email below:


Email:

Comments (6)

  1. engtech @ IDT

    You should submit these scripts over at http://userscripts.org as well.

    That’s usually where I go to find Greasemonkey hacks. :)

    You can still host on your own website.

  2. The Geek

    Yeah, I was meaning to upload it there too… just hadn’t gotten around to it.

  3. Alejandro

    I didn’t get how to install (automaticaly) this app… is its install for advanced users only?..

    I hope you can give me an answer. Thanks

  4. decembre

    :-(
    Seems that is don’t work with the last Delicious extension ….

  5. bnwklr

    … please do update for the new del.icio.us!

  6. Erik

    I’d like to add my voice to the list of people calling for an update to this great greasemonkey script :)

Comments are closed on this post.

If you'd like to continue the discussion on this topic, you can do so at our forum.


Go to the Forum