tabalinas / jssocials

Social Network Sharing jQuery Plugin
http://js-socials.com
MIT License
464 stars 104 forks source link

Add Reddit support #153

Open kennethjor opened 7 years ago

kennethjor commented 7 years ago

Would be cool to be able to submit to Reddit.

baca130 commented 6 years ago

This is my script and it works.

<div id="share"></div>

<script>
   $.extend(jsSocials.shares, {
    reddit: {
            label: "Reddit",
            logo: "fa fa-reddit",
            shareUrl: "https://www.reddit.com/submit?url={url}",
            countUrl: ""
        }
    });

    $("#share").jsSocials({
        shares: ["twitter", "facebook", "googleplus", "vkontakte", "pinterest", "stumbleupon", "whatsapp", "email", "reddit"],
        shareIn: "popup"
    });
</script>
<style>
.jssocials-share-reddit .jssocials-share-link {
  background: #64a4ff; }
  .jssocials-share-reddit .jssocials-share-link:hover {
    background: #4585ee; }
</style>

screenshot - 29_12

tabalinas commented 6 years ago

Thank you!

@baca130, do you think you could create a PR?

baca130 commented 6 years ago

Done

tabalinas commented 6 years ago

@baca130, thank you! There is a tiny comment to the PR, could you please address it before we merge it?