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!

NEW OPTION!
Works on mobile or desktop
Telegram Bot | Website


---

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.
« Last edited by Yo ssi on February 23, 2021, 07:57:42 PM »

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

Offline stooges44

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2017
  • Posts: 6454
  • Total likes: 2748
  • DansDeals.com Hat Tips 269
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #140 on: August 09, 2017, 11:55:23 AM »
Many of the posts which seem to have been made using the bookmarklet or addin have not been clickable in Tapa for me such as this one
http://forums.dansdeals.com/index.php?topic=82556.0

I don't use tapa so I can't say for sure but @mileagejunkie is using an old version of the bookmarklet. The latest whould show the price in the link like here: http://forums.dansdeals.com/index.php?topic=82559.0
If it's not free shipping it's not worth it.

Offline mileagejunkie

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Nov 2014
  • Posts: 2891
  • Total likes: 227
  • DansDeals.com Hat Tips 607
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #141 on: August 09, 2017, 11:57:17 AM »
I don't use tapa so I can't say for sure but @mileagejunkie is using an old version of the bookmarklet. The latest whould show the price in the link like here: http://forums.dansdeals.com/index.php?topic=82559.0

I had to modify the link since the latest version was not compatible with Safari on iPhone. I took off the price because it didn't account for S&S and coupons.

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1276
  • Total likes: 254
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #142 on: August 09, 2017, 11:57:21 AM »
Many of the posts which seem to have been made using the bookmarklet or addin have not been clickable in Tapa for me such as this one
http://forums.dansdeals.com/index.php?topic=82556.0
Interesting, seems like an issue with Tapatalk, I'll take a look at it
I don't use tapa so I can't say for sure but @mileagejunkie is using an old version of the bookmarklet. The latest whould show the price in the link like here: http://forums.dansdeals.com/index.php?topic=82559.0
That's not showing up on Tapatalk either, I was able to replicate @aygart's issue on your link too
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline mileagejunkie

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Nov 2014
  • Posts: 2891
  • Total likes: 227
  • DansDeals.com Hat Tips 607
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #143 on: August 09, 2017, 12:07:15 PM »
Interesting, seems like an issue with Tapatalk, I'll take a look at itThat's not showing up on Tapatalk either, I was able to replicate @aygart's issue on your link too
Looks like a Tapatalk on Android issue

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1276
  • Total likes: 254
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #144 on: August 09, 2017, 12:21:11 PM »
Looks like a Tapatalk on Android issue
Interesting, thanks
DDF A-Z Link Extension
Chrome
Firefox
Info

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17398
  • Total likes: 14338
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #145 on: August 29, 2017, 11:54:48 PM »
This issue on tapatalk for Android persists
Feelings don't care about your facts

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12862
  • Total likes: 3316
  • 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 #146 on: August 29, 2017, 11:59:36 PM »
This issue on tapatalk for Android persists
Are the words also not clickable? Or just the image?
Workflowy. You won't know what you're missing until you try it.

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17398
  • Total likes: 14338
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #147 on: August 30, 2017, 12:06:30 AM »
Are the words also not clickable? Or just the image?
The words are also not clickable. It seems to be only with some users posts. My phone is giving screenshot issues.
Feelings don't care about your facts

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12862
  • Total likes: 3316
  • 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 #148 on: August 30, 2017, 12:07:39 AM »
The words are also not clickable.
That is very weird! What about something like this, is it clickable?

click here
Workflowy. You won't know what you're missing until you try it.

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17398
  • Total likes: 14338
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #149 on: August 30, 2017, 12:09:11 AM »
That is very weird! What about something like this, is it clickable?

click here
Yes. It is only those posts.
Feelings don't care about your facts

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17398
  • Total likes: 14338
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Feelings don't care about your facts

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17398
  • Total likes: 14338
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Feelings don't care about your facts

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12862
  • Total likes: 3316
  • 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 #152 on: August 30, 2017, 08:20:54 AM »
This works fine
I wonder if the colon messes it up. Does this link work?

link with colon: inside
Workflowy. You won't know what you're missing until you try it.

Offline TimT

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Dec 2013
  • Posts: 22077
  • Total likes: 7130
  • DansDeals.com Hat Tips 12
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #153 on: August 30, 2017, 08:22:53 AM »
I wonder if the colon messes it up. Does this link work?

link with colon: inside
DD homepage

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17398
  • Total likes: 14338
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #154 on: August 30, 2017, 08:25:20 AM »
I wonder if the colon messes it up. Does this link work?

link with colon: inside
Works
Feelings don't care about your facts

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12862
  • Total likes: 3316
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Workflowy. You won't know what you're missing until you try it.

Offline TimT

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Dec 2013
  • Posts: 22077
  • Total likes: 7130
  • DansDeals.com Hat Tips 12
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #156 on: August 30, 2017, 08:36:11 AM »
Yes

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12862
  • Total likes: 3316
  • 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 #157 on: August 30, 2017, 08:51:40 AM »
Yes
So weird! Because it's the text part from the first one that you said didn't work, I just copied and pasted it.

Maybe tapatalk can't handle such long posts?

Does this work?
Amazon.com: Obersee Kids Pre-School All-in-One Backpack with Cooler, Transportation: Baby

Workflowy. You won't know what you're missing until you try it.

Offline TimT

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Dec 2013
  • Posts: 22077
  • Total likes: 7130
  • DansDeals.com Hat Tips 12
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #158 on: August 30, 2017, 08:55:42 AM »
Yes

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17398
  • Total likes: 14338
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Feelings don't care about your facts