Extension:Shariff

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
Shariff
Release status: stable
Implementation User interface
Description Insert 1-click "Like" buttons that do not share user-information using Shariff.
Author(s) Niki Hansche (NikiWikitalk)
Latest version 2.0 (2018-10-25)
Database changes No
License MIT License
Download
README (GitHub)
Hooks used
ParserFirstCallInit
BeforePageDisplay
LanguageGetMagic
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).

Installation[edit]

  1. Unpack in the extensions-folder of your mediawiki.
  2. Edit Shariff/shariff-backend/index.php 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.