Kiril__777
Уже готовые кнопки: https://forum.mozilla-russia.org/viewto … 15#p774515
Добавлено 26-12-2019 18:55:22
Код для кнопки "Персонализация":
menuitem.viewCustomizeToolbar::before { content: "" !important; background: url("../icons/edit.png") !important; }
добавить в файл icons_in_menu.
Отредактировано kokoss (26-12-2019 18:55:22)
Win7
Отсутствует
Пожалуйста, добавьте, чтобы при старте закачки открывалось окно закачки и оставалось на экране до клика на нем или мимо него.
есть настройка browser.download.panel.shown она после первой загрузки переключается в true
Не знаю, скорее всего уже и не актуально. Но если в каталоге установки firefox используется config.js, то можно заблокировать переключение browser.download.panel.shown, добавлением в него строки lockPref("browser.download.panel.shown", false); и это окно будет всплывать при старте каждой закачки.
Отсутствует
sandro79
Подтверждаю ! Config.js Для портабл
/....Заблоктрованые настройки...// // try {(ios => ios.getProtocolHandler("resource") .QueryInterface(Ci.nsIResProtocolHandler) .setSubstitution("chrome", ios.newFileURI( Cc["@mozilla.org/file/directory_service;1"] .getService(Ci.nsIDirectoryService) .QueryInterface(Ci.nsIProperties) .get("UChrm", Ci.nsIFile) )) )(Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService));} catch(ex) {Cu.reportError(ex);} lockPref("extensions.htmlaboutaddons.recommendations.enabled", false); lockPref("extensions.htmlaboutaddons.enabled", false); lockPref("browser.contentblocking.report.proxy_extension.url", ""); lockPref("browser.download.panel.shown", false); lockPref("media.mediacapabilities.from-database", false); lockPref("dom.push.enabled", false); lockPref("security.insecure_field_warning.contextual.enabled", false); lockPref("security.insecure_password.ui.enabled", false); lockPref("signon.autofillForms.http", true); lockPref("dom.webnotifications.enabled", false); lockPref("media.autoplay.enabled.user-gestures-needed", false); lockPref("browser.pagethumbnails.capturing_disabled", true); lockPref("security.tls.version.enable-deprecated", true); lockPref("reader.parse-on-load.enabled", false); lockPref("toolkit.telemetry.enabled", false); lockPref("plugin.load_flash_only", false); lockPref("network.predictor.cleaned-up", true); lockPref("alerts.showFavicons", true); lockPref("extensions.legacy.enabled", true); lockPref("xpinstall.signatures.required", false); lockPref("media.eme.enabled", false); lockPref("extensions.langpacks.signatures.required", false); lockPref("geo.provider.ms-windows-location", false); lockPref("network.trr.uri", "https://cloudflare-dns.com/dns-query"); lockPref("toolkit.cosmeticAnimations.enabled", false); lockPref("dom.storageManager.enabled", false); lockPref("toolkit.legacyUserProfileCustomizations.stylesheets", true); // try {(os => os.addObserver(function obs(s, topic) { os.removeObserver(obs, topic); var ini = Cc["@mozilla.org/file/directory_service;1"] .getService(Ci.nsIDirectoryService) .QueryInterface(Ci.nsIProperties).get("GreD", Ci.nsIFile); ini.append("portable.ini"); var parser = Cc["@mozilla.org/xpcom/ini-parser-factory;1"] .getService(Ci.nsIINIParserFactory).createINIParser(ini); var section = "Env", key = "MOZ_FORCE_DISABLE_E10S"; var pref = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch) .getBoolPref("browser.tabs.remote.autostart", true) ? "" : "1"; var state; try { state = parser.getString(section, key); } catch(ex) {} if (state === pref) return; Cc["@mozilla.org/process/environment;1"].getService(Ci.nsIEnvironment).set(key, pref); parser.QueryInterface(Ci.nsIINIParserWriter).setString(section, key, pref); parser.writeFile(ini); }, "quit-application-granted", false))( Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService) )} catch(ex) {Cu.reportError(ex);} // try { Cu.createDocumentEncoder && Cc["@mozilla.org/moz/jssubscript-loader;1"] .getService(Ci.mozIJSSubScriptLoader).loadSubScript(String.raw` data:,var {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");%0Avar {AddonManager} = ChromeUtils.import("resource://gre/modules/AddonManager.jsm");%0A%0Athis.lazyModules = {%0A%09OS: "resource://gre/modules/osfile.jsm",%0A%09Services: "resource://gre/modules/Services.jsm",%0A%09ConsoleAPI: "resource://gre/modules/Console.jsm",%0A%09Blocklist: "resource://gre/modules/Blocklist.jsm",%0A%09AddonInternal: "resource://gre/modules/addons/XPIDatabase.jsm"%0A};%0Aif ("@mozilla.org/intl/domlocalization;1" in Cc)%0A%09this.lazyModules.RDFDataSource = "resource://gre/modules/addons/RDFDataSource.jsm";%0Aelse%0A%09// Firefox 67+%0A%09// Bug 1523194 - Remove XPIDL for DOMLocalization and use do_ImportModule instead%0A%09// https://bugzilla.mozilla.org/show_bug.cgi?id=1523194%0A%09//%0A%09// Bug 857458 - Remove support for update.rdf%0A%09// https://bugzilla.mozilla.org/show_bug.cgi?id=857458%0A%0A%09XPCOMUtils.defineLazyGetter(this, "RDFDataSource", () => {%0A%09%09var obs = {};%0A%09%09var scs = Cc["@mozilla.org/streamConverters;1"].getService(Ci.nsIStreamConverterService);%0A%09%09var sis = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(Ci.nsIStringInputStream);%0A%09%09var sl = Cc["@mozilla.org/network/stream-loader;1"].createInstance(Ci.nsIStreamLoader);%0A%0A%09%09var gzip = "H4sIAAAAAAAACt19/XfbRq7o7/krGG9PqzSO/CFZtup190qU1Of3Eicndne7N8nGtETb3EiiSlJx3K7/94eP+cCQQ1lO0t17bk5Li+QMBsBgMBgMBgy2vg/OrpM8OE2X2TgOwnQSB6M0mwXwLF9e/DMeF0GRBsV1HBRxNsuD9JJuXqS/JdNpFLxaXkyT8aPg++B5Mo7nebwZfGwGu83tZnB8GUTBOF3cmjqvngc3UR7M0yKYJHmRJRfLIp4EN0lxDQWSHMFcJlOA8fd0GYyjeZBeFFECf+ZxEBXBdVEsftjamnHbzTS72gKYW9DaVjP4fuvRo63vv0cYRNEsnSyncTDO4qiIc0BlHt8EvVfHwWWaBdF4HOd5Mr8KovkEiyaXt3j3ejAKrrJocZ03AUqMwK7SaIrcAC5cABYXABN+5nGWRNMkj4kyqhIAolFwvZwB3tDohIpCY7Nm0JvmKcJKLkVxZEWaJVfJPJpOb4NpGk2AGZdZOgOkEJOtX148p/K6sahI0nmQX6fL6QTBjadpHkPVWVSMr6mkhsc8jea3RPUkKiJT+DKdTtMbJBYrxJ+gI+AGwU2j23RZEOEB/Fgs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WVmZWpNVHWKUGhrq5hwFao7yvTT/V1qdFi14zxJ00lRVlrRysJHnimiUKnMMsLC9HRZpbhrX/pO9/+6pKPuvICzJ4jZI4JekImZ9q3bh7d2FmlO9orc49C75iqHrI5OgRFWimudRZNYfIXUwGZYWk3yRgo7mHjDB5dtQG+W4VdrSweiCWtCWea+cL5QqhJR8PaMNhvU7oT7TT7urpI7mX9gqI8s7Flj06EnJ8hJf65BHKxCKhO2sUvnzCpRPDg4zPEVDHinjqLBgHwSNVVeJOhOLmlyjNns0U5KgEqUgNjusVEpuuX6cCrHUSECpVR0lDCdLNR7P3/xuR++MFOByr5ps1BachFTcxBPRnk5Qcjsy9G5RA9LRLjpr6tUB07+T7sqrMsJynJTDY/WndWTqPlD9Fzsc0qC6/MC6ZQLWfk0O0Y0k9/BvLHCiKQnJhaNwtAYHI06taHqiJeJb/FGV5bjxL3CZN6+gUoyBbj4BE/paL7qXLsQ8EHCzlEP3N4RD2u6xwa2q29qw2xEMXnIh2apxzRSdZklOWNFo8yKFTGEpVB4+UmJsriocINK22+azebq9l2Xqc30K+XLk+nxNNLmIvTHFg5K+qQz+6FlWg6w/abJb/FZqgKTpZln3ur4YYBzap6VcorYws0qVHcp4GFqDb6XyVQYphwtnEPRs5RihfF1uTdPm/iqeZOBodsr0lkypmKbRADaEcP5GJiWYY42+sXIeTihw3HvHv1//RS+YW3HAAA=";%0A%09%09sis.data = atob(gzip);%0A%09%09obs.onStreamComplete = (a, b, c, d, result) => Cu.evalInSandbox(String.fromCharCode(...result), this);%0A%09%09sl.init(obs);%0A%09%09var converter = scs.asyncConvertData("gzip", "uncompressed", sl, null);%0A%09%09converter.onStartRequest(null, null);%0A%0A%09%09var args = [null, null, sis, 0, sis.data.length];%0A%09%09// Bug 1525319 - Investigate if we can remove Context argument from Channel methods (Firefox 67+)%0A%09%09// https://bugzilla.mozilla.org/show_bug.cgi?id=1525319%0A%09%09if (converter.onDataAvailable.length == 4) args.shift();%0A%09%09converter.onDataAvailable(...args);%0A%0A%09%09converter.onStopRequest(null, null, null);%0A%0A%09%09return RDFDataSource;%0A%09});%0AXPCOMUtils.defineLazyModuleGetters(this, this.lazyModules);%0Adelete this.lazyModules;%0A%0AXPCOMUtils.defineLazyGetter(this, "BOOTSTRAP_REASONS", () =>%0A%09ChromeUtils.import("resource://gre/modules/addons/XPIProvider.jsm", {})%0A%09%09.XPIProvider.BOOTSTRAP_REASONS%0A);%0AXPCOMUtils.defineLazyGetter(this, "logger", () =>%0A%09ChromeUtils.import("resource://gre/modules/Log.jsm", {})%0A%09%09.Log.repository.getLogger("addons.bootstrap")%0A);%0A%0A%0A// RDFManifestConverter.jsm%0Aconst RDFURI_INSTALL_MANIFEST_ROOT = "urn:mozilla:install-manifest";%0A%0Afunction EM_R(aProperty) {%0A%09return %60http://www.mozilla.org/2004/em-rdf%23%24{aProperty}%60;%0A}%0Afunction getValue(literal) {%0A%09return literal && literal.getValue();%0A}%0Afunction getProperty(resource, property) {%0A%09return getValue(resource.getProperty(EM_R(property)));%0A}%0A%0Aclass Manifest {%0A%09constructor(ds) {%0A%09%09this.ds = ds;%0A%09}%0A%09static loadFromString(text) {%0A%09%09return new this(RDFDataSource.loadFromString(text));%0A%09}%0A%09static loadFromBuffer(buffer) {%0A%09%09return new this(RDFDataSource.loadFromBuffer(buffer));%0A%09}%0A%09static async loadFromFile(uri) {%0A%09%09return new this(await RDFDataSource.loadFromFile(uri));%0A%09}%0A}%0A%0Aclass InstallRDF extends Manifest {%0A%09_readProps(source, obj, props) {%0A%09%09for (let prop of props) {%0A%09%09%09let val = getProperty(source, prop);%0A%09%09%09if (val != null) {%0A%09%09%09%09obj[prop] = val;%0A%09%09%09}%0A%09%09}%0A%09}%0A%09_readArrayProp(source, obj, prop, target, decode = getValue) {%0A%09%09let result = Array.from(%0A%09%09%09source.getObjects(EM_R(prop)), target => decode(target)%0A%09%09);%0A%09%09if (result.length) {%0A%09%09%09obj[target] = result;%0A%09%09}%0A%09}%0A%09_readArrayProps(source, obj, props, decode = getValue) {%0A%09%09for (let [prop, target] of Object.entries(props)) {%0A%09%09%09this._readArrayProp(source, obj, prop, target, decode);%0A%09%09}%0A%09}%0A%09_readLocaleStrings(source, obj) {%0A%09%09this._readProps(source, obj, ["name", "description", "creator", "homepageURL"]);%0A%09%09this._readArrayProps(source, obj, {%0A%09%09%09locale: "locales",%0A%09%09%09developer: "developers",%0A%09%09%09translator: "translators",%0A%09%09%09contributor: "contributors",%0A%09%09});%0A%09}%0A%09decode() {%0A%09%09let root = this.ds.getResource(RDFURI_INSTALL_MANIFEST_ROOT);%0A%09%09let result = {};%0A%0A%09%09let props = [%0A%09%09%09"id", "version", "type", "updateURL", "optionsURL",%0A%09%09%09"optionsType", "aboutURL", "iconURL",%0A%09%09%09"bootstrap", "unpack", "strictCompatibility"%0A%09%09];%0A%09%09this._readProps(root, result, props);%0A%0A%09%09let decodeTargetApplication = source => {%0A%09%09%09let app = {maxVersion: "*"};%0A%09%09%09this._readProps(source, app, ["id", "minVersion"]);%0A%09%09%09return app;%0A%09%09};%0A%0A%09%09let decodeLocale = source => {%0A%09%09%09let localized = {};%0A%09%09%09this._readLocaleStrings(source, localized);%0A%09%09%09return localized;%0A%09%09};%0A%0A%09%09this._readLocaleStrings(root, result);%0A%0A%09%09this._readArrayProps(%0A%09%09%09root, result, {"targetPlatform": "targetPlatforms"}%0A%09%09);%0A%09%09this._readArrayProps(%0A%09%09%09root, result, {"targetApplication": "targetApplications"}, decodeTargetApplication%0A%09%09);%0A%09%09this._readArrayProps(%0A%09%09%09root, result, {"localized": "localized"}, decodeLocale%0A%09%09);%0A%09%09this._readArrayProps(%0A%09%09%09root, result, {"dependency": "dependencies"}, source => getProperty(source, "id")%0A%09%09);%0A%09%09return result;%0A%09}%0A}%0A// fim RDFManifestConverter.jsm%0A%0A%0A// BootstrapLoader.jsm%0A/**%0A * Valid IDs fit this pattern.%0A */%0Avar gIDTest = /^(\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}|[a-z0-9-\._]*\@[a-z0-9-\._]+)$/i;%0A%0A// Properties that exist in the install manifest%0Aconst PROP_METADATA%09= [%0A%09"id", "version", "type", "internalName", "updateURL",%0A%09"optionsURL", "optionsType", "aboutURL", "iconURL"%0A];%0Aconst PROP_LOCALE_SINGLE = ["name", "description", "creator", "homepageURL"];%0Aconst PROP_LOCALE_MULTI%09= ["developers", "translators", "contributors"];%0A%0A// Map new string type identifiers to old style nsIUpdateItem types.%0A// Retired values:%0A// 32 = multipackage xpi file%0A// 8 = locale%0A// 256 = apiextension%0A// 128 = experiment%0A// theme = 4%0Aconst TYPES = {%0A%09extension: 2,%0A%09dictionary: 64,%0A};%0A%0Aconst COMPATIBLE_BY_DEFAULT_TYPES = {%0A%09extension: true,%0A%09dictionary: true,%0A};%0A%0Aconst hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);%0A%0Afunction isXPI(filename) {%0A%09let ext = filename.slice(-4).toLowerCase();%0A%09return ext === ".xpi" || ext === ".zip";%0A}%0A%0A/**%0A * Gets an nsIURI for a file within another file, either a directory or an XPI%0A * file. If aFile is a directory then this will return a file: URI, if it is an%0A * XPI file then it will return a jar: URI.%0A *%0A * @param {nsIFile} aFile%0A *%09%09The file containing the resources, must be either a directory or an XPI file%0A *%0A * @param {string} aPath%0A *%09%09The path to find the resource at, "/" separated. If aPath is empty%0A *%09%09then the uri to the root of the contained files will be returned%0A *%0A * @returns {nsIURI}%0A *%09%09An nsIURI pointing at the resource%0A */%0Afunction getURIForResourceInFile(aFile, aPath) {%0A%09if (!isXPI(aFile.leafName)) {%0A%09%09let resource = aFile.clone();%0A%09%09if (aPath)%0A%09%09%09aPath.split("/").forEach(part => resource.append(part));%0A%0A%09%09return Services.io.newFileURI(resource);%0A%09}%0A%09return buildJarURI(aFile, aPath);%0A}%0A%0A/**%0A * Creates a jar: URI for a file inside a ZIP file.%0A *%0A * @param {nsIFile} aJarfile%0A *%09%09The ZIP file as an nsIFile%0A *%0A * @param {string} aPath%0A *%09%09The path inside the ZIP file%0A *%0A * @returns {nsIURI}%0A *%09%09An nsIURI for the file%0A */%0Afunction buildJarURI(aJarfile, aPath) {%0A%09let uri = Services.io.newFileURI(aJarfile);%0A%09uri = "jar:" + uri.spec + "!/" + aPath;%0A%09return Services.io.newURI(uri);%0A}%0A%0Avar BootstrapLoader = {%0A%09name: "bootstrap",%0A%09manifestFile: "install.rdf",%0A%09async loadManifest(pkg) {%0A%09%09/**%0A%09%09 * Reads locale properties from either the main install manifest root%0A%09%09 * or an em:localized section in the install manifest.%0A%09%09 *%0A%09%09 * @param {Object} aSource%0A%09%09 *%09%09The resource to read the properties from.%0A%09%09 *%0A%09%09 * @param {boolean} isDefault%0A%09%09 *%09%09True if the locale is to be read from the main install manifest root%0A%09%09 *%0A%09%09 * @param {string[]} aSeenLocales%0A%09%09 *%09%09An array of locale names already seen for this install manifest.%0A%09%09 *%09%09Any locale names seen as a part of this function will be added to this array%0A%09%09 *%0A%09%09 * @returns {Object}%0A%09%09 *%09%09An object containing the locale properties%0A%09%09 */%0A%09%09function readLocale(aSource, isDefault, aSeenLocales) {%0A%09%09%09let locale = {};%0A%09%09%09if (!isDefault) {%0A%09%09%09%09locale.locales = [];%0A%09%09%09%09for (let localeName of aSource.locales || []) {%0A%09%09%09%09%09if (!localeName) {%0A%09%09%09%09%09%09logger.warn("Ignoring empty locale in localized properties");%0A%09%09%09%09%09%09continue;%0A%09%09%09%09%09}%0A%09%09%09%09%09if (aSeenLocales.includes(localeName)) {%0A%09%09%09%09%09%09logger.warn("Ignoring duplicate locale in localized properties");%0A%09%09%09%09%09%09continue;%0A%09%09%09%09%09}%0A%09%09%09%09%09aSeenLocales.push(localeName);%0A%09%09%09%09%09locale.locales.push(localeName);%0A%09%09%09%09}%0A%0A%09%09%09%09if (locale.locales.length == 0) {%0A%09%09%09%09%09logger.warn("Ignoring localized properties with no listed locales");%0A%09%09%09%09%09return null;%0A%09%09%09%09}%0A%09%09%09}%0A%09%09%09for (let prop of [...PROP_LOCALE_SINGLE, ...PROP_LOCALE_MULTI]) {%0A%09%09%09%09if (hasOwnProperty(aSource, prop)) {%0A%09%09%09%09%09locale[prop] = aSource[prop];%0A%09%09%09%09}%0A%09%09%09}%0A%09%09%09return locale;%0A%09%09}%0A%0A%09%09let manifestData = await pkg.readString("install.rdf");%0A%09%09let manifest = InstallRDF.loadFromString(manifestData).decode();%0A%0A%09%09let addon = new AddonInternal();%0A%09%09for (let prop of PROP_METADATA) {%0A%09%09%09if (hasOwnProperty(manifest, prop)) {%0A%09%09%09%09addon[prop] = manifest[prop];%0A%09%09%09}%0A%09%09}%0A%09%09if (!addon.type) {%0A%09%09%09addon.type = "extension";%0A%09%09} else {%0A%09%09%09let type = addon.type;%0A%09%09%09addon.type = null;%0A%09%09%09for (let name in TYPES) {%0A%09%09%09%09if (TYPES[name] == type) {%0A%09%09%09%09%09addon.type = name;%0A%09%09%09%09%09break;%0A%09%09%09%09}%0A%09%09%09}%0A%09%09}%0A%09%09if (!(addon.type in TYPES))%0A%09%09%09throw new Error("Install manifest specifies unknown type: " + addon.type);%0A%0A%09%09if (!addon.id)%0A%09%09%09throw new Error("No ID in install manifest");%0A%09%09if (!gIDTest.test(addon.id))%0A%09%09%09throw new Error("Illegal add-on ID " + addon.id);%0A%09%09if (!addon.version)%0A%09%09%09throw new Error("No version in install manifest");%0A%0A%09%09addon.strictCompatibility =%0A%09%09%09!(addon.type in COMPATIBLE_BY_DEFAULT_TYPES) ||%0A%09%09%09"strictCompatibility" in manifest && manifest.strictCompatibility == "true";%0A%0A%09%09// Only read these properties for extensions.%0A%09%09if (addon.type == "extension") {%0A%09%09%09if (manifest.bootstrap != "true") {%0A%09%09%09%09throw new Error("Non-restartless extensions no longer supported");%0A%09%09%09}%0A%09%09%09if (%0A%09%09%09%09addon.optionsType &&%0A%09%09%09%09addon.optionsType != AddonManager.OPTIONS_TYPE_INLINE_BROWSER &&%0A%09%09%09%09addon.optionsType != AddonManager.OPTIONS_TYPE_TAB%0A%09%09%09) {%0A%09%09%09%09throw new Error("Install manifest specifies unknown optionsType: " + addon.optionsType);%0A%09%09%09}%0A%09%09} else {%0A%09%09%09// Convert legacy dictionaries into a format the WebExtension%0A%09%09%09// dictionary loader can process.%0A%09%09%09if (addon.type === "dictionary") {%0A%09%09%09%09addon.loader = null;%0A%09%09%09%09let dictionaries = {};%0A%09%09%09%09await pkg.iterFiles(({path}) => {%0A%09%09%09%09%09let match = /^dictionaries\/([^\/]+)\.dic$/.exec(path);%0A%09%09%09%09%09if (match) {%0A%09%09%09%09%09%09let lang = match[1].replace(/_/g, "-");%0A%09%09%09%09%09%09dictionaries[lang] = match[0];%0A%09%09%09%09%09}%0A%09%09%09%09});%0A%09%09%09%09addon.startupData = {dictionaries};%0A%09%09%09}%0A%0A%09%09%09// Only extensions are allowed to provide an optionsURL, optionsType,%0A%09%09%09// optionsBrowserStyle, or aboutURL. For all other types they are silently ignored%0A%09%09%09addon.aboutURL = null;%0A%09%09%09addon.optionsBrowserStyle = null;%0A%09%09%09addon.optionsType = null;%0A%09%09%09addon.optionsURL = null;%0A%09%09}%0A%0A%09%09addon.defaultLocale = readLocale(manifest, true);%0A%09%09let defaultLocaleEntries = Object.entries(addon.defaultLocale);%0A%0A%09%09let seenLocales = [];%0A%09%09addon.locales = [];%0A%09%09for (let localeData of manifest.localized || []) {%0A%09%09%09let locale = readLocale(localeData, false, seenLocales);%0A%09%09%09if (locale) {%0A%09%09%09%09for(let [key, val] of defaultLocaleEntries)%0A%09%09%09%09%09key in locale || Reflect.set(locale, key, val);%0A%09%09%09%09addon.locales.push(locale);%0A%09%09%09}%0A%09%09}%0A%0A%09%09addon.dependencies = Object.freeze(%0A%09%09%09"dependencies" in manifest ? Array.from(new Set(manifest.dependencies)) : []%0A%09%09);%0A%0A%09%09let seenApplications = [];%0A%09%09addon.targetApplications = [];%0A%09%09for (let targetApp of manifest.targetApplications || []) {%0A%09%09%09if (!targetApp.id || !targetApp.minVersion || !targetApp.maxVersion) {%0A%09%09%09%09logger.warn("Ignoring invalid targetApplication entry in install manifest");%0A%09%09%09%09continue;%0A%09%09%09}%0A%09%09%09if (seenApplications.includes(targetApp.id)) {%0A%09%09%09%09logger.warn(%0A%09%09%09%09%09"Ignoring duplicate targetApplication entry for " + targetApp.id + " in install manifest"%0A%09%09%09%09);%0A%09%09%09%09continue;%0A%09%09%09}%0A%09%09%09seenApplications.push(targetApp.id);%0A%09%09%09addon.targetApplications.push(targetApp);%0A%09%09}%0A%0A%09%09// Note that we don't need to check for duplicate targetPlatform entries since%0A%09%09// the RDF service coalesces them for us.%0A%09%09addon.targetPlatforms = [];%0A%09%09for (let targetPlatform of manifest.targetPlatforms || []) {%0A%09%09%09let platform = {%0A%09%09%09%09os: null,%0A%09%09%09%09abi: null,%0A%09%09%09};%0A%0A%09%09%09let pos = targetPlatform.indexOf("_");%0A%09%09%09if (pos != -1) {%0A%09%09%09%09platform.os = targetPlatform.substring(0, pos);%0A%09%09%09%09platform.abi = targetPlatform.substring(pos + 1);%0A%09%09%09} else {%0A%09%09%09%09platform.os = targetPlatform;%0A%09%09%09}%0A%09%09%09addon.targetPlatforms.push(platform);%0A%09%09}%0A%0A%09%09addon.userDisabled = false;%0A%09%09addon.softDisabled = addon.blocklistState == Blocklist.STATE_SOFTBLOCKED;%0A%09%09addon.applyBackgroundUpdates = AddonManager.AUTOUPDATE_DEFAULT;%0A%0A%09%09addon.userPermissions = null;%0A%0A%09%09addon.icons = {};%0A%09%09if (await pkg.hasResource("icon.png")) {%0A%09%09%09addon.icons[32] = "icon.png";%0A%09%09%09addon.icons[48] = "icon.png";%0A%09%09}%0A%0A%09%09if (await pkg.hasResource("icon64.png")) {%0A%09%09%09addon.icons[64] = "icon64.png";%0A%09%09}%0A%0A%09%09return addon;%0A%09},%0A%0A%09// Bug 1512436 - Add new install location for built in search web extensions (Firefox 67+)%0A%09// https://bugzilla.mozilla.org/show_bug.cgi?id=1512436%0A%09// https://hg.mozilla.org/mozilla-central/diff/e3e75697e98c/toolkit/mozapps/extensions/internal/XPIProvider.jsm%23l1.396%0A%09//loadScope(addon, file) {%0A%09loadScope(addon, file = addon.file || addon._sourceBundle) {%0A%0A%09%09let uri = getURIForResourceInFile(file, "bootstrap.js").spec;%0A%09%09let principal = Services.scriptSecurityManager.getSystemPrincipal();%0A%0A%09%09let sandbox = new Cu.Sandbox(principal, {%0A%09%09%09sandboxName: uri,%0A%09%09%09addonId: addon.id,%0A%09%09%09wantGlobalProperties: ["ChromeUtils"],%0A%09%09%09metadata: { addonID: addon.id, URI: uri },%0A%09%09});%0A%0A%09%09try {%0A%09%09%09Object.assign(sandbox, BOOTSTRAP_REASONS);%0A%0A%09%09%09XPCOMUtils.defineLazyGetter(%0A%09%09%09%09sandbox, "console", () => new ConsoleAPI({ consoleID: %60addon/%24{addon.id}%60 })%0A%09%09%09);%0A%09%09%09Services.scriptloader.loadSubScript(uri, sandbox);%0A%0A%09%09} catch (e) {%0A%09%09%09logger.warn(%60Error loading bootstrap.js for %24{addon.id}%60, e);%0A%09%09}%0A%0A%09%09function findMethod(name) {%0A%09%09%09if (sandbox.name) {%0A%09%09%09%09return sandbox.name;%0A%09%09%09}%0A%09%09%09try {%0A%09%09%09%09let method = Cu.evalInSandbox(name, sandbox);%0A%09%09%09%09return method;%0A%09%09%09} catch (err) { }%0A%0A%09%09%09return () => {%0A%09%09%09%09logger.warn(%60Add-on %24{addon.id} is missing bootstrap method %24{name}%60);%0A%09%09%09};%0A%09%09}%0A%0A%09%09let install = findMethod("install");%0A%09%09let uninstall = findMethod("uninstall");%0A%09%09let startup = findMethod("startup");%0A%09%09let shutdown = findMethod("shutdown");%0A%0A%09%09return {%0A%09%09%09install: (...args) => install(...args),%0A%0A%09%09%09// https://github.com/xiaoxiaoflood/firefox-scripts/commit/b509dd0089dc7245e9797e0068b8fcff6ae3c776%0A%09%09%09//uninstall: (...args) => uninstall(...args),%0A%09%09%09uninstall(...args) {%0A%09%09%09%09var res = uninstall(...args);%0A%09%09%09%09// Forget any cached files we might've had from this extension.%0A%09%09%09%09Services.obs.notifyObservers(null, "startupcache-invalidate");%0A%09%09%09%09return res;%0A%09%09%09},%0A%0A%09%09%09startup(...args) {%0A%09%09%09%09if (addon.type == "extension") {%0A%09%09%09%09%09logger.debug(%60Registering manifest for %24{file.path}\n%60);%0A%09%09%09%09%09Components.manager.addBootstrappedManifestLocation(file);%0A%09%09%09%09}%0A%09%09%09%09return startup(...args);%0A%09%09%09},%0A%0A%09%09%09shutdown(data, reason) {%0A%09%09%09%09try {%0A%09%09%09%09%09return shutdown(data, reason);%0A%09%09%09%09} catch (err) {%0A%09%09%09%09%09throw err;%0A%09%09%09%09} finally {%0A%09%09%09%09%09if (reason != BOOTSTRAP_REASONS.APP_SHUTDOWN) {%0A%09%09%09%09%09%09logger.debug(%60Removing manifest for %24{file.path}\n%60);%0A%09%09%09%09%09%09Components.manager.removeBootstrappedManifestLocation(file);%0A%09%09%09%09%09}%0A%09%09%09%09}%0A%09%09%09},%0A%09%09};%0A%09},%0A};%0A// fim BootstrapLoader.jsm%0A%0A%0AAddonManager.addExternalExtensionLoader(BootstrapLoader);%0AObject.defineProperty(%0A%09AddonInternal.prototype,%0A%09"providesUpdatesSecurely",%0A%09{enumerable: true, value: true}%0A);%0A `.trim(), new Cu.Sandbox(Cu.getObjectPrincipal(this), {wantGlobalProperties: ["ChromeUtils", "atob"]})); } catch(ex) {Cu.reportError(ex);}
Отредактировано solombala (26-12-2019 23:44:09)
Отсутствует
Не знаю, скорее всего уже и не актуально. Но если в каталоге установки firefox используется config.js, то можно заблокировать переключение browser.download.panel.shown, добавлением в него строки lockPref("browser.download.panel.shown", false); и это окно будет всплывать при старте каждой закачки.
Если добавить в user.js тоже работает!
Win7
Отсутствует
Вот выше код от sandro79, с ним так https://b.radikal.ru/b31/1912/3d/9fb59ee8fa10.png,
Попробывал этот код
Отсутствует
mishaham от aris попробуй, вроде все гармонично
/* Firefox Quantum userChrome.css tweaks ************************************************/ /* Github: https://github.com/aris-t2/customcssforfx ************************************/ /****************************************************************************************/ /************************************************/ /* cheat main menu button into title bar ********/ /************************************************/ /* workaround for Firefox 71+ *******************/ :root { --space_required_for_appbutton_fix: 36px; --space_required_for_appbutton_fix2: 2px; } :root[uidensity="compact"] { --space_required_for_appbutton_fix: 34px; } :root[uidensity="touch"] { --space_required_for_appbutton_fix: 42px; } /* menubar adjustments */ #main-window[tabsintitlebar] #toolbar-menubar { -moz-margin-start: 95px !important; } #main-window[tabsintitlebar][sizemode="maximized"] #toolbar-menubar { -moz-margin-start: 94px !important; } #main-window[uidensity=compact][tabsintitlebar] #toolbar-menubar { -moz-margin-start: 93px !important; } #main-window[uidensity=compact][tabsintitlebar][sizemode="maximized"] #toolbar-menubar { -moz-margin-start: 92px !important; } /* tabs toolbar adjustments */ #main-window[tabsintitlebar] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar { -moz-padding-start: 95px !important; } #main-window[tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar { -moz-padding-start: 94px !important; } #main-window[uidensity=compact][tabsintitlebar] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar { -moz-padding-start: 93px !important; } #main-window[uidensity=compact][tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar { -moz-padding-start: 92px !important; } #main-window[tabsintitlebar][sizemode="fullscreen"] #TabsToolbar { -moz-padding-start: 95px !important; } #main-window[tabsintitlebar] #toolbar-menubar[autohide="true"]:not([inactive="true"]) ~ #TabsToolbar, #main-window[tabsintitlebar] #toolbar-menubar[autohide="false"] ~ #TabsToolbar { margin-top: 4px !important; } /* appbutton */ #main-window[tabsintitlebar] #PanelUI-button { -moz-appearance: none !important; -moz-box-ordinal-group: 0 !important; position: fixed !important; display:block !important; height: 22px !important; margin: 0 !important; -moz-margin-start: 1px !important; border: unset !important; box-shadow: unset !important; padding-left: 0px !important; padding-right: 0px !important; } #main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button { -moz-margin-start: 0px !important; } #main-window[tabsintitlebar][sizemode="normal"] #PanelUI-button { top: 0px !important; } #main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button { top: 8px !important; } @media (min-resolution: 110dpi) { #main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button { top: 6px !important; } } @media (min-resolution: 120dpi) { #main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button { top: 5px !important; } } @media (min-resolution: 140dpi) { #main-window[tabsintitlebar][sizemode="normal"] #PanelUI-button { top: 0px !important; } #main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button { top: 4px !important; } } @media (min-resolution: 160dpi) { #main-window[tabsintitlebar][sizemode="maximized"] #nav-bar #PanelUI-button { top: 2px !important; } } @media (-moz-windows-classic) { #main-window[tabsintitlebar][sizemode="maximized"] #nav-bar #PanelUI-button { top: 2px !important; } } /* code for Linux/macOS */ @media not all and (-moz-os-version: windows-win7) { @media not all and (-moz-os-version: windows-win8) { @media not all and (-moz-os-version: windows-win10) { #main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button { top: 0px !important; } }}} #main-window[tabsintitlebar][sizemode="fullscreen"] #PanelUI-button { top: 0px !important; } #main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button { background-clip: padding-box !important; padding: 0 1.4em 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; -moz-padding-start: 1.4em !important; -moz-padding-end: 2.4em !important; height: 28px !important; border-radius: 0 0 4px 4px; border-top: none !important; border-right: 1px solid !important; border-left: 1px solid !important; border-bottom: 1px solid !important; } /* code for Linux/macOS */ @media not all and (-moz-os-version: windows-win10) { @media not all and (-moz-os-version: windows-win8) { @media not all and (-moz-os-version: windows-win7) { #main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button { max-width: 90px !important; } }}} /* hide button in fullscreen mode, if toolbars get automatically hidden */ #main-window[tabsintitlebar][sizemode="fullscreen"] #navigator-toolbox[style*="margin-top: -"] #PanelUI-button { visibility: collapse !important; } /* dropmarker icon / arrow */ #main-window[tabsintitlebar] #PanelUI-button .toolbarbutton-icon { -moz-margin-end: -94px !important; margin-top: 2px !important; margin-bottom: 0px !important; list-style-image: url("../../image/dropdown-arrow-inverted.svg") !important; -moz-image-region: rect(0px, 0px, 0px, 0px) !important; width: 9px !important; height: 7px !important; background: unset !important; box-shadow: unset !important; } #main-window[uidensity=touch][tabsintitlebar] #PanelUI-button #PanelUI-menu-button .toolbarbutton-icon { -moz-margin-end: -90px !important; } #main-window[tabsintitlebar] #PanelUI-menu-button::after { display: block !important; color: white !important; font-weight: bold !important; text-shadow: 0 0 1px rgba(0,0,0,.7), 0 1px 1.5px rgba(0,0,0,.5) !important; margin-top: 0px !important; margin-bottom: 2px !important; border: unset !important; box-shadow: unset !important; } #main-window[tabsintitlebar][sizemode="normal"] #PanelUI-menu-button::after { margin-bottom: 0px !important; } /* 'Firefox' title */ #main-window[tabsintitlebar] #PanelUI-menu-button[label="Firefox"]::after, #main-window[tabsintitlebar] #PanelUI-menu-button:not([label="Nightly"]):not([label="Firefox Nightly"]):not([label="Firefox Developer Edition"]):not([label="Firefox"]):not([label="Tor Browser"]):not([label="Tor-Browser"])::after { content: "Firefox" !important; -moz-margin-start: -6px !important; } #main-window[uidensity=touch][tabsintitlebar] #PanelUI-menu-button[label="Firefox"]::after, #main-window[uidensity=touch][tabsintitlebar] #PanelUI-menu-button:not([label="Nightly"]):not([label="Firefox Nightly"]):not([label="Firefox Developer Edition"]):not([label="Firefox"]):not([label="Tor Browser"]):not([label="Tor-Browser"])::after { -moz-margin-start: -12px !important; } /* 'DevFox' title */ #main-window[tabsintitlebar] #PanelUI-menu-button[label="Firefox Developer Edition"]::after { content: "DevFox" !important; -moz-margin-start: -9px !important; } #main-window[uidensity=touch][tabsintitlebar] #PanelUI-menu-button[label="Firefox Developer Edition"]::after { -moz-margin-start: -15px !important; } /* 'Nightly' title */ #main-window[tabsintitlebar] #PanelUI-menu-button[label="Nightly"]::after, #main-window[tabsintitlebar] #PanelUI-menu-button[label="Firefox Nightly"]::after { content: "Nightly" !important; -moz-margin-start: -6px !important; } #main-window[uidensity=touch][tabsintitlebar] #PanelUI-menu-button[label="Nightly"]::after, #main-window[uidensity=touch][tabsintitlebar] #PanelUI-menu-button[label="Firefox Nightly"]::after { -moz-margin-start: -12px !important; } /* 'Tor-Browser' title */ #main-window[tabsintitlebar] #PanelUI-menu-button:-moz-any([label="Tor Browser"],[label="Tor-Browser"])::after { content: "Tor-Fox" !important; -moz-margin-start: -6px !important; } #main-window[uidensity=touch][tabsintitlebar] #PanelUI-menu-button:-moz-any([label="Tor Browser"],[label="Tor-Browser"])::after { -moz-margin-start: -12px !important; } /* custom button title (remove above Firefox/DevFox/Nightly codes) *//* #main-window[tabsintitlebar] #PanelUI-menu-button::after{ content: "MyTitle" !important; -moz-margin-start: -6px !important; } #main-window[uidensity=touch][tabsintitlebar] #PanelUI-menu-button::after { -moz-margin-start: -12px !important; } /* adjust button badge stack */ #main-window[tabsintitlebar] :-moz-any(#PanelUI-button,#PanelUI-menu-button):not([checked]):not([open]):not(:active) > .toolbarbutton-badge-stack, #main-window[tabsintitlebar] :-moz-any(#PanelUI-button,#PanelUI-menu-button):not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-stack, #main-window[tabsintitlebar] :-moz-any(#PanelUI-button,#PanelUI-menu-button):not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-badge-stack{ background: unset !important; border-color: unset !important; border: 0 !important; box-shadow: unset !important; } /* adjust button badge */ #main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button .toolbarbutton-badge-stack .toolbarbutton-badge { -moz-margin-end: 2px !important; margin-top: 0px !important; } /* button color/border */ /* orange (default) */ #main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button { background-image: linear-gradient(rgb(247,182,82), rgb(215,98,10) 95%) !important; border-right-color:hsla(214,89%,21%,.5) !important; border-left-color: hsla(214,89%,21%,.5) !important; border-bottom-color: hsla(214,89%,21%,.5) !important; box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset, 0 0 2px 1px hsla(0,0%,100%,.25) inset, 0 1px 0 0px rgba(255,255,255,.6), 0 -1px 0 0px rgba(255,255,255,.6), 1px 0 0 0px rgba(255,255,255,.6), -1px 0 0 0px rgba(255,255,255,.6) !important; } #main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button:hover:not(:active):not([open]){ background-image: radial-gradient(farthest-side at center bottom, rgba(252,240,89,.5) 10%, rgba(252,240,89,0) 70%), radial-gradient(farthest-side at center bottom, rgb(236,133,0), rgba(255,229,172,0)), linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%) !important; border-color: rgba(83,42,6,.9) !important; box-shadow: 0 1px 0 hsla(0,0%,100%,.15) inset, 0 0 2px 1px hsla(0,0%,100%,.5) inset, 0 -1px 0 hsla(0,0%,100%,.2), 0 1px 0 0px rgba(255,255,255,.6), 0 -1px 0 0px rgba(255,255,255,.6), 1px 0 0 0px rgba(255,255,255,.6), -1px 0 0 0px rgba(255,255,255,.6) !important; } #main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button:-moz-any(:hover:active,[open]){ background-image: linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%) !important; box-shadow: 0 2px 3px rgba(0,0,0,.4) inset, 0 1px 1px rgba(0,0,0,.2) inset, 0 1px 0 0px rgba(255,255,255,.6), 0 -1px 0 0px rgba(255,255,255,.6), 1px 0 0 0px rgba(255,255,255,.6), -1px 0 0 0px rgba(255,255,255,.6) !important; } /*private browsing - purple */ #main-window[privatebrowsingmode=temporary][tabsintitlebar] #navigator-toolbox #PanelUI-button #PanelUI-menu-button{ background-image: linear-gradient(rgb(153,38,211), rgb(105,19,163) 95%) !important; } #main-window[privatebrowsingmode=temporary][tabsintitlebar] #navigator-toolbox #PanelUI-button #PanelUI-menu-button:hover:not(:active):not([open]){ background-image: radial-gradient(farthest-side at center bottom, rgba(240,193,255,.5) 10%, rgba(240,193,255,0) 70%), radial-gradient(farthest-side at center bottom, rgb(192,81,247), rgba(236,172,255,0)), linear-gradient(rgb(144,20,207), rgb(95,0,158) 95%) !important; } #main-window[privatebrowsingmode=temporary][tabsintitlebar] #navigator-toolbox #PanelUI-button #PanelUI-menu-button:-moz-any(:hover:active,[open]) { background-image: linear-gradient(rgb(144,20,207), rgb(95,0,158) 95%) !important; } /* fix for 'buttons_on_navbar_squared_buttons.css' */ #main-window[tabsintitlebar][uidensity=compact] #PanelUI-menu-button .toolbarbutton-badge-stack, #main-window[tabsintitlebar]:not([uidensity=compact]):not([uidensity=touch]) #PanelUI-menu-button .toolbarbutton-badge-stack, #main-window[tabsintitlebar][uidensity=touch] #PanelUI-menu-button .toolbarbutton-badge-stack { padding-top: 0px !important; padding-bottom: 0px !important; width: unset !important; height: 22px !important; } #main-window[tabsintitlebar][uidensity=compact] #PanelUI-menu-button .toolbarbutton-icon, #main-window[tabsintitlebar]:not([uidensity=compact]):not([uidensity=touch]) #PanelUI-menu-button .toolbarbutton-icon, #main-window[tabsintitlebar][uidensity=touch] #PanelUI-menu-button .toolbarbutton-icon { padding: 6px !important; width: 9px !important; height: 7px !important; } /* fix for toolbar + text mode */ #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) toolbaritem #PanelUI-menu-button, #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) #PanelUI-menu-button, #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) .toolbarbutton-1[type="menu-button"] #PanelUI-menu-button{ -moz-appearance: unset !important; } #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) toolbaritem #PanelUI-menu-button .toolbarbutton-text, #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) #PanelUI-menu-button:not([type="menu-button"]) .toolbarbutton-text, #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) .toolbarbutton-1[type="menu-button"] #PanelUI-menu-button .toolbarbutton-text{ display: none !important; } #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) toolbaritem #PanelUI-menu-button:not([type="menu-button"]), #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) #PanelUI-menu-button:not([type="menu-button"]), #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) .toolbarbutton-1[type="menu-button"] #PanelUI-menu-button{ -moz-box-orient: unset !important; min-width: unset !important; } #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) toolbaritem #PanelUI-menu-button:not(#nav-bar-overflow-button):not(#PlacesChevron) > :-moz-any(.toolbarbutton-icon,.toolbarbutton-badge-stack), #main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) #PanelUI-menu-button:not([type="menu-button"]):not(#nav-bar-overflow-button):not(#PlacesChevron) > :-moz-any(.toolbarbutton-icon,.toolbarbutton-badge-stack) { opacity: 1.0 !important; margin-bottom: unset !important; } /* support for tab title in Firefox titlebar option*/ #main-window[tabsintitlebar]::after { -moz-margin-start: 95px !important; } /* remove this nonsense button, a menuitem is inside menu button anyways */ #PanelUI-button #whats-new-menu-button { display: none !important; } /* workaround for Firefox 71+ *******************/ #main-window[tabsintitlebar] #PanelUI-button > *:not(#PanelUI-menu-button) { display: none !important; } #main-window[tabsintitlebar] #PanelUI-button { min-width: 1px !important; width: 1px !important; max-width: 1px !important; margin-inline-start: 0px !important; } #main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button { margin-inline-start: -2px !important; } #main-window[tabsintitlebar] #nav-bar-customization-target { z-index: 10000 !important; } #main-window[tabsintitlebar] #nav-bar { padding-inline-start: 1px !important; } #main-window[tabsintitlebar] #nav-bar #nav-bar-overflow-button{ padding-inline-end: 0px !important; } #main-window[tabsintitlebar] #nav-bar-customization-target { max-width: calc(100vw - var(--space_required_for_appbutton_fix)) !important; } #main-window[tabsintitlebar] #nav-bar:not([nonemptyoverflow="true"]) #nav-bar-customization-target { max-width: calc(100vw - var(--space_required_for_appbutton_fix2)) !important; }
Отсутствует
формирование цвета надписи "Топ сайтов" about:newtab в 73
Сохранил activity-stream.css, искал в нём
Подскажите пожалуйста правильную строку.
1894 —> 1895
Отсутствует
Отсутствует
Подтверждаю ! Config.js Для портабл
Забрал в копилку все настройки. Некоторые знаю, а которые не знаю, по ним найду информацию. Полезная подборка. Спасибо. Хвала!
1894 —> 1895
Спасибо, нашёл. Но вот как преобразовать в удобопонимаемое для userContent.css в папке chrome? Строки в таком виде как ниже в нём конечно не работают
.ds-layout .section-title span {
color: #737373;
Пробовал, как бы по аналогии с этим подбирать, методом тыка - ds-layout .section-title span color: #737373 !important;, но конечно не сработало.
Dumby, подскажите пожалуйста правильный код для использования в userContent.css в папке chrome. Спасибо.
Отсутствует
Нет иконки на СВ "настройки"
proof of concept
хром-регистрация — любым доступным методом.
addon-card[addon-id="custombuttons@xsms.org"] panel-item[action=cbprefs] { --icon:url(chrome://browser/content/robot.ico); }
Dumby, подскажите пожалуйста правильный код для использования в userContent.css в папке chrome
Правильный? Даже не шути никогда так.
Работающий — пожалуйста.
Отсутствует
Dumby
cвprefs ....Распотрашил весь xpi CB и не нашел....Хвала!
Отсутствует
Правильный? Даже не шути никогда так.
Работающий — пожалуйста.
Да вот же, неправильно выразился. Спасибо за работающий код. Мадженту заменил на нужный цвет.
Отсутствует
Vitaliy V.
В 71 это не совсем того...
Добавлено 27-12-2019 16:09:15
Garalf
А куда этот код положить?
В aboutaddons.css - mozapps-extensions ///Не в скине , а в mozapps , или в userContent.css с
@-moz-document url-prefix("chrome://mozapps/content/extensions/aboutaddons.css") {
Отредактировано solombala (27-12-2019 16:09:15)
Отсутствует
mishaham
Сдвигайте меняя значения в стиле. Вроде в секции /* appbutton */ значение "padding-left". А кнопки на панели сдвигаются штатным интервалом .
Я себе вот так сделал
/* 'Firefox' title */ #main-window[tabsintitlebar] #PanelUI-menu-button[label="Firefox"]::after, #main-window[tabsintitlebar] #PanelUI-menu-button:not([label="Nightly"]):not([label="Firefox Nightly"]):not([label="Firefox Developer Edition"]):not([label="Firefox"]):not([label="Tor Browser"]):not([label="Tor-Browser"])::after { content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKzSURBVDhPhZNfaFJhGMZPfxQ1DC1cBE1XUOCGG3hTXhgMQSrYRatGbFCLmFDtRkZupXdzbkuGsiB2EamBY8IK1mQgm0GIDZHQOTEcm1MQNoyhm+gsdnZ6PjfFVtALP/ze732+93s85z3UYRwDLHCynB3EcUD2SZBfkhP+ClLkLy8vPxeLxZew5mg0GnE0GtV0dnZKkJ8ArL6+vsa5uTk11qdApXE52Far9fZPhFAovOFyuR6WSqUfXq/XjVoTIK7YoHlhYeHDysrKaz6ffxZ51c251dXVLzjPoBgpFoul7e3tUn19/RPULgDigNxYh70HuVyuAHdvkAvK+3K5/Go+n/9VKBSYCjs7OzSahjc2NmZaW1srf4MLrnk8Hj80exaLpR05mxodHX2KG5mjbG1t0dPT0x6IZEQokUgapqamhoaHh12kDhekVkc5HA4zxOTAH2i1WhcEbWXRgYMGo9FoDgaDKVKHuxz2miin0/l2c3OTqaW/v/9zd3f3CwgumkymK2q1+gzWAqVS+TiTyZQ1aEDLZDIVZbPZ3qXTaaaWxcXF+MjIyCs8h5lsNru3tLTkQIPzOp2ut6JJpVL7Uqn0FjUwMDC0vr7O1JJMJskNTCKRoA0Gwycul3uPxWI1h0IhX0UTiUSyaKqkRCJRO24oxONxpkIsFqPHx8ejCoViAqL7HR0dbdj3rK2tVTV4dl7UyJxQzYODgx/D4TBTCywSBxm4ScIyjRurtUAgsNvS0vIMZ0WkgZDNZrfb7faY3+9n/ofP56N7enpsOCcHZELLr0jM4/Eemc3mb/Pz8/sYWeZfuN3u3a6urvfQq8BpUP0myLyLwR2VSjUxNjb2HUNUnJ2d3Qf05ORkVq/Xf8XHZoDmOjgY4yNBnJD3TazdBb0CgeAlh8PRYa0BN8FlwAOHhynqN1TQ4BDZkMaOAAAAAElFTkSuQmCC) !important; -moz-margin-start: -9px !important; }
Там же можно проверки удалить, если использовать это фрагмент в нерелизных версиях
:not([label="Nightly"]):not([label="Firefox Nightly"]):not([label="Firefox Developer Edition"]):not([label="Firefox"]):not([label="Tor Browser"]):not([label="Tor-Browser"])
Отредактировано _zt (27-12-2019 19:02:45)
Отсутствует
Отсутствует
kokoss
Спасибо
Странно, но почему то не работает, буду копать дальше.
Отредактировано Kiril__777 (28-12-2019 09:36:56)
Отсутствует
Странно, но почему то не работает, буду копать дальше.
Не работают все кнопки, или только кнопка "Персонализация"?
Добавлено: может не туда что то добавили: папки -> icons и my_css и файл -> userChrome.css добавить в папку -> chrome. Результат:
Отредактировано kokoss (28-12-2019 17:53:20)
Win7
Отсутствует
kokoss
Спасибо, изначально плохо разобрался
Отсутствует
Vitaliy V. Здравствуйте, пару вопросов.
.\user_chrome_files\user_chrome.js что изменилось по сравнению со старой версией? что границы не раздвигаются v.toolbar, и за что отвечает "mouseenter" в коде?
И если кто-то еще пользуется findbar, похоже я один) он появлятся начал не слева сверху а в полную область, скорее косметическое? а так вроде остальное работает (проблема появилась с 70+ или 71+).
Отредактировано func4ptch4 (29-12-2019 10:54:20)
Отсутствует
mishaham
Та секция, что я давал, на замену в код от aris-t2, который sandro79 выше выкладывал. Это просто иконка и демонстрация куда и как ее прописывать. И я написал, что значения отступов и полей вам придется самому править в коде.
В Chrome, кроме userChrome.css, есть папки с кучей css-файлов.
Так не пойдет, вам повезло, что у вас вообще хоть что то заработало. Папки Chrome не существует в профиле, ее создает пользователь. Вы должны знать что в ней и за что каждый фрагмент кода отвечает.
Отсутствует
Vitaliy V.
При использовании вашего расширения "New Tab Page 2019.10.1" возможно назначить пользовательский фон?
Отсутствует