Skip to content

Instantly share code, notes, and snippets.

@draeton
Created July 13, 2012 15:10
Show Gist options
  • Save draeton/3105406 to your computer and use it in GitHub Desktop.
Save draeton/3105406 to your computer and use it in GitHub Desktop.
Testing the chrome extension history API
{
"name": "Test",
"version": "0.1",
"manifest_version": 2,
"description": "Test",
"permissions": [
"history"
],
"background": {
"scripts": [
"test.js"
]
}
}
(function (window, chrome) {
"use strict";
window.console.log("adding event listener...");
chrome.history.onVisited.addListener(function (result) {
window.console.log("result -> ", result);
});
}(window, chrome));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment