Created
August 13, 2015 16:47
-
-
Save JDHatman/897a0adc93ce6ff5bbf8 to your computer and use it in GitHub Desktop.
cck2 ckf
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
// Autoconfig file written by CCK2 | |
var config = { | |
"cckVersion": "2.1.1", | |
"name": "fotldefault9", | |
"description": "Configures Firefox to Fruit of the Loom standards", | |
"version": "2015.0813.1", | |
"homePage": "http://news.fruit.com", | |
"titlemodifier": "Mozilla Firefox: Fruit of the Loom edition", | |
"extension": { | |
"name": "fotldefault9" | |
}, | |
"lockHomePage": true, | |
"noWelcomePage": true, | |
"noUpgradePage": true, | |
"dontCheckDefaultBrowser": true, | |
"dontUseDownloadDir": true, | |
"disableCrashReporter": true, | |
"disableFirefoxHealthReportUpload": true, | |
"disableFirefoxHealthReport": true, | |
"disableFirefoxUpdates": true, | |
"id": "com.fruitoftheloom.firefoxautoconfig.fotldefault9", | |
"defaultSearchEngine": "Google", | |
"certs": { | |
"ca": [ | |
{ | |
"url": "resource://com.fruitoftheloom.firefoxautoconfig.fotldefault9/certs/ZscalerRootCertificate-2048-SHA256.crt", | |
"trust": "CTc,CTc,CTc" | |
} | |
] | |
} | |
}; | |
var io = Components.classes["@mozilla.org/network/io-service;1"] | |
.getService(Components.interfaces.nsIIOService); | |
var resource = io.getProtocolHandler("resource") | |
.QueryInterface(Components.interfaces.nsIResProtocolHandler); | |
var greDir = Components.classes["@mozilla.org/file/directory_service;1"] | |
.getService(Components.interfaces.nsIProperties) | |
.get("GreD", Components.interfaces.nsIFile); | |
var cck2ModuleDir = greDir.clone(); | |
cck2ModuleDir.append("cck2"); | |
cck2ModuleDir.append("modules"); | |
var cck2Alias = io.newFileURI(cck2ModuleDir); | |
resource.setSubstitution("cck2", cck2Alias); | |
var configModuleDir = greDir.clone(); | |
configModuleDir.append("cck2"); | |
configModuleDir.append("resources"); | |
var configAlias = io.newFileURI(configModuleDir); | |
resource.setSubstitution("com.fruitoftheloom.firefoxautoconfig.fotldefault9", configAlias); | |
Components.utils.import("resource://cck2/CCK2.jsm"); | |
CCK2.init(config); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment