All Projects → VincentLoy → Share Selected Text

VincentLoy / Share Selected Text

Licence: mit
share selected text on twitter, buffer, and some others. Inspired by medium.com

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Share Selected Text

Simplesharingbuttons
Share to Facebook, Twitter, Google+ and other social networks using simple HTML buttons.
Stars: ✭ 147 (+129.69%)
Mutual labels:  share, twitter, facebook, social-media
Spam Bot 3000
Social media research and promotion, semi-autonomous CLI bot
Stars: ✭ 79 (+23.44%)
Mutual labels:  twitter, facebook, social-media
Learning Social Media Analytics With R
This repository contains code and bonus content which will be added from time to time for the book "Learning Social Media Analytics with R" by Packt
Stars: ✭ 102 (+59.38%)
Mutual labels:  twitter, facebook, social-media
Vuepress Plugin Social Share
📣 Social sharing plugin for VuePress
Stars: ✭ 27 (-57.81%)
Mutual labels:  share, twitter, facebook
Network Avatar Picker
A npm module that returns user's social network avatar. Supported providers: facebook, instagram, twitter, tumblr, vimeo, github, youtube and gmail
Stars: ✭ 74 (+15.63%)
Mutual labels:  buffer, twitter, facebook
gobo
💭 Gobo: Your social media. Your rules.
Stars: ✭ 87 (+35.94%)
Mutual labels:  social-media, facebook, twitter
Social Media Data Scripts
Stars: ✭ 188 (+193.75%)
Mutual labels:  twitter, facebook, social-media
Social Links
Simple library to count shares and generate share buttons
Stars: ✭ 91 (+42.19%)
Mutual labels:  share, twitter, facebook
React Share Button
📱 React share button component with web-share api and fallback modal with native intent urls
Stars: ✭ 89 (+39.06%)
Mutual labels:  share, twitter, facebook
Sharect
🔗 A lightweight JavaScript library to let users share their text selections to social networks.
Stars: ✭ 192 (+200%)
Mutual labels:  share, medium, javascript-library
Socialreaper
Social media scraping / data collection library for Facebook, Twitter, Reddit, YouTube, Pinterest, and Tumblr APIs
Stars: ✭ 338 (+428.13%)
Mutual labels:  twitter, facebook, social-media
Sns auth
通用第三方登录SDK,支持微信,微信扫码,QQ,微博登录,支付宝登录,Facebook,Line,Twitter,Google
Stars: ✭ 520 (+712.5%)
Mutual labels:  twitter, facebook
Social Amnesia
Forget the past. Social Amnesia makes sure your social media accounts only show your posts from recent history, not from "that phase" 5 years ago.
Stars: ✭ 656 (+925%)
Mutual labels:  twitter, social-media
Nativeshare
NativeShare是一个整合了各大移动端浏览器调用原生分享的插件
Stars: ✭ 751 (+1073.44%)
Mutual labels:  share, javascript-library
React Login Modal Sm
Customizable React Social Media login modal
Stars: ✭ 23 (-64.06%)
Mutual labels:  facebook, social-media
Ngx Auth Firebaseui
Angular Material UI component for firebase authentication
Stars: ✭ 518 (+709.38%)
Mutual labels:  twitter, facebook
Social Network Harvester V1.0
Stars: ✭ 5 (-92.19%)
Mutual labels:  twitter, facebook
Ultimate Metatags
A large snippet for your page's <head> that includes all the meta tags you'll need for OPTIMAL sharing and SEO. Extensive work has been put into ensuring you have the optimal images for the most important social media platforms.
Stars: ✭ 24 (-62.5%)
Mutual labels:  twitter, facebook
Socioboard 4.0
Socioboard is world's first and open source Social Technology Enabler. Socioboard Core is our flagship product.
Stars: ✭ 475 (+642.19%)
Mutual labels:  twitter, social-media
Social ids
Get user ids from social network handlers
Stars: ✭ 9 (-85.94%)
Mutual labels:  twitter, facebook

ShareSelectedText.js

share selected text on twitter, buffer, and some others. Inspired by medium.com

share selected text - ShareSelectedText.js

I made this small javascript library for my personal blog, the existing libraries doesn't fit my needs, so I created that one.

ShareSelectedText.js currently support the following social medias & services:

  • twitter
  • buffer
  • reddit
  • stumbleupon
  • tumblr
  • digg
  • linkedin
  • facebook

You can open an issue or follow the contribution guidelines if you want to add another service or social media

Getting started

Add the CSS file (you have to put the dist/fonts directory and the shareSelectedText.min.css file in the same directory)

<link rel="stylesheet" href="dist/shareSelectedText.min.css"/>

Add the Javascript file before body HTML closing tag.

<script src="dist/shareSelectedText.js"></script>

Then, you can init the plugin :

// plugin initialization with default options
shareSelectedText('.my-super-selector', {
    tooltipClass: '',    // cool, if you want to customize the tooltip
    sanitize: true,      // will sanitize the user selection to respect the Twitter Max length (recommended) 
    buttons: [           // services that you want to enable you can add : 
        'twitter',       // - twitter, tumblr, buffer, stumbleupon, digg, reddit, linkedin, facebook
        'buffer'
    ],
    anchorsClass: '',    // class given to each tooltip's links
    twitterUsername: '', // for twitter widget, will add 'via @twitterUsername' at the end of the tweet.
    facebookAppID: '', // Can also be an HTML element inside the <head> tag of your page : <meta property="fb:APP_ID" content="YOUR_APP_ID"/>
    facebookDisplayMode: 'popup', //can be 'popup' || 'page'
    tooltipTimeout: 250  //Timeout before that the tooltip appear in ms
});

Other Builds

Contribution Guidelines

To contribute please consider to respect the following rules:

  • Work in a different branch, well named, based on current develop branch (I personally use git-flow).
  • respect the .erLintrc rules.
  • If you add a new social media or service:
    • add the service or social media SVG icon in dev/icons
    • compile the font using fontcustom install fontcustom the run fontcustom compile in the icons directory, the run gulp build:copy:fonts in project root directory.
    • Don't forget to add service's name and url.
  • small changes are better than huge changes.

And don't forget that you are awesome!

Changelog

  • v1.1.1

    • Make tooltip not clickable when not active (@DustinArmstrong)
  • v1.1.0

  • v1.0.0

    • initial release
  • v1.0.1

    • avoid font icons name conflicts by adding sst- prefix
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].