mirror of
https://github.com/PurpleI2P/i2pdbrowser
synced 2025-01-14 16:57:58 +00:00
R4SAS
9188271b06
What is CCK2? Answer here: https://mike.kaply.com/cck2/ Updated configuration Add new old reseed certificate Update addressbook Now time to think about one problem - user agent. In FF 60+ removed ability to change it without addons. Former-commit-id: 6e9eeba2096bc36b3521ebc040f733ad8ba06a27
34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
/* This file is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1139509 */
|
|
/* It bolds the Firefox version in the about dialog and unbolds the distribution information */
|
|
/* It can be removed once Firefox 38 ESR is out of support */
|
|
|
|
const EXPORTED_SYMBOLS = [];
|
|
|
|
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
|
|
|
Cu.import("resource://gre/modules/Services.jsm");
|
|
|
|
var observer = {
|
|
observe: function observe(subject, topic, data) {
|
|
switch (topic) {
|
|
case "chrome-document-global-created":
|
|
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
|
win.addEventListener("load", function onLoad(event) {
|
|
win.removeEventListener("load", onLoad, false);
|
|
var doc = event.target;
|
|
var url = doc.location.href.split("?")[0].split("#")[0];
|
|
switch (url) {
|
|
case "chrome://browser/content/aboutDialog.xul":
|
|
doc.querySelector("#version").style.fontWeight = "bold";
|
|
doc.querySelector("#distribution").style.fontWeight = "normal";
|
|
doc.querySelector("#distributionId").style.fontWeight = "normal";
|
|
break;
|
|
}
|
|
}, false);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|