Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 931677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:32:40+00:00 2026-05-15T20:32:40+00:00

I’ve created a javascript bookmarklet that gets the current page’s title and URL, using

  • 0

I’ve created a javascript bookmarklet that gets the current page’s title and URL, using the following code:

//Check to see if jQuery is already loaded
if (typeof jQuery == 'undefined') {
    var jQ = document.createElement('script');
    jQ.type = 'text/javascript';
    jQ.onload=runthis;
    jQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
    document.body.appendChild(jQ);
} else {
    runthis();
}

// main Javascript function
function runthis() {
    title = document.title;
    url = document.URL;
    tag = "customTag";

    alert("Added to paperclip: Page Title: "+title+" | URL: "+url);
}

I now want to take that info and add it as a bookmark on my Delicious account. How do I go about this with Javascript/jQuery? I’ve taken a look at the API documentation but am having trouble getting my head around it (completely new to this, and OAuth makes my head spin), and can’t find any full code examples to tinker with.

Would really appreciate any help/examples.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:32:40+00:00Added an answer on May 15, 2026 at 8:32 pm

    Edit:

    You may want to look at this previous question. – “I want to create a Delicious bookmarklet in Firefox that bookmarks the current page with a predefined tag.”


    Well, an example that does exactly what you want by using a bookmarklet in your browser’s toolbar is the delicious bookmarklet. It gather information from the page, displays the info in a popup, allowing you to edit it, and then stores it to your account:

    http://delicious.com/help/bookmarklets

    javascript:(function(){
        f= 'http://delicious.com/save?url=' 
        + encodeURIComponent(window.location.href)
        + '&title='+encodeURIComponent(document.title)
        + '&v=5&';
        a=function(){
            if( !window.open(
                f + 'noui=1&jump=doclose',
                'deliciousuiv5',
                'location=yes,
                links=no,scrollbars=no,
                toolbar=no,width=550,height=550'))location.href=f + 'jump=yes'
        };
        if(/Firefox/.test(navigator.userAgent)){
            setTimeout(a,0)
        } else {
          a()
        }
    })()
    

    If you use your Yahoo ID to log in, you do have to use OAuth, but if you don’t, you can use the V1 api like this (from this page, worked for me in Chrome):

    javascript:(
    
        function()
        {
            location.href = 'https://user:pwd@api.del.icio.us/v1/posts/add?url=' 
                + encodeURIComponent(window.location.href)
                + '&description=' + encodeURIComponent(document.title)   
                + '&tags=obvioustesttag';
        }
    
    )()
    

    Make sure to search your tags for “obvioustesttag” since it doesn’t show up in the chronological list immediately.

    Try to create a regular login or new account if you currently use YahooID to sign in, otherwise, you’ll have to deal with OAuth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I'm making a simple page using Google Maps API 3. My first. One marker
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.