jssocials
jssocials copied to clipboard
Add Reddit support
Would be cool to be able to submit to Reddit.
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>
Thank you!
@baca130, do you think you could create a PR?
Done
@baca130, thank you! There is a tiny comment to the PR, could you please address it before we merge it?