2014-02-13 19:12:39 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2014-06-19 00:56:02 +00:00
|
|
|
|
2019-01-17 18:18:31 +00:00
|
|
|
const {AboutPagesUtils} = ChromeUtils.import("resource://gre/modules/AboutPagesUtils.jsm");
|
2017-11-09 16:36:57 +00:00
|
|
|
|
2014-02-13 19:12:39 +00:00
|
|
|
var gContainer;
|
2016-11-11 23:22:34 +00:00
|
|
|
window.onload = function() {
|
2014-02-13 19:12:39 +00:00
|
|
|
gContainer = document.getElementById("abouts");
|
2018-09-21 00:31:02 +00:00
|
|
|
AboutPagesUtils.visibleAboutUrls.forEach(createProtocolListing);
|
2017-10-15 18:50:30 +00:00
|
|
|
};
|
2014-06-19 00:56:02 +00:00
|
|
|
|
2018-09-21 00:31:02 +00:00
|
|
|
function createProtocolListing(aUrl) {
|
2014-02-13 19:12:39 +00:00
|
|
|
var li = document.createElement("li");
|
|
|
|
var link = document.createElement("a");
|
2018-09-21 00:31:02 +00:00
|
|
|
var text = document.createTextNode(aUrl);
|
2014-06-19 00:56:02 +00:00
|
|
|
|
2018-09-21 00:31:02 +00:00
|
|
|
link.href = aUrl;
|
2014-02-13 19:12:39 +00:00
|
|
|
link.appendChild(text);
|
|
|
|
li.appendChild(link);
|
|
|
|
gContainer.appendChild(li);
|
|
|
|
}
|