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

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #301 on: January 09, 2021, 11:00:01 PM »
What's the updated link?
Bumb @yesitsme


@JoeyShmoe can you switch the extension to limit the size of a listings picture?


For example from this


To something more like
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 22084
  • Total likes: 1851
  • DansDeals.com Hat Tips 318
  • Gender: Male
    • View Profile
  • Location: InMyPants! 🙈
  • Programs: 2Many2List!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #302 on: January 09, 2021, 11:08:37 PM »
Bumb @yesitsme


@JoeyShmoe can you switch the extension to limit the size of a listings picture?


For example from this


To something more like

Too big for your eyes?
Don't try to be someone else , be who you are because everyone else is taken.

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #303 on: January 09, 2021, 11:11:11 PM »
Too big for your eyes?
Mostly to big for master threads and replies (ehem). (Somehow you managed to qoute me with both of them big ???)

When posting a picture for an item I believe even a thumbnail should be enough.
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 22084
  • Total likes: 1851
  • DansDeals.com Hat Tips 318
  • Gender: Male
    • View Profile
  • Location: InMyPants! 🙈
  • Programs: 2Many2List!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #304 on: January 09, 2021, 11:13:07 PM »
Mostly to big for master threads and replies (ehem). (Somehow you managed to qoute me with both of them big ???)

When posting a picture for an item I believe even a thumbnail should be enough.
No, a thumbnail would require you to click on every picture.

 I mostly use DDF on my mobile phone which is just perfect.

 Any smaller requires me to zoom in and start pitchifiking around.
Don't try to be someone else , be who you are because everyone else is taken.

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #305 on: January 09, 2021, 11:15:00 PM »
No, a thumbnail would require you to click on every picture.

 I mostly use DDF on my mobile phone which is just perfect.

 Any smaller requires me to zoom in and start pitchifiking around.
I likewise mostly use my mobile, take this thread as an example:
https://forums.dansdeals.com/index.php?topic=118515.1215
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 22084
  • Total likes: 1851
  • DansDeals.com Hat Tips 318
  • Gender: Male
    • View Profile
  • Location: InMyPants! 🙈
  • Programs: 2Many2List!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #306 on: January 09, 2021, 11:29:56 PM »
I likewise mostly use my mobile, take this thread as an example:
https://forums.dansdeals.com/index.php?topic=118515.1215
It's great. Some are big and some are bigger.

 While I happen to click this link of yours from my tapTalk app as I usually get my quotes and mentions in the app before seeing it in elsewhere. In tapTalk they're all the same and look great.

  See no problem when it's in it's large size.

 I love it on my mobile device, so can't can't imagine any smaller and expecially using on a desktop, any smaller would for sure be no good.
Don't try to be someone else , be who you are because everyone else is taken.

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #307 on: January 09, 2021, 11:31:19 PM »
It's great. Some are big and some are bigger.

 While I happen to click this link of yours from my tapTalk app as I usually get my quotes and mentions in the app before seeing it in elsewhere. In tapTalk they're all the same and look great.

  See no problem when it's in it's large size.

 I love it on my mobile device, so can't can't imagine any smaller and expecially using on a desktop, any smaller would for sure be no good.
Is the picture above to small? I just think if you'd be interested in buying you'd click on and see the amazon listing either way..
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 22084
  • Total likes: 1851
  • DansDeals.com Hat Tips 318
  • Gender: Male
    • View Profile
  • Location: InMyPants! 🙈
  • Programs: 2Many2List!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #308 on: January 09, 2021, 11:33:33 PM »
Is the picture above to small? I just think if you'd be interested in buying you'd click on and see the amazon listing either way..
Well if I don't buy and I want you to see the item, I rather see it nice and big and have the need to click the link to see it if I don't plan on purchasing it.

 It's ok, not to big and not to small.

 Just curious what's wrong if it's the full size like it is?
Don't try to be someone else , be who you are because everyone else is taken.

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #309 on: January 09, 2021, 11:35:00 PM »
Well if I don't buy and I want you to see the item, I rather see it nice and big and have the need to click the link to see it if I don't plan on purchasing it.

 It's ok, not to big and not to small.

 Just curious what's wrong if it's the full size like it is?
Call it a pet peeve;)
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 22084
  • Total likes: 1851
  • DansDeals.com Hat Tips 318
  • Gender: Male
    • View Profile
  • Location: InMyPants! 🙈
  • Programs: 2Many2List!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #310 on: January 09, 2021, 11:35:47 PM »
Call it a pet peeve;)
Good answer and like received.

 Good night buddy.
Don't try to be someone else , be who you are because everyone else is taken.

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #311 on: February 01, 2021, 04:14:57 PM »
It would be nice to set up a small website (or subdomain) for mobile users, so they can easily copy the amazon link and receive a nice formatted link in return, @joe shmoe are you willing / able to make this?
במקום שאין אנשים השתדל להיות איש
Great for mobile users
https://t.me/DDFLinkBot
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Yehudaa

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Mar 2018
  • Posts: 3031
  • Total likes: 1585
  • DansDeals.com Hat Tips 111
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #312 on: February 01, 2021, 06:41:00 PM »
Great for mobile users
https://t.me/DDFLinkBot

Any way to do this without Telegram?

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #313 on: February 01, 2021, 06:47:50 PM »
Any way to do this without Telegram?
That's up to the people around here. Ideally it should be in collaboration with DDF host. That way you can say add "linkify.dansdeals.com" before any amazon URL and it will give you a nice page with the results.
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline YitzyS

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Jan 2015
  • Posts: 4585
  • Total likes: 10038
  • DansDeals.com Hat Tips 34
  • Gender: Male
    • View Profile
  • Location: Lakewood, NJ
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #314 on: February 01, 2021, 06:56:47 PM »
That's up to the people around here. Ideally it should be in collaboration with DDF host. That way you can say add "linkify.dansdeals.com" before any amazon URL and it will give you a nice page with the results.
Once you are doing that, maybe it would be possible to put a BOT directly on dansdeals.com to replace any amazon link automatically with the correct sequence.

Offline lubaby

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jun 2010
  • Posts: 5293
  • Total likes: 686
  • DansDeals.com Hat Tips 12
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #315 on: February 01, 2021, 07:00:15 PM »
Great for mobile users
https://t.me/DDFLinkBot
Can the bot return the results in 2 messages, one with the “here you go” and one with the actual part to paste?

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #316 on: February 01, 2021, 07:04:29 PM »
Can the bot return the results in 2 messages, one with the “here you go” and one with the actual part to paste?
Sure. It should be easier to copy the message by holding it down, but I can see the added benefit.
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #317 on: February 01, 2021, 07:11:13 PM »
@lubaby updated.

ETA
Sped it up greatly as well.
« Last Edit: February 01, 2021, 07:23:15 PM by Yo ssi »
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #318 on: February 01, 2021, 07:25:15 PM »
Once you are doing that, maybe it would be possible to put a BOT directly on dansdeals.com to replace any amazon link automatically with the correct sequence.
While that's a nice idea, IINM that would be much harder to implement. (setting up the website should be straightforward)
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 5079
  • Total likes: 1804
  • DansDeals.com Hat Tips 53
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #319 on: February 03, 2021, 07:46:10 PM »
Once you are doing that, maybe it would be possible to put a BOT directly on dansdeals.com to replace any amazon link automatically with the correct sequence.
@Dan would you be interested in implementing such a thing?
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/