Description
share-this is a small JavaScript library by Massimo Artizzu that adds Medium-style text sharing to any web page. When a reader selects some text, a little popover appears above the selection with actions such as sharing the snippet on Twitter. The project page, styled to look like a Medium article, demonstrates it live and explains the design. The library has no dependencies, with no jQuery and no icon sets, and aims to be as unopinionated as possible. That means it is highly customisable, both in how it looks and in which sharing channels it offers; it ships with a ready-made stylesheet, but you can replace it entirely, since it relies on one configurable CSS class. It builds a very minimal DOM structure, and its behaviour is not fixed in advance, so developers decide what the sharing actions do. It suits blogs and content sites.…
Highlights
- Popover on text selection for sharing
- No dependencies
- Customisable look and sharing channels
- Minimal DOM footprint
Ratings & Reviews
No ratings yet
Be the first to rate Share-this.
People also visit
Sharingbuttons.io
Super fast and easy Social Media Sharing Buttons. No JavaScript. No tracking
SimpleSharingButtons
Share to Facebook, Twitter, and other social networks using simple HTML buttons
Make Medium Readable Again
Improves the Medium reading experience, ruined by user engagement tactics
Share-this FAQ
What is share-this?
A JavaScript library that shows a sharing popover when readers select text on a page, similar to Medium.
Does it need jQuery or other libraries?
No. It has no dependencies.
Can I change how it looks?
Yes. It includes a stylesheet, but you can replace it completely. The popover uses a CSS class you can configure.
Can I choose the sharing options?
Yes. The sharing channels are customisable and the behaviour is not predetermined.
What are the best Share-this alternatives?
Popular alternatives to Share-this include Make Medium Readable Again and Markamd. See all Share-this alternatives


