JS script to deduce a visitors' browser history from a manifest file of websites.
JavaScript CoffeeScript
Latest commit 67c0c50 Sep 25, 2014 @motdotla historysniff gif
Permalink
Failed to load latest commit information.
build Adjust ms_measurement Sep 26, 2014
public Adjust ms_measurement Sep 26, 2014
src Adjust ms_measurement Sep 26, 2014
.gitignore Initial commit Sep 26, 2014
Gruntfile.coffee
README.md
historysniff.gif historysniff gif Sep 26, 2014
package.json Initial commit Sep 26, 2014

README.md

historysniff

historysniff

JS script to deduce a visitors' browser history from a manifest file of webapps.

Usage

<script src='/build/historysniff.js'></script>
<script>
  var apps = [
    {"name": "facebook", "url": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yh/r/xQ0DwmqUr-m.png"},
    {"name": "twitter", "url": "https://abs.twimg.com/a/1375759071/t1/img/twitter_web_sprite_icons.png"}
  ];

  historysniff.bind('match', function(result) {
    console.log("match", result);
  });
  historysniff.bind('nomatch', function(result) {
    console.log("nomatch", result);
  });

  historysniff.check(apps);
</script>

Optionally, you can adjust the ms_measurement up or down.

historysniff.ms_measurement = 5000; // in milliseconds (ms)
historysniff.check(apps);

Developer Setup

npm install
grunt

Visit http://localhost:3000 and open up the development console.