Created
November 6, 2014 07:49
-
-
Save wbamberg/58b7832ded442fe5b7c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// do not do this in a real add-on, use contentScriptFile instead. | |
var listener = "window.addEventListener('hashchange', function() {" + | |
" alert(window.location.hash);" + | |
"}, false);" | |
var pageMod = require("sdk/page-mod").PageMod({ | |
include: "*.google.ca", | |
contentScript: listener | |
}); | |
require("sdk/tabs").open("https://google.ca"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment