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

Offline justmeha

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Feb 2019
  • Posts: 1237
  • Total likes: 119
  • DansDeals.com Hat Tips 9
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #345 on: February 18, 2021, 12:31:13 PM »
the one on the right is from the TG bot, the one on the left is the one i used. as you can see they are not the same.



p.s. the reason i go to such length to respond is because i agree that it would be a disrespect to your hard work to take out your branding if you took the time to put it there.

Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #346 on: February 18, 2021, 12:59:04 PM »
I herby stand corrected.

As for lighting deals, they don't seem to be very popular, probably since they don't receive HTs. (or is that only deal of the day?)

How would you like it to be displayed?

Offline justmeha

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Feb 2019
  • Posts: 1237
  • Total likes: 119
  • DansDeals.com Hat Tips 9
    • View Profile
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #347 on: February 18, 2021, 01:06:26 PM »
How would you like it to be displayed?
no particular way.

it was just a suggestion (as i had, like you know apparently :P, just bumped into it)

Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #348 on: February 18, 2021, 03:15:08 PM »
Updated:

  • Added lighting deals support.
  • Special thanks to @justmeha.


Sample below:

Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!

Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #350 on: February 19, 2021, 12:29:03 AM »
Bug squashed!

  • Fixed issue where Bot was only working for lightning deals ;)

@SPGDUDE

Online YitzyS

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Jan 2015
  • Posts: 2986
  • Total likes: 5154
  • DansDeals.com Hat Tips 21
  • Gender: Male
    • View Profile
  • Location: Lakewood, NJ
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #351 on: February 19, 2021, 12:34:43 AM »
Yo ssi, I think this would be the correct thread for these posts...  :D

Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #352 on: February 19, 2021, 12:46:35 AM »
Yo ssi, I think this would be the correct thread for these posts...  :D
That thread is for forum specific improvements (I guess there hasn't been any??). Besides there's nothing like a pinned thread ;)

Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #353 on: February 23, 2021, 12:48:18 PM »
For those without access to telegram, you can try this webpage

Let me know if it works for you!
« Last Edit: February 23, 2021, 02:07:53 PM by Yo ssi »

Online YitzyS

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Jan 2015
  • Posts: 2986
  • Total likes: 5154
  • DansDeals.com Hat Tips 21
  • Gender: Male
    • View Profile
  • Location: Lakewood, NJ
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #354 on: February 23, 2021, 01:02:47 PM »
For those without access to telegram, you can try this webpage

Let me know if it works for you!
My filter blocks it, as it blocks most Google stuff.  :(

Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #355 on: February 23, 2021, 01:24:59 PM »
My filter blocks it, as it blocks most Google stuff.  :(
Can you request a site?

Online YitzyS

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Jan 2015
  • Posts: 2986
  • Total likes: 5154
  • DansDeals.com Hat Tips 21
  • Gender: Male
    • View Profile
  • Location: Lakewood, NJ
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #356 on: February 23, 2021, 01:27:20 PM »
Can you request a site?
I can, but I doubt they'll be able to unblock Google.com without opening every extension.

Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #357 on: February 23, 2021, 01:53:08 PM »
I can, but I doubt they'll be able to unblock Google.com without opening every extension.
I was referring to the specific site.

Online YitzyS

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Jan 2015
  • Posts: 2986
  • Total likes: 5154
  • DansDeals.com Hat Tips 21
  • Gender: Male
    • View Profile
  • Location: Lakewood, NJ
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #358 on: February 23, 2021, 02:05:46 PM »
I was referring to the specific site.
Seems like maybe customer service can try to open this specific site, but I would have to call them...





Online Yo ssi

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Aug 2019
  • Posts: 3397
  • Total likes: 1025
  • DansDeals.com Hat Tips 38
  • Gender: Male
    • View Profile
  • Programs: @myi so list them as Dan does!
Re: Amazon DD Bookmarklet: Have Chrome Make A DDF Friendly Link On Amazon
« Reply #359 on: February 23, 2021, 02:08:29 PM »
Seems like maybe customer service can try to open this specific site, but I would have to call them...




I updated the site link try again.
https://sites.google.com/view/ddflink
« Last Edit: February 23, 2021, 02:17:57 PM by Yo ssi »