An ethical way of adding social sharing features to your website, without compromising your users' privacy by dropping tracking cookies on them.
Java Perl CSS JavaScript
Latest commit 8927993 Dec 2, 2015 @mischat https when https
Failed to load latest commit information.
gen-config cleaned up the list of social networks Nov 14, 2015
grab-icons Updates the broken icons Nov 14, 2015
images Updates the broken icons Nov 14, 2015
website https when https Dec 2, 2015
.gitignore Started committing code.js to the repo Nov 14, 2015
LICENSE.txt Initial commit of the MIT license May 12, 2011
README First pass at updating the HTML to remove the need for PHP Nov 3, 2015
code.js cleaned up the list of social networks Nov 14, 2015


Updated README file 20110514.

shareNice can now be found on

The software is written in order to provide social sharing features to web developers and website administrators who wish to maintain and protect their users' privacy.

The current version of the system does not rely on anything but the user having JavaScript enabled.

There are two ways which you can use shareNice on your website:

1. 	You can include the following div in your HTML '<div id="shareNice"></div>', and include the following JavaScript in your HTML header :
	'<script src="" type="text/javascript"></script>'

2. 	You can download the software from and you can host it on your own domain.

The demo file supplied with this repository shows how easy it is to include this XHTML-STRICT friends HTML+JS fragment to have a social sharing feature on your website.

The code you need to add to your HTML document is as simple as :
      <script src="" type="text/javascript"></script>
      <link type="text/css" rel="stylesheet" href="" />
      <!--[if IE 6]>
        <link type="text/css" rel="stylesheet" href="" >
   <body onLoad="shareNiceLoad()">
   <!-- This is the shareNice div you need to include in your HTML -->
   <div id="shareNice" style="float:left"></div>
   <!-- The rest of the magic is injected via .js -->


Configuring the shareNice lightbox

One can now reconfigure shareNice, using the following five attributes

services: Takes a comma separate list of domain's which you are interested in including in your shareNice lightbox.
share-label: Allows a website owner to config the text "Share" as they please.
color-scheme: You can choose one of "black", "blue", "green", "orange", "pink", "red" to customise.
icon-size: either "16" or "32", this defines the size of the shareNice icon.
panel-bottom: either "default" or "plain". Where: "plain" gives a non-branded lightbox.

An example of a customised shareNice lightbox could be like so :

<div id="shareNice" color-scheme="black" icon-size="32" share-label="Share this demo" panel-bottom="plain"></div>

The .png files have been generated from the domain's favicon files, and converted using the grab-icons/ script. If you want to refresh/add more domain, you can run the perl script supplied in this repo. If you want to grab more icons, add the domain of the service to grab-icons/icon-domains.txt

In order to generate the main "code.js" file in the root directory of the repository, please "cd gen-config" and then run the "./" script.