From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg

Release status:Extension status stable

ImplementationTemplate:Extension#type User interface
DescriptionTemplate:Extension#description Insert 1-click "Like" buttons that do not share user-information using Shariff.
Author(s)Template:Extension#username Niki Hansche (NikiWikitalk)
Latest versionTemplate:Extension#version 1.0 (2015-12-06)
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license MIT License
Hooks usedTemplate:Extension#hook

Translate the Shariff extension if it is available at translatewiki.net

Check usage and version matrix.

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

About Shariff[edit]

Give Social Media Buttons Some Privacy[edit]

Shariff enables website users to share their favorite content without compromising their privacy. Demo.

Facebook, Google+ and Twitter 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).


  1. Unpack in the extensions-folder of your mediawiki.
  2. Edit Shariff/shariff-backend/shariff.json and set the key "domain": to your domain name (omit the protocol http:// or https://). This is necessary for the share counters to appear.
  3. Add require_once("$IP/extensions/Shariff/Shariff.php"); to LocalSettings.php
  4. Write {{#shariffLike:}} wherever you want to use social-media-buttons.