An open API service indexing awesome lists of open source software.

https://github.com/motdotla/historysniff

JS script to deduce a visitors' browser history from a manifest file of websites.
https://github.com/motdotla/historysniff

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# historysniff

historysniff

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

## Usage

```html

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);

```

Optionally, you can adjust the `ms_measurement` up or down.

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

## Developer Setup

```
npm install
grunt
```

Visit and open up the development console.