Created
July 29, 2013 20:23
-
-
Save nmaier/6107472 to your computer and use it in GitHub Desktop.
hidden about:s
This file contains hidden or 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
var abouts = (function({classes: Cc, interfaces: Ci, utils: Cu}) { | |
const {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); | |
return Object.keys(Cc).map(function(e) { | |
var m = e.match(/about;1\?what=(.+)$/); | |
if (!m) | |
return null; | |
m = "about:" + m[1]; | |
var s = Cc[e].getService(Ci.nsIAboutModule); | |
if (!(s.getURIFlags(Services.io.newURI(m, null, null)) & | |
Ci.nsIAboutModule.HIDE_FROM_ABOUTABOUT)) | |
return null; | |
return m; | |
}).filter(function(e) !!e).sort(); | |
})(Components); | |
console.log(abouts.join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment