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

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 5584
  • Total likes: 13797
  • 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 #320 on: February 03, 2021, 10:10:41 PM »
@Dan would you be interested in implementing such a thing?
Yes, lets send that to the website development team, so that they can create a subpanel of dedicated DDF employees to develop the code for this feature.

Let the budget department get us some numbers on project cost vs. projected income, so that we can present it at the shareholders meeting next week.

And don't forget to contact someone at counsels office to find out about the protectability of this from copycats.

Anything else @Yo ssi:P

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #321 on: February 03, 2021, 10:18:06 PM »
Yes, lets send that to the website development team, so that they can create a subpanel of dedicated DDF employees to develop the code for this feature.

Let the budget department get us some numbers on project cost vs. projected income, so that we can present it at the shareholders meeting next week.

And don't forget to contact someone at counsels office to find out about the protectability of this from copycats.

Anything else @Yo ssi:P
Just Dan's approval.
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 5584
  • Total likes: 13797
  • 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 #322 on: February 03, 2021, 10:21:59 PM »
Just Dan's approval.
I nominate Yo ssi as the most talented DDFer. Aside from his ability to code and write megillos, he can do complex coding, budget, and legal as well.

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #323 on: February 05, 2021, 04:21:50 PM »
DDF Link Bot update coming soon!

Featuring: Auto detecting S&S Items.
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #324 on: February 07, 2021, 11:43:49 PM »
Now live!

Some new features include:
  • Auto detect S&S items
  • Auto detect coupons
  • Auto detect savings
  • Smart price fixing
  • Display original price
  • Auto apply coupon to title
  • List discount details
  • Fixed formatting for a nicer look

For those wondering why the bot stopped working for a little bit, I hope this is worth it :) (@SPGDUDE)
« Last Edit: February 08, 2021, 12:01:42 AM by Yo ssi »
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 5584
  • Total likes: 13797
  • 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 #325 on: February 08, 2021, 12:05:21 AM »
Now live!

Some new features include:
  • Auto detect S&S items
  • Auto detect coupons
  • Auto detect savings
  • Smart price fixing
  • Display original price
  • Auto apply coupon to title
  • List discount details
  • Fixed formatting for a nicer look

For those wondering why the bot stopped working for a little bit, I hope this is worth it :) (@SPGDUDE)
Do I have to reinstall the bookmarklet?

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #326 on: February 08, 2021, 12:07:03 AM »
Do I have to reinstall the bookmarklet?
It's on update for the Telegram Bot, non related to the chrome extension. Might wanna check it out ;)
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 5584
  • Total likes: 13797
  • 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 #327 on: February 08, 2021, 12:11:48 AM »
It's on update for the Telegram Bot, non related to the chrome extension. Might wanna check it out ;)
Oh. You can call NativeUSA and tell them to let me access Telegram...

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #328 on: February 08, 2021, 12:13:03 AM »
Oh. You can call NativeUSA and tell them to let me access Telegram...
Or you can put your team together and advocate to get it built into DDF ;)
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 5584
  • Total likes: 13797
  • 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 #329 on: February 08, 2021, 12:15:11 AM »
Or you can put your team together and advocate to get it built into DDF ;)
Okay.


Hey, @Yo ssi, can you build this on DDF?  ;)

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 5584
  • Total likes: 13797
  • 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 #330 on: February 08, 2021, 12:15:48 AM »
Now live!

Some new features include:
  • Auto detect S&S items
  • Auto detect coupons
  • Auto detect savings
  • Smart price fixing
  • Display original price
  • Auto apply coupon to title
  • List discount details
  • Fixed formatting for a nicer look

For those wondering why the bot stopped working for a little bit, I hope this is worth it :) (@SPGDUDE)
Just checked it out on SPGDUDE's page. It's really impressive!

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #331 on: February 08, 2021, 12:23:00 AM »
Just checked it out on SPGDUDE's page. It's really impressive!
He hasn't used the updated version yet :)

As for the implementation it's not up to me..
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 5584
  • Total likes: 13797
  • 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 #332 on: February 08, 2021, 12:24:09 AM »
He hasn't used the updated version yet :)

As for the implementation it's not up to me..
His last deal (for frosting) notes that it's 20% off and it's with S&S, and it lists the actual sale price. That is an updated feature, no?

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #333 on: February 08, 2021, 12:27:34 AM »
His last deal (for frosting) notes that it's 20% off and it's with S&S, and it lists the actual sale price. That is an updated feature, no?
He manually edited that.
Here's a preview: (Notice how it calculates the discount in the title)

Bubly Sparkling Water, Tropical Thrill Variety Pack, 12 fl oz. cans (18 Pack) $7.94-$8.87 via S&S

Clip coupon: Save an extra 15% on your first Subscribe & Save order.



Generated with DDF Link Generator
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #334 on: February 08, 2021, 12:30:55 AM »
Possible upcoming feature may be an easy-to-copy title for the subject line. The issue is the average products title is too long :-\
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 5584
  • Total likes: 13797
  • 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 #335 on: February 08, 2021, 12:31:59 AM »
Possible upcoming feature may be an easy-to-copy title for the subject line. The issue is the average products title is too long :-\
Indeed, but how can you automate that? It usually takes a human brain to decide which snippets of info are important for the thread title...

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #336 on: February 08, 2021, 12:33:02 AM »
Indeed, but how can you automate that? It usually takes a human brain to decide which snippets of info are important for the thread title...
That's the Chochma, if you have any ideas.. ;)
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #337 on: February 08, 2021, 08:42:08 PM »
Updated:

Bugs squashed


(Something like ($$4.029999999999999-$$4.630000000000001 via S&S) shouldn't be happening anymore)
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline myi

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: Feb 2015
  • Posts: 23578
  • Total likes: 2440
  • 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 #338 on: February 13, 2021, 09:35:11 PM »
Updated:

Bugs squashed


(Something like ($$4.029999999999999-$$4.630000000000001 via S&S) shouldn't be happening anymore)
Cool, nice job here.
 Is it really worth downloading telegram to post the DDF Amazon link? How does it work ? Send the Asin and spitz out a link to post?
Quote
Need your LG Exalt fixed? Cracked in half? Water damage? Or parts to repair yourself. 347.201.2501

Online Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6713
  • Total likes: 2629
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #339 on: February 13, 2021, 10:18:39 PM »
Cool, nice job here.
 Is it really worth downloading telegram to post the DDF Amazon link? How does it work ? Send the Asin and spitz out a link to post?
Pretty much:)
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/