Extension:Shariff

MediaWiki extensions manual
Shariff
Release status: stable
Implementation User interface
Description Allows to insert 1-click "Like" buttons that do not share user-information using Shariff.
Author(s) Niki Hansche (NikiWikitalk)
Latest version 2.0 (2023-06-30)
MediaWiki 1.34+
PHP 7.2+
Database changes No
License MIT License
Download
README (GitHub)

The Shariff extension allows for 1-click "Like" buttons that do not share user-information using Shariff, thus protecting users privacy.

About Shariff

Give Social Media Buttons Some Privacy

Shariff enables website users to share their favorite content without compromising their privacy. See the demo of Shariff.

Facebook, Twitter and alike supply official sharing code snippets which quietly siphon personal data from all page visitors. Shariff enables visitors to see how popular your page is on Facebook and share your content with others without needless data leaks.

Shariff (/ˈʃɛɹɪf/) is an open-source, low-maintenance, high-privacy solution maintained by German computer magazine c't and heise online.

Shariff consists of two parts: a simple JavaScript client library and an optional server-side component. The latter fetches the number of likes, tweets and plus-ones. Share buttons and share counts work without a connection between your visitors' browsers and social networks (unless they decide to share, of course).

Installation

  • Download and place the file(s) in a directory called Shariff in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Shariff' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

Add {{#shariffLike:}} wherever you want to use social media buttons.