Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
share-selected-text
Advanced tools
Readme
share selected text on twitter, buffer, and some others. Inspired by medium.com
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:
You can open an issue or follow the contribution guidelines if you want to add another service or social media
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
});
To contribute please consider to respect the following rules:
develop
branch (I personally use git-flow)..erLintrc
rules.fontcustom compile
in the icons directory, the run gulp build:copy:fonts
in project root directory.And don't forget that you are awesome!
v1.1.1
v1.1.0
v1.0.0
v1.0.1
FAQs
share selected text on twitter, buffer, stumbleupon, digg, tumblr & reddit. Inspired by medium.com
The npm package share-selected-text receives a total of 74 weekly downloads. As such, share-selected-text popularity was classified as not popular.
We found that share-selected-text demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.