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 351492 times)

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12861
  • 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 #200 on: September 11, 2017, 03:29:14 PM »
Weird - the extension works but the bookmarklet doesn't!

iRobot Roomba 652 Robot Vacuum with Manufacturer's Warranty ($299.99)

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: 17396
  • Total likes: 14333
  • 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 #201 on: September 11, 2017, 03:36:47 PM »
Weird - the extension works but the bookmarklet doesn't!

iRobot Roomba 652 Robot Vacuum with Manufacturer's Warranty ($299.99)


The one @stooges44 used is NOT the same as you did. His has the price in bold and yours does not. Yours is working on Tapa.
Feelings don't care about your facts

Online stooges44

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2017
  • Posts: 6454
  • Total likes: 2746
  • DansDeals.com Hat Tips 269
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #202 on: September 11, 2017, 03:38:27 PM »
The one @stooges44 used is NOT the same as you did. His has the price in bold and yours does not. Yours is working on Tapa.

He used the extension, I used the bookmark
If it's not free shipping it's not worth it.

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17396
  • Total likes: 14333
  • 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 #203 on: September 11, 2017, 03:40:49 PM »
He used the extension, I used the bookmark
Both of hers worked

This
myBaby SoundSpa Portable, White ($19.19)



Working for me!
as well as this
Weird - the extension works but the bookmarklet doesn't!

iRobot Roomba 652 Robot Vacuum with Manufacturer's Warranty ($299.99)



And both of those do not have bold price while yours does.
Feelings don't care about your facts

Online stooges44

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2017
  • Posts: 6454
  • Total likes: 2746
  • DansDeals.com Hat Tips 269
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #204 on: September 11, 2017, 03:44:17 PM »
So both were with the extension because the code for the bookmark clearly shows a bolding of the price:



Update: I added the extension, (I was hesitant because I have enough extensions already but if it's causing problems..) and @aygart see if this one works for you:

iRobot Roomba 652 Robot Vacuum with Manufacturer's Warranty ($299.99)

« Last Edit: September 11, 2017, 03:51:18 PM by stooges44 »
If it's not free shipping it's not worth it.

Online aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17396
  • Total likes: 14333
  • 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 #205 on: September 11, 2017, 04:07:20 PM »
So both were with the extension because the code for the bookmark clearly shows a bolding of the price:



Update: I added the extension, (I was hesitant because I have enough extensions already but if it's causing problems..) and @aygart see if this one works for you:

iRobot Roomba 652 Robot Vacuum with Manufacturer's Warranty ($299.99)


It does. Thanks
Feelings don't care about your facts

Online stooges44

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2017
  • Posts: 6454
  • Total likes: 2746
  • DansDeals.com Hat Tips 269
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #206 on: September 11, 2017, 04:09:23 PM »
It does. Thanks

Awesome, seems that the extension is the only way to go at this point.
If it's not free shipping it's not worth it.

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 #207 on: September 11, 2017, 04:12:29 PM »
The wiki bookmarklet code has been updated to what @etecho posted before (minus the bold price), since whatever was there wasn't working for me either.

@stooges44, one of the main reasons I'd suggest to go with the extension is, the extension code can be updated and all the users will get the updates, as opposed to the bookmarklet where you have to update it yourself every time anyone comes up with a new idea or issue
DDF A-Z Link Extension
Chrome
Firefox
Info

Online stooges44

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2017
  • Posts: 6454
  • Total likes: 2746
  • DansDeals.com Hat Tips 269
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #208 on: September 11, 2017, 04:14:30 PM »
The wiki bookmarklet code has been updated to what @etecho posted before (minus the bold price), since whatever was there wasn't working for me either.

@stooges44, one of the main reasons I'd suggest to go with the extension is, the extension code can be updated and all the users will get the updates, as opposed to the bookmarklet where you have to update it yourself every time anyone comes up with a new idea or issue

Extension in place  :)
If it's not free shipping it's not worth it.

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12861
  • 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 #209 on: September 11, 2017, 07:11:25 PM »
@stooges44, one of the main reasons I'd suggest to go with the extension is, the extension code can be updated and all the users will get the updates, as opposed to the bookmarklet where you have to update it yourself every time anyone comes up with a new idea or issue
+1
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: 17396
  • Total likes: 14333
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Feelings don't care about your facts

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 23540
  • Total likes: 2427
  • DansDeals.com Hat Tips 356
  • Gender: Male
    • View Profile
  • Location: InMyPants! 🙈
  • Programs: 2Many2List!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #211 on: September 13, 2017, 02:57:05 PM »
What's the most simple way to post a deal while using an android? For example a Galaxy S7.
 Is there any method to post besides having to copy the url and then the asin and plug it in?

 Is the crome extension avlb to be used on an app while on amazon.com? Or only on a computer?
Quote
Need your LG Exalt fixed? Cracked in half? Water damage? Or parts to repair yourself. 347.201.2501

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 #212 on: September 13, 2017, 03:44:02 PM »
What's the most simple way to post a deal while using an android? For example a Galaxy S7.
 Is there any method to post besides having to copy the url and then the asin and plug it in?

 Is the crome extension avlb to be used on an app while on amazon.com? Or only on a computer?
There's no Chrome Extionsions support for Chrome on Android, I was able to install the Firefox extension on Android Firefox, but nothing happens. I'll see if I can try to make it work (a bit more complicated than on PC)
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12861
  • 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 #213 on: September 13, 2017, 07:53:46 PM »
I don't have an android, but you can try the instructions in this link and see if they work.
https://www.labnol.org/software/google-chrome-bookmarklets/27894/
Workflowy. You won't know what you're missing until you try it.

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 #214 on: September 14, 2017, 10:32:50 AM »

Just tested it, and it isn't working for me. Sounds interesting though
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12861
  • 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 #215 on: September 14, 2017, 10:45:03 AM »
Just tested it, and it isn't working for me. Sounds interesting though
oh well!
Workflowy. You won't know what you're missing until you try it.

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 23540
  • Total likes: 2427
  • DansDeals.com Hat Tips 356
  • Gender: Male
    • View Profile
  • Location: InMyPants! 🙈
  • Programs: 2Many2List!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #216 on: September 14, 2017, 10:05:34 PM »
oh well!
So I guess I will start to post the asin number itself and have a mod edit my link and fill in the rest. ;) lol..

Or it should be when ever you enter a asin number alone on the forum it should convert it into an amzn link just like the @Dan works to quote the member without putting the member in front and back.
 But I doubt that's going to happen so at least add for now a button together with the other buttons above to make it easy for any one using an android to post a deal.

#Time4AmznButtons
« Last Edit: September 14, 2017, 10:09:18 PM by myi »
Quote
Need your LG Exalt fixed? Cracked in half? Water damage? Or parts to repair yourself. 347.201.2501

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 23540
  • Total likes: 2427
  • DansDeals.com Hat Tips 356
  • Gender: Male
    • View Profile
  • Location: InMyPants! 🙈
  • Programs: 2Many2List!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #217 on: November 05, 2017, 02:21:28 PM »
There's no Chrome Extionsions support for Chrome on Android, I was able to install the Firefox extension on Android Firefox, but nothing happens. I'll see if I can try to make it work (a bit more complicated than on PC)
@JoeyShmoe Any luck?
Quote
Need your LG Exalt fixed? Cracked in half? Water damage? Or parts to repair yourself. 347.201.2501

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 #218 on: November 06, 2017, 10:33:54 AM »
@JoeyShmoe Any luck?
Didn't get a chance to play around with it yet
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline Longfite

  • DansDeals Copper Elite
  • *
  • Join Date: Jan 2018
  • Posts: 3
  • Total likes: 0
  • DansDeals.com Hat Tips 0
    • View Profile
  • Location: usa
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #219 on: January 10, 2018, 05:34:15 AM »
Oh my god, I still don't know how to get the link, am I a fool? Who help me?