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.
- Host: GitHub
- URL: https://github.com/motdotla/historysniff
- Owner: motdotla
- Created: 2014-09-26T03:54:30.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-26T04:07:11.000Z (about 11 years ago)
- Last Synced: 2025-06-22T21:37:51.897Z (4 months ago)
- Language: JavaScript
- Size: 1.57 MB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: historysniff.gif
Awesome Lists containing this project
README
# 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.