Topic Wiki

UPDATE:
@JoeyShmoe did a great job creating a Chrome Extension and a Firefox Extension to save us all the hassle of setting up a bookmarklet. The extension will place a button on any Amazon product page. When you click the button it will copy a link to your clipboard, which you can paste into any DDF post. The post will then contain the product title, image, and a working link to the product.

Thanks @JoeyShmoe!

---

For anyone who doesn't want to install a browser extension, read below how to set up the bookmarklet:

Here is a bookmarklet that will make a DD link from any amazon item page, and format it with the title and an image so you can paste it into a DDF post.

Example:

Little Tikes Rocking Horse Magenta ($34.07)



(Not sure what a bookmarklet is? Read more about them in this thread: http://forums.dansdeals.com/index.php?topic=61269.5.)

Here's how to install the bookmarklet:

1. If you don't currently see a row of bookmarks on the top of your browser, you will need to show the bookmarks bar.
- In Chrome, click the 3 vertical dots at the top right of your screen, click Settings, and click Always Show the Bookmarks Bar.
- In Firefox, click the 3 horizontal lines at the top right of your screen, and click Customize. Then click Show/Hide Toolbars (bottom left of your screen) and check off the Bookmarks Toolbar.

2. Copy the following code. (To do so, click the SELECT button and then press control-c on your keyboard.)
Code: [Select]
javascript: (function() {
    var pattern = new RegExp("(https:\/\/www.amazon.com\/).*([dg]p\/)(?:product\/)?(..........).*|(https:\/\/smile.amazon.com\/).*([dg]p\/)(?:product\/)?(..........).*", "i"),
        match = location.href.match(pattern),
        image = document.getElementById('landingImage').src;
    var price = "";
    if (document.getElementById('priceblock_dealprice') !== null) {
        price = " (" + document.getElementById('priceblock_dealprice').innerHTML + ")";
    } else if (document.getElementById('priceblock_ourprice') !== null) {
        price = " (" + document.getElementById('priceblock_ourprice').innerHTML + ")";
    }
    var URL = (match[1] !== undefined) ? match[1] + "dp/" + match[3] + "/?tag=cl03f-20&smid=ATVPDKIKX0DER" : match[4] + "dp/" + match[6] + "/?tag=cl03f-20&smid=ATVPDKIKX0DER";
    var result = "[url=" + URL + "]" + document.title + price + "[/url][br][br][url=" + URL + "][img]" + image + "[/img][/url]";
    if (document.execCommand('copy') !== false) {
        var ddLink = document.createElement('span'),
            range = document.createRange();
        ddLink.id = "ddLink";
        ddLink.innerText = result;
        document.body.appendChild(ddLink);
        range.selectNode(document.getElementById('ddLink'));
        window.getSelection().addRange(range);
        document.execCommand('copy');
        document.getElementById('ddLink').remove();
        setTimeout(function() {
            alert('DD link copied to clipboard...')
        }, 1000);
    } else {
        window.prompt("Press control-c", result);
    }
    void(0);
})()

3. To create the bookmarklet, right click on your bookmarks bar and click "Add page" (if you're in Chrome) or "New bookmark" (Firefox).

For the Name, enter whatever you want (eg: Dan Amazon link), and for the URL/Location enter the code above, which you already copied.

4. Click Save (Chrome) or Add (Firefox)

To use the bookmarklet, simply click on the bookmark you created (in step 3) when you are on any amazon product page. Follow the prompts (you may need to press control-c to copy what pops up), and then paste it into any DDF post.

Enjoy!

Disclaimer: The code might need a little tweaking, so let me know if you have a link that it doesn't work on. If there are any changes I will update the wiki.

Author Topic: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon  (Read 30595 times)

Offline paige

  • Bronze Elite Member
  • *
  • Join Date: May 2018
  • Posts: 1
  • Total likes: 0
  • DansDeals.com Hat Tips 0
    • View Profile
  • Location: shenzhen
Hello Dan
Can you help us to post Amazon deal here? We are seller on Amazon and please reply us if you can to post deals on here, more details we can be chat on personal message or our email address: pevono@163.com
Thanks.
And looking forward to hear from you back.

Paige

Offline myi

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Feb 2015
  • Posts: 12997
  • Total likes: 693
  • DansDeals.com Hat Tips 248
    • View Profile
  • Location: brklyn/Israel
@JoeyShmoe @etech0
  Any way for me to use this on a laptop/computer, meaning using it on someone else's computer by logging into my Chrome account will it have all my info saved?
 and would I be able to log out which would erase all my information and all my tabs which were loaded because I logged into my account?
  Or this question is more like a Google Chrome question how do you have your tabs applied when browsing on someone else's computer?
Thanks
Don't try to be someone else , be who you are because everyone else is taken.

Offline etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 9088
  • Total likes: 241
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
You have a few options:
1 (this one is good if you're going to be using their computer on a long term basis): Add a Chrome Profile to their computer, log in to your chrome profile, and it should sync all your extensions and bookmarks and passwords
2: If they don't mind you installing a browser extension, just install the extension, you'll be able to use it and you'll just have to log in to your DDF account to post
3: If they don't want you to install an extension, you can add the bookmarklet instead, use it (you'll still have to log in to your DDF account) and you can easily delete that bookmarklet when you're done if they don't want you to leave it there.

Bear in mind that if you set up a Chrome profile on their computer, they'll be able to access all your saved passwords and bookmarks, and that if you are using their profile, if you tell Chrome to save your password, they'll be able to log in to your account even if you log out when you're done.
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1108
  • Total likes: 68
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
You have a few options:
1 (this one is good if you're going to be using their computer on a long term basis): Add a Chrome Profile to their computer, log in to your chrome profile, and it should sync all your extensions and bookmarks and passwords
2: If they don't mind you installing a browser extension, just install the extension, you'll be able to use it and you'll just have to log in to your DDF account to post
3: If they don't want you to install an extension, you can add the bookmarklet instead, use it (you'll still have to log in to your DDF account) and you can easily delete that bookmarklet when you're done if they don't want you to leave it there.

Bear in mind that if you set up a Chrome profile on their computer, they'll be able to access all your saved passwords and bookmarks, and that if you are using their profile, if you tell Chrome to save your password, they'll be able to log in to your account even if you log out when you're done.
+3
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline myi

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Feb 2015
  • Posts: 12997
  • Total likes: 693
  • DansDeals.com Hat Tips 248
    • View Profile
  • Location: brklyn/Israel
You have a few options:
1 (this one is good if you're going to be using their computer on a long term basis): Add a Chrome Profile to their computer, log in to your chrome profile, and it should sync all your extensions and bookmarks and passwords
2: If they don't mind you installing a browser extension, just install the extension, you'll be able to use it and you'll just have to log in to your DDF account to post
3: If they don't want you to install an extension, you can add the bookmarklet instead, use it (you'll still have to log in to your DDF account) and you can easily delete that bookmarklet when you're done if they don't want you to leave it there.

Bear in mind that if you set up a Chrome profile on their computer, they'll be able to access all your saved passwords and bookmarks, and that if you are using their profile, if you tell Chrome to save your password, they'll be able to log in to your account even if you log out when you're done.
Thanks for the timely response,  so it seems the best way for me, would be to add a bookmark on his Chrome page that way to avoid saving all my information into his computer.

Bookmarklet;
  I remember you discussing this back when you posted about it I assume I have to manually input all the information to set it up?
   If you remember where it was discussed here in this thread if you can refer me back to it, thanks a lot.
+3
Thanks for responding as well.


 Is there any such options as logging into my Chrome account and have my bookmarks use it and then when I'm finished log out just like I would do with my gmail?
« Last Edit: May 30, 2018, 02:17:55 PM by myi »
Don't try to be someone else , be who you are because everyone else is taken.

Offline etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 9088
  • Total likes: 241
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Thanks for the timely response,  so it seems the best way for me, would be to add a bookmark on his Chrome page that way to avoid saving all my information into his computer.

Bookmarklet;
  I remember you discussing this back when you posted about it I assume I have to manually input all the information to set it up?
   If you remember where it was discussed here in this thread if you can refer me back to it, thanks a lot.Thanks for responding as well.


 Is there any such options as logging into my Chrome account and have my bookmarks use it and then when I'm finished log out just like I would do with my gmail?
Instructions for setting up the bookmarklet are in the wiki, in the section titled "Here's how to install the bookmarklet:"

It's a few steps but once you've done it a couple of times you'll be able to do it in a flash.

You can delete your chrome profile from that computer but it takes a few minutes to download and sync each time, so it may not be worth your while.
Workflowy. You won't know what you're missing until you try it.

Offline etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 9088
  • Total likes: 241
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Is there any such options as logging into my Chrome account and have my bookmarks use it and then when I'm finished log out just like I would do with my gmail?
I haven't tried it, but this looks pretty cool
How to Lock Your Google Chrome Profile with a Password
Workflowy. You won't know what you're missing until you try it.

Offline myi

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Feb 2015
  • Posts: 12997
  • Total likes: 693
  • DansDeals.com Hat Tips 248
    • View Profile
  • Location: brklyn/Israel
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #232 on: June 05, 2018, 12:11:02 PM »
I haven't tried it, but this looks pretty cool
How to Lock Your Google Chrome Profile with a Password
Interesting, got to try that when I get a minute.

   It said maybe even passwords, didn't sound so positive that all passwords would be hidden,but I can give it a shot.
Don't try to be someone else , be who you are because everyone else is taken.

Offline yesitsme

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Dec 2014
  • Posts: 1120
  • Total likes: 82
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile

Online gingyguy

  • Dansdeals Platinum Elite + Lifetime Silver Elite
  • *****
  • Join Date: Sep 2011
  • Posts: 660
  • Total likes: 102
  • DansDeals.com Hat Tips 21
  • Gender: Male
    • View Profile
chrome bookmarklet not working for me right now
May you slide down the banister of happiness & get many splinters of success up your career.

Offline myi

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Feb 2015
  • Posts: 12997
  • Total likes: 693
  • DansDeals.com Hat Tips 248
    • View Profile
  • Location: brklyn/Israel
Don't try to be someone else , be who you are because everyone else is taken.

Offline etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 9088
  • Total likes: 241
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #236 on: August 12, 2018, 04:31:32 PM »
Funny, it works with the old version which doesn't take the image:
Amazon.com : Sanpellegrino Blood Orange Sparkling Fruit Beverage, 11.15 fl oz. Cans (24 Count) : Sparkling Juice Drinks : Grocery & Gourmet Food

I wonder what the difference is
Workflowy. You won't know what you're missing until you try it.

Offline myi

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Feb 2015
  • Posts: 12997
  • Total likes: 693
  • DansDeals.com Hat Tips 248
    • View Profile
  • Location: brklyn/Israel
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #237 on: August 12, 2018, 10:04:44 PM »
Funny, it works with the old version which doesn't take the image:
Amazon.com : Sanpellegrino Blood Orange Sparkling Fruit Beverage, 11.15 fl oz. Cans (24 Count) : Sparkling Juice Drinks : Grocery & Gourmet Food

I wonder what the difference is
How do i get the old version? or just leave it alone?
 it doesn't include the price neither, which is probably fine as most deals posted need to have the price adjusted due to the coupons and ss savings.
Don't try to be someone else , be who you are because everyone else is taken.

Offline etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 9088
  • Total likes: 241
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #238 on: August 12, 2018, 10:12:37 PM »
How do i get the old version? or just leave it alone?
 it doesn't include the price neither, which is probably fine as most deals posted need to have the price adjusted due to the coupons and ss savings.
I think most / all of the old versions are posted somewhere upthread, but this is the code of the one I was using:

Code: [Select]
javascript:(function(){ var pattern = new RegExp("(https:\/\/www.amazon.com\/).*([dg]p\/)(?:product\/)?(..........).*", "i"); var match = location.href.match(pattern); var URL = match[1] + "dp/" + match[3] +"/?tag=cl03f-20&smid=ATVPDKIKX0DER"; window.prompt("Press control-c","[url="+URL+"]"+document.title+"[/url]");void(0); })()
You can keep both bookmarklets and use this one when the other one doesn't work. Personally I keep this one as my bookmarklet since I mostly use the chrome extension anyways. If that one ever doesn't work then I use the bookmarklet.
Workflowy. You won't know what you're missing until you try it.

Offline myi

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Feb 2015
  • Posts: 12997
  • Total likes: 693
  • DansDeals.com Hat Tips 248
    • View Profile
  • Location: brklyn/Israel
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #239 on: August 12, 2018, 11:39:53 PM »
I think most / all of the old versions are posted somewhere upthread, but this is the code of the one I was using:

Code: [Select]
javascript:(function(){ var pattern = new RegExp("(https:\/\/www.amazon.com\/).*([dg]p\/)(?:product\/)?(..........).*", "i"); var match = location.href.match(pattern); var URL = match[1] + "dp/" + match[3] +"/?tag=cl03f-20&smid=ATVPDKIKX0DER"; window.prompt("Press control-c","[url="+URL+"]"+document.title+"[/url]");void(0); })()
You can keep both bookmarklets and use this one when the other one doesn't work. Personally I keep this one as my bookmarklet since I mostly use the chrome extension anyways. If that one ever doesn't work then I use the bookmarklet.
Thanks.
Don't try to be someone else , be who you are because everyone else is taken.