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

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6657
  • Total likes: 2588
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Do you know which site it was that made it work? I'm having the same issues...
I listed it in order of what I think it needs.
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline TzviR

  • Dansdeals Platinum Elite + Lifetime Silver Elite
  • *****
  • Join Date: Sep 2020
  • Posts: 668
  • Total likes: 665
  • DansDeals.com Hat Tips 3
    • View Profile
    • [b]Learn to play for a kumzits in 5 weeks!
  • Location: Fl
Do you know which site it was that made it work? I'm having the same issues...
I have no clue. I first added scripts.google.com, then https://script.google.com/macros/s/AKfycbyqBLhzVxMwcDTN5RN66f6P6IauIL3Ev8bZct0aFXQBbT2l1d5XdXRVrIsE5KN0LfX1/exec. Didn’t work after both of those.

Then I added
Try unblocking:
https://apis.google.com/
https://gstatic.com/
https://googleusercontent.com/
(all Google sites)
And it worked.

I would presume it was one of the last three, but it may have been a combination of a few.
If you add all of them it should work :P

My  prizes from CV :)

Offline TzviR

  • Dansdeals Platinum Elite + Lifetime Silver Elite
  • *****
  • Join Date: Sep 2020
  • Posts: 668
  • Total likes: 665
  • DansDeals.com Hat Tips 3
    • View Profile
    • [b]Learn to play for a kumzits in 5 weeks!
  • Location: Fl
Try unblocking:
https://apis.google.com/
https://gstatic.com/
https://googleusercontent.com/
(all Google sites)
S.Pellegrino Essenza Dark Morello Cherry & Pomegranate Flavored Mineral Water, 16.9 fl oz. Plastic Bottles (24 Count) $21.24-$23.74 via S&S
Clip the 40% coupon.


 

Generated with DDF Link Generator Telegram Bot | Website

Also available:
Blood Orange & Black Raspberry
Lemon & Lemon Zest
DDF link generator did not include the 40% off coupon. Is that because there is another site it can’t access or is that a separate issue?

ETA: apparently the 40% is targeted

My  prizes from CV :)

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6657
  • Total likes: 2588
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
New Update! (Web & Telegram)

  • Major bug fix (For S&S items with a price discount).
  • Added original price strikethrough (previously only available for items with a list-price).
  • The above now allows for seeing the original price on subscribe & save listings!

Telegram Bot | Website
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6657
  • Total likes: 2588
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
New Update! (Web & Telegram)

  • Fixed ASIN detector bug.
  • Updated proxy (should shorten the link loading time).
  • A few minor bugs squished.

Telegram Bot | Website
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Yehudaa

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Mar 2018
  • Posts: 3603
  • Total likes: 2404
  • DansDeals.com Hat Tips 111
    • View Profile
New Update! (Web & Telegram)

  • Fixed ASIN detector bug.
  • Updated proxy (should shorten the link loading time).
  • A few minor bugs squished.

Telegram Bot | Website

@Yo ssi it seems to be broken. @boro boy's last few posts all turn up this guy:



Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6657
  • Total likes: 2588
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Thanks will fix soon

ETA
Should be fixed
« Last Edit: May 19, 2021, 04:16:27 PM by Yo ssi »
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline boro boy

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2018
  • Posts: 881
  • Total likes: 84
  • DansDeals.com Hat Tips 45
    • View Profile
  • Location: Brooklyn
Wow they are all broken
Thanks for letting me know!!!
👆hit the like button :-)

Offline boro boy

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2018
  • Posts: 881
  • Total likes: 84
  • DansDeals.com Hat Tips 45
    • View Profile
  • Location: Brooklyn
Let us know when Bailey is gone!
👆hit the like button :-)

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6657
  • Total likes: 2588
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Let us know when Bailey is gone!
Should be gone for all future posts.

My mistake, I should have done better testing :)

ETA
Added support for listings that need to login in order to add to cart.
« Last Edit: May 19, 2021, 07:41:13 PM by Yo ssi »
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Euclid

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Jun 2010
  • Posts: 4911
  • Total likes: 6141
  • DansDeals.com Hat Tips 5
    • View Profile
Should be gone for all future posts.

My mistake, I should have done better testing :)

ETA
Added support for listings that need to login in order to add to cart.
Is the code open source?

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6657
  • Total likes: 2588
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Is the code open source?
It is not, for a few reasons.
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline boro boy

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Nov 2018
  • Posts: 881
  • Total likes: 84
  • DansDeals.com Hat Tips 45
    • View Profile
  • Location: Brooklyn
Should be gone for all future posts.

My mistake, I should have done better testing :)

ETA
Added support for listings that need to login in order to add to cart.
Thanks
👆hit the like button :-)

Offline TzviR

  • Dansdeals Platinum Elite + Lifetime Silver Elite
  • *****
  • Join Date: Sep 2020
  • Posts: 668
  • Total likes: 665
  • DansDeals.com Hat Tips 3
    • View Profile
    • [b]Learn to play for a kumzits in 5 weeks!
  • Location: Fl
Strikeout (s) (/s) does not seem to be recognized in a thread title. Maybe change the DDF link generator to not include that in the tile?

My  prizes from CV :)

Offline OutThere

  • Dansdeals Bronze Elite
  • *
  • Join Date: May 2021
  • Posts: 42
  • Total likes: 2
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
    • Precious Metals Live Prices
  • Location: Brooklyn
https://forums.dansdeals.com/index.php?topic=124462.msg2451278#msg2451278

Can someone make the "Lightning Deal! Ends in 3h 23m 00s" time get updated automatically?
Check Out My Website Here!

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6657
  • Total likes: 2588
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
Strikeout (s) (/s) does not seem to be recognized in a thread title. Maybe change the DDF link generator to not include that in the tile?
Thank you for the feedback. I'm aware of it, and I'll fix it iyh when I get a chance.
« Last Edit: May 25, 2021, 11:11:16 PM by Yo ssi »
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline Yo ssi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Aug 2019
  • Posts: 6657
  • Total likes: 2588
  • DansDeals.com Hat Tips 60
  • Gender: Male
    • View Profile
https://forums.dansdeals.com/index.php?topic=124462.msg2451278#msg2451278

Can someone make the "Lightning Deal! Ends in 3h 23m 00s" time get updated automatically?

Funny to see how quickly people get spoiled, can you imagine just a short while ago you couldn't even see that it was a lightning deal?!

To answer your question the answer is no. Deals here are (unfortunately?) only for people who can add the time left to the time of the post.
« Last Edit: May 25, 2021, 11:13:01 PM by Yo ssi »
_    ,
' )  /
 /  / __   _   _   o
(__/_(_)  /_)_/_)_<_
 //
(/

Offline OutThere

  • Dansdeals Bronze Elite
  • *
  • Join Date: May 2021
  • Posts: 42
  • Total likes: 2
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
    • Precious Metals Live Prices
  • Location: Brooklyn
Funny to see how quickly people get spoiled, can you imagine just a short while ago you couldn't even see that it was a lightning deal?!

To answer your question the answer is no. Deals here are (unfortunately?) only for people who can add the time left to the time of the post.
Or can click on links.
Whoa! I was just looking to make this site better...
Check Out My Website Here!

Offline aygart

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: May 2008
  • Posts: 17395
  • Total likes: 14333
  • DansDeals.com Hat Tips 14
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Funny to see how quickly people get spoiled, can you imagine just a short while ago you couldn't even see that it was a lightning deal?!

To answer your question the answer is no. Deals here are (unfortunately?) only for people who can add the time left to the time of the post.
Can it say the actual end time?
Feelings don't care about your facts

Offline TzviR

  • Dansdeals Platinum Elite + Lifetime Silver Elite
  • *****
  • Join Date: Sep 2020
  • Posts: 668
  • Total likes: 665
  • DansDeals.com Hat Tips 3
    • View Profile
    • [b]Learn to play for a kumzits in 5 weeks!
  • Location: Fl
Thank you for the feedback. I'm aware of it, and I'll fix it iyh when I get a chance.
Ok great! Thanks!
Absolutely love it btw, it’s beyond amazing! :D

My  prizes from CV :)