-
-
Save alexblyth/113439 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
CmdUtils.CreateCommand({ | |
name: "check-tech-news", | |
execute: function() { | |
var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator); | |
var browserWindow = windowManager.getMostRecentWindow("navigator:browser"); | |
var browser = browserWindow.getBrowser(); | |
browser.loadOneTab("http://slashdot.org", null, null, null, false, false); | |
browser.loadOneTab("http://arstechnica.com", null, null, null, false, false); | |
browser.loadOneTab("http://theregister.co.uk", null, null, null, false, false); | |
} | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment