Updating the Drag-To-Share eXtended share URLs?

How can I update the URLs that Drag-To-Share eXtended generates? At least in version 1.13, sharing items for Twitter and Facebook does not produce the proper url string for actually sharing the content on either network.

Facebook, Twitter, and possibly other networks have since changed the url query string methods for sharing…

Read More

This would require a quick update to the plugin so it writes up-to-date urls, but I don’t know where to look.

Related posts

Leave a Reply

1 comment

  1. The URLs are constructed in the wp-dragtoshare-extended.js Javascript file.

    For most services you can see how the customUrl is constructed and change it right there. For Twitter you should look a bit lower, in the isGD function, because it does an Ajax request to shorten the link – but maybe this is not needed anymore with the current Twitter sharing service?

    If you modify this script you should be aware that the plugin has two versions of the script: wp-dragtoshare-extended.js is the normal version, wp-dragtoshare-extended-packed.js a minified version to speed up loading. The plugin loads the packed version, so either remember to edit that version too (by minifying your edited version) or edit the PHP code so it loads the non-minified version.