Extension:Shariff

From mediawiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
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 3.0 (2020-04-25)
MediaWiki 1.29+
PHP 7.2+
Database changes No
License MIT License
Download
README (GitHub)

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

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

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[edit]

  • 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:
    wfLoadExtension( 'Shariff' );
    
  • 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.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

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