Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gBrowser.tabContainer.addEventListener('load', function load(event) {
- window.removeEventListener("load", load, false);
- var urlString = 'http://stackoverflow.com/questions/';
- if (gBrowser.currentURI.spec.startsWith(urlString)) {alert('ReadystateComplete')};
- }, false);
- gBrowser.tabContainer.addEventListener('TabSelect', function() {
- var urlString = 'http://stackoverflow.com/questions/';
- if (gBrowser.currentURI.spec.startsWith(urlString)) {alert('TabSelected')}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement