Полезная информация

В мире Mozilla происходит много интересных событий. Но вам не нужно постоянно посещать новостные сайты, чтобы быть в курсе всех изменений. Зайдите на ленту новостей Mozilla Россия.

№1380124-10-2019 14:39:37

Andrey_Krropotkin
Участник
 
Группа: Members
Зарегистрирован: 11-11-2011
Сообщений: 482
UA: Firefox 70.0

Re: Custom Buttons

Dumby раньше Вы мне показывали как создать в контекстном меню аддонов на странице about:addons.

скрытый текст

Выделить код

Код:

var copyToClipboard = function (aString) {
            Cc["@mozilla.org/widget/clipboardhelper;1"].
                getService(Ci.nsIClipboardHelper).copyString(aString);
        };

(function () {
addEventListener("shown", {
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        e.target.baseURI == this.url && !e.target.contains(this.item)
        && requestAnimationFrame(() => e.target.prepend(this.item));
    },
    get item() {
        var item = document.createElementNS(xhtmlns, "panel-item");
        item.append("Домашняя страница");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this.onAddon(item.closest("addon-card").addon);
        }
        addDestructor(() => item.remove());
        delete this.item; return this.item = item;
    },
    onAddon(addon) {
             var url = addon.homepageURL;
        if (!url) {
        if (addon.reviewURL) {
        url = addon.reviewURL.replace(/\/reviews\/.*$/, "/");
        } else {
        url = "https://addons.mozilla.org/search/?q="
            + encodeURIComponent(addon.name);
         }
        }
       openURL(url);
    }
}, true, gBrowser.tabpanels || 1);
})();
(function () {
addEventListener("shown", {
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        e.target.baseURI == this.url && !e.target.contains(this.item)
        && requestAnimationFrame(() => e.target.prepend(this.item));
    },
    get item() {
        var item = document.createElementNS(xhtmlns, "panel-item");
        item.append("Папка установки");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this.onAddon(item.closest("addon-card").addon);
        }
        addDestructor(() => item.remove());
        delete this.item; return this.item = item;
    },
    onAddon(addon) {
                    switch (addon.type) {
                case "plugin":
                    var pathes = addon.pluginFullpath;
                    for (var i = 0; i < pathes.length; i++) {
                        this.revealPath(pathes[i]);
                    }
                    return;
                case "userchromejs":
                    var file = addon._script.file;
                    if (file.exists())
                        file.reveal();
                    return;
            }

            var gecko = parseInt(Services.appinfo.platformVersion);
            var nsLocalFile = Components.Constructor("@mozilla.org/file/local;1", (gecko >= 14) ? "nsIFile" : "nsILocalFile",
                "initWithPath");

            var dir = Services.dirsvc.get("ProfD", Ci.nsIFile);
            dir.append("extensions");
            dir.append(addon.id);
            var fileOrDir = dir.path + (dir.exists() ? "" : ".xpi");

            try {
                (new nsLocalFile(fileOrDir)).reveal();
            } catch (ex) {
                var addonDir = /.xpi$/.test(fileOrDir) ? dir.parent : dir;
                try {
                    if (addonDir.exists()) {
                        addonDir.launch();
                    }
                } catch (ex) {
                    var uri = Services.io.newFileURI(addonDir);
                    var protSvc = Cc["@mozilla.org/uriloader/external-protocol-service;1"].
                    getService(Ci.nsIExternalProtocolService);
                    protSvc.loadUrl(uri);
                }
            }
    }
}, true, gBrowser.tabpanels || 1);
})();
(function () {
addEventListener("shown", {
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        e.target.baseURI == this.url && !e.target.contains(this.item)
        && requestAnimationFrame(() => e.target.prepend(this.item));
    },
    get item() {
        var item = document.createElementNS(xhtmlns, "panel-item");
        item.append("Файл установки");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this.onAddon(item.closest("addon-card").addon);
        }
        addDestructor(() => item.remove());
        delete this.item; return this.item = item;
    },
    onAddon(addon) {
            var gecko = parseInt(Services.appinfo.platformVersion);
            var nsLocalFile = Components.Constructor("@mozilla.org/file/local;1", (gecko >= 14) ? "nsIFile" : "nsILocalFile",
                "initWithPath");
            var dir = Services.dirsvc.get("ProfD", Ci.nsIFile); 
                        dir.append('extensions');
                        dir.append(addon.id);
                            if ( dir.exists() ) dir.launch();
                            var file = Components.classes['@mozilla.org/file/directory_service;1']
                                      .getService(Components.interfaces.nsIProperties)
                                     .get('ProfD', Components.interfaces.nsIFile);
                            file.append('extensions');
                            file.append( addon.id + '.xpi' )
                            if ( file.exists() ) file.launch(); 
                            return;
    }
}, true, gBrowser.tabpanels || 1);
})();
(function () {
addEventListener("shown", {
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        e.target.baseURI == this.url && !e.target.contains(this.item)
        && requestAnimationFrame(() => e.target.prepend(this.item));
    },
    get item() {
        var item = document.createElementNS(xhtmlns, "panel-item");
        item.append("Копировать имя и версию");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this.onAddon(item.closest("addon-card").addon);
        }
        addDestructor(() => item.remove());
        delete this.item; return this.item = item;
    },
    onAddon(addon) {
     copyToClipboard(addon.name + " " + addon.version);
    }
}, true, gBrowser.tabpanels || 1);
})();
(function () {
addEventListener("shown", {
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        e.target.baseURI == this.url && !e.target.contains(this.item)
        && requestAnimationFrame(() => e.target.prepend(this.item));
    },
    get item() {
        var item = document.createElementNS(xhtmlns, "panel-item");
        item.append("Копировать версию");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this.onAddon(item.closest("addon-card").addon);
        }
        addDestructor(() => item.remove());
        delete this.item; return this.item = item;
    },
    onAddon(addon) {
     copyToClipboard(addon.version);
    }
}, true, gBrowser.tabpanels || 1);
})();
(function () {
addEventListener("shown", {
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        e.target.baseURI == this.url && !e.target.contains(this.item)
        && requestAnimationFrame(() => e.target.prepend(this.item));
    },
    get item() {
        var item = document.createElementNS(xhtmlns, "panel-item");
        item.append("Копировать ID");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this.onAddon(item.closest("addon-card").addon);
        }
        addDestructor(() => item.remove());
        delete this.item; return this.item = item;
    },
    onAddon(addon) {
     copyToClipboard("ID: " + addon.id);
    }
}, true, gBrowser.tabpanels || 1);
})();
(function () {
addEventListener("shown", {
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        e.target.baseURI == this.url && !e.target.contains(this.item)
        && requestAnimationFrame(() => e.target.prepend(this.item));
    },
    get item() {
        var item = document.createElementNS(xhtmlns, "panel-item");
        item.append("Копировать имя");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this.onAddon(item.closest("addon-card").addon);
        }
        addDestructor(() => item.remove());
        delete this.item; return this.item = item;
    },
    onAddon(addon) {
     copyToClipboard(addon.name);
    }
}, true, gBrowser.tabpanels || 1);
})();


Мне пришлось какждый пункт делать отдельной функцией. Вопрос такой нельзя ли все упростить и второе как скрыть некоторые из этих пунктов, там где они не нужны (в других категориях - плагинах, темах и т.д.), а то что-то я зациклился.
И еще вопрос по другой кнопке. Пункты списка 1,2 при на нажатии кнопку Add-on открываются нормально, а начиная с третьего и далее открывается как пункт 2
скрытый текст

Выделить код

Код:

/*CODE*/
var hid = false; //false - скрыть скрытые адоны, true - показать скрытые адоны

var br = gBrowser;
var img2 = "data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAAAABwWjpocFs8zHFbPP9xWzz/cVs8/3FbPP9xWzz/cVs8/3FbPP9xWzz/cVs8/3FbPP9xWzz/cVs8/3BbPMxwWjpodWBB4bWwqv/o6Oj/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+rq6v+1sKr/dWBB4XtlR//f39//6Ojo/8e7q/+0oIf/po1t/6aNbf+mjW3/po1t/6aNbf+mjW3/po1t/+rq6v/s7Oz/39/f/3tlR/+Ba07/29vb/+fn5//f39//3Nzc/9nZ2f/Z2dn/2dnZ/9nZ2f/Z2dn/2dnZ/9nZ2f/l5eX/5+fn/9vb2/+Ba07/h3FV/9bW1v/k5OT/5OTk/+Dg4P+bhGb/k3hX/5N4WP+TeFf/m4Rm/+Dg4P+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QmCC";
var icon2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACa0lEQVR42oWTXUhTYRjH/+/50H1mZ/kRs5WstTKCcsFiTIVYUETUneAupEAqwSuD2obJokS78WawLrppu+uiSymCwFr2ceEcQoWM/MjK2odzNfd1ds7pbKCo2Py/HHh5nuf9v7/znOcQrKvP0sY1NPgMXJOdpiiRgCQAIsqZ2qxY4BZXlmdyyfR1+Kc+YpPIxu72mYtWm328y3IOGqpWzpCNgoV8AoHpF8XU1+/OnOvls50NZOked30622ZrtXBGoqBYSPLKCEWE5qbzodDEg+L9N8PYJrI9oAt0xy+1ddaf0BhQhIDX32YwEZp4wt99dQ07iGiGL3hMzS23GImUqQWVsYkz6wyMSdWIoiTg7coslheW0sKffOlHfDm46hof2GJwyO+MOh1XTJxCAwZU5SmKJZQksVKQD06hmoje1zVrs9nMsZ+/0cDppMONBqKU3z/B/0V07Rfs4wX09PTseDgYDILU3HP0quu0/alYclS9V9t92ma9rFGpEUnNI5ZJYTBytGJQLt6s9RiBy27B6GS4Eh3q9NWdaunnlRSy2SzAUvCGj1Un2BIZ7PDjYF0f9inl8WHAsCwG3xt3IXC390KSwhUKT/sjGPbchF4LSlkLDa3AQEi/C8GIY46oaiRpNbcENXsEzVo9WBpE/qw1NAP3jLk6ARk7/5k9vr+1lC1ALPCQaYD51HNk+AhoAi/jcFcloIc6MqL1gFqi5HbwAhCXmxdNXsXDd4FykdfrlaoSUHccomivJ2AZ+UIKdLYE/kvsqZRcu4GxD+l1g//3wNMZhYo2leeYVH4OApEX0ijwJzEyuVg2qDaJ/wCoeQGVklbGmAAAAABJRU5ErkJggg==";
var icon3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAB3RJTUUH1wcREBAg9OD7NAAAAAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAH6SURBVHjaxVNBaxNBFP4mGRNp06b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fr8B/Ed3Hz2mtu6HIPK3waql4EZAGSzMAAJDVll7a9mroH/QdjCI/i/nX80GIP4+jZu/w3tPcFsBXX990D1akgGcIAM0JZT0/1r4R7438Y77L9zSAJWbOcb+V/T0OIFyEKot7mBNBfIAAWgFz7auXhdMLZyeGBs5/7fIzIFAzsFxfw3NLd7BlTv0DNhSkxyRm77pStXdUAG8CxdsRoUUKpfv35zMrV1eeYRnvTfLy4LBfvGZv7XMrL8nZZTuFTbyPKnmaPXfzefoFMgA0BOkYWGtJm7f+g5j7CE/8HJeRjYLzbjv5138H8QHRCf9d/YxukjyAB5c3u3r3GpWdvTc4vWmtg4/41IL/ofkVGMgZ39w/+D5B19Qv57RyT9d3D3ewaOBVtX788+kcn/vcIT/kdmlPz3BtKeoXH/QQbF5FSAcVRW2X9rF6/vnz59jqxubJ3oFxZ9pXfStEyQAaqeQeHPorNK/ycWVP+3c/f9m1tSsb6kqn65q2/w2+jMEqB4zf/4vKr/Dp7+34HqDYBYEIjFgZgXZIBiWHzKFZDCSKCNUckZZ4BipkCs09DWNdc/JuV/SkkDGDv5BP9/8OixBVCOCZ4aQSYlZxccDI5P/x+WnPPfJyzm7eOnz0BxLRmekHodJA7CfpFAbwVH/Z+9YIkfOAUipSbOdZu22ta3dfWV1zevyiwsW/Hq9RtQ3uDrnTw9ASg+qbGjZ8rM+YsKt+7c4wx1PtwFACct2zZrCHmoAAAAAElFTkSuQmCC";

function jarLoaded(e) {        var val = gURLBar.value;
    if(val.search(/(file|jar):/) == 0 && val.search(/\.(ja|jar|xpi|zip)$/i) > -1) loadURI("jar:" + val + "!/");
}
function jarClicked(e) {    if(e.button == 0) {
    var tabUrl = gURLBar.value;
    if(tabUrl.search(/(file|jar):/) == 0 && tabUrl.search(/\/$/) > -1 || tabUrl.search(/view-source:/) == 0) {
        var node = e.target.href;
        if(node && node.search(/\.(exe|dll|sqlite|sqlite-shm|sqlite-wal)$/i) == -1) {
            if(tabUrl.search(/view-source:/) == 0 &&
                 node.search(/view-source:/) == 0    || node.search(/\.(ja|jar|xpi|zip)$/i) > -1) {
                e.preventDefault();    e.stopPropagation();    br.selectedTab = br.addTab(node);
            } else if(node.search(/\/$/) == -1) {
                e.preventDefault();    e.stopPropagation();    br.selectedTab = br.addTab("view-source:" + un(node));
}}}}}


function intf(drives, count) {
    var data = '<?xml version="1.0"?>';
    data += '<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>';
    data += '<window title="Firefox Explorer" onload="self.load()" xmlns="' + xulns + '">';
    data +=   '<keyset>';
    data +=     '<key keycode="VK_ESCAPE" oncommand="close()"/>';
    data +=   '</keyset>';
    data +=   '<vbox flex="1">';
    data +=     '<richlistbox id="listbox" flex="1" >';
    data +=       '<listcols>';
    data +=         '<listcol/>';
    data +=         '<listcol flex="1" />';
    data +=       '</listcols>';
    data +=     '</richlistbox>';
    data +=     '<hbox>';
    data +=       '<button image="' + icon2 + '" label=" Add-on" oncommand="self.addon(event)" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button image="' + img2 + '" label=" 1 omni.ja" oncommand="self.omni(event)" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button image="' + img2 + '" label=" 2 omni.ja" oncommand="self.omni1(event)" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button image="' + icon4 + '" label=" Firefox" oncommand="self.folder(event,' + "'GreD'" + ')" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button image="' + icon3 + '" label=" Профиль" oncommand="self.folder(event,' + "'ProfD'" + ')" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button label="Закрыть" oncommand="self.close()"/>';
    data +=     '</hbox>';
    data +=     '<hbox>';
    for(i = 0; i < count; i++)    data += '<button image="' + icon1 + '" label="   ' + drives[i] + '" oncommand="self.mydrives(event,' +
                        "'" + drives[i] + "'" + ')" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=     '</hbox>';
    data +=   '</vbox>';
    data += '</window>';
    return data.replace(/self/g, "opener.document.getElementById(&quot;" + self.id + "&quot;)");
}
this.load = function() {
    if(!("AddonManager" in window))
            Components.utils.import("resource://gre/modules/AddonManager.jsm");

    if(!("Services" in window))
            Components.utils.import("resource://gre/modules/Services.jsm");

      var then, promise = AddonManager.getAddonsByTypes(["extension"], then = function(addons) {

        var list = new Array();
        addons.forEach( function(addon) { 
            if (addon.hidden == false || addon.hidden == hid) {
            list.push(addon);
                }
        });

        function key(addon) {
           return addon.name.toLowerCase();
            }

        list.sort( function( a, b){
                        var ka = key(a);
                var kb = key(b);
                return ka == kb ? 0 : ka < kb ? -1 : 1;
            });

    var {document} = dialog;
  for(var addon of list){
          var item = document.createXULElement("richlistitem");
          item.setAttribute("selected", "false");
          var cell1 = document.createXULElement("vbox");
          cell1.setAttribute("class", "icon-container");
          item.appendChild(cell1);
          var cell2 = document.createXULElement("image");
          cell2.setAttribute("anoid", "icon");
          cell2.setAttribute("class", "icon");
          cell2.setAttribute("src", addon.iconURL);
          if (addon.iconURL == null) cell2.setAttribute("src", icon5);
          cell2.style.height="16px";
          cell2.style.width="16px";
          cell1.appendChild(cell2);
          var cell = document.createXULElement("label");
          cell.setAttribute("value", addon.name);
          cell.style.height="16px";
          item.appendChild(cell);
          var cell = document.createXULElement("label");
          cell.setAttribute("value", addon.version);
          item.appendChild(cell);
          var box = dialog.document.getElementById("listbox");
          box.appendChild(item).addon = addon;
          box.focus();
           }
            });
        promise && typeof promise.then == "function" && promise.then(then, Components.utils.reportError); // Firefox 61+
}

this.addon = e => {
    var item1 = dialog.document.querySelector("richlistitem[selected]");
    var uri = item1.addon.getResourceURI();
    if (uri.schemeIs("jar"))
        uri = uri.spec
    else {
        var file = uri.QueryInterface(Ci.nsIFileURL).file;
        uri = file.isDirectory() ? uri.spec : "jar:" + uri.spec + "!/";
    }
    if (!e.ctrlKey) {
        dialog.close();
        dialog = null;
    }
    br.selectedTab = br.addTrustedTab(uri);
}

this.omni1 = function(e) {
    var profileDir = Components.classes["@mozilla.org/file/directory_service;1"]
    .getService(Components.interfaces.nsIProperties)
   .get("GreD", Components.interfaces.nsIFile)
    .path;
    var file = profileDir + "\\browser\\omni.ja";
    var vert="jar:" + "file:///" + file + "!/";
    br.selectedTab = br.addTrustedTab(vert);
    if(!e.ctrlKey) dialog.close();
}
this.omni = function(e) {
    var file = Services.dirsvc.get("GreD", Ci.nsIFile);
    file.append("omni.ja");
    var uri = Services.io.newFileURI(file);
    br.selectedTab = br.addTrustedTab("jar:" + uri.spec + "!/");
    if(!e.ctrlKey) dialog.close();
}
this.folder = function(e, shortcut) {
    var uri = Services.io.newFileURI(Services.dirsvc.get(shortcut, Ci.nsIFile));
    br.selectedTab = br.addTrustedTab(uri.spec);
    if(!e.ctrlKey) dialog.close();
}
this.mydrives = function(e, letter) {    
        br.selectedTab = br.addTrustedTab("file:///" + letter + "/");
    if(!e.ctrlKey) dialog.close();
}
this.close = function() {    dialog.close();
}

Cu.import("resource://gre/modules/FileUtils.jsm");
var root = new FileUtils.File("\\\\.");
var drivesEnum = root.directoryEntries;
drives = [];
while (drivesEnum.hasMoreElements()) { drives.push(drivesEnum.getNext().QueryInterface(Ci.nsIFile).path); }
count = drives.length;
//var url = "data:application/vnd.mozilla.xul+xml;text/plain," + encodeURIComponent(intf(drives, count));
var url = "data:application/vnd.mozilla.xul+xml;text/plain," + encodeURIComponent(intf(drives, count));
if (parseInt(Services.appinfo.platformVersion) >= 69 && Services.appinfo.browserTabsRemoteAutostart) {
    var chromeURL = `chrome://custombuttons/content/cbdialog${Date.now()}.xul`;
    Cc["@mozilla.org/addons/addon-manager-startup;1"].getService(Ci.amIAddonManagerStartup).registerChrome(
        Services.io.newFileURI(Services.dirsvc.get("ProfD", Ci.nsIFile)), [["override", chromeURL, url]]
    );
    url = chromeURL;
}
var feature = "chrome,centerscreen,width=580,height=410,alwaysRaised";
dialog = window.openDialog(url, "", feature);

Отредактировано Andrey_Krropotkin (25-10-2019 14:10:20)

Отсутствует

 

№1380224-10-2019 18:31:11

xrun1
Участник
 
Группа: Members
Зарегистрирован: 12-12-2013
Сообщений: 1212
UA: Firefox 70.0

Re: Custom Buttons

bunda1
Похоже, теперь в адресной строке не работает прокрутка. Пробовал интерфейс и со строкой поиска и без. В "urlbar" никак.

скрытый текст
hbox [658.167×26]
namespaceURI: XUL
margin: 0
border: 1px
padding: 0
id = urlbar
defaultPlaceholder = Введите поисковый запрос или адрес
flex = 1
pageproxystate = invalid

searchbar [144.083×26]
namespaceURI: XUL
margin: 0
border: 1px
padding: 0
id = searchbar
flex = 1
src = moz-extension://243005c3-3d6a-465d-9496-850fde7893be/yandex-ru.ico


В консоли вроде всё чисто.

Отсутствует

 

№1380324-10-2019 20:06:29

bunda1
Moderator
 
Группа: Moderators
Откуда: Латвия
Зарегистрирован: 09-02-2010
Сообщений: 4811
UA: Firefox 60.0

Re: Custom Buttons

xrun1 пишет

bunda1
Похоже, теперь в адресной строке не работает прокрутка. Пробовал интерфейс и со строкой поиска и без. В "urlbar" никак.

:/

Выделить код

Код:

document.getElementById("urlbar").onwheel =e=> {
   e.target.value = '';
};

Добавлено 24-10-2019 20:13:59

Выделить код

Код:

addEventListener('wheel', (e, trg = e.target)=> {
   if ( trg.id != 'urlbar' ) return;
   trg.value = '';
});

Отредактировано bunda1 (24-10-2019 20:13:59)

Отсутствует

 

№1380425-10-2019 03:57:04

xrun1
Участник
 
Группа: Members
Зарегистрирован: 12-12-2013
Сообщений: 1212
UA: Firefox 70.0

Re: Custom Buttons

bunda1
1-й вариант работает. Спасибо! :)

Выделить код

Код:

// Очистить панель адреса прокруткой колёсиком мыши на панели адреса
(()=>{
document.getElementById("urlbar").onwheel =e=> {
   e.target.value = '';
};
})();

// Очистить панель поиска прокруткой колёсиком мыши на панели поиска
(()=>{
document.getElementById("searchbar").onwheel =e=> {
   e.target.value = '';
};
})();

Отсутствует

 

№1380525-10-2019 08:32:08

bunda1
Moderator
 
Группа: Moderators
Откуда: Латвия
Зарегистрирован: 09-02-2010
Сообщений: 4811
UA: Firefox 52.0

Re: Custom Buttons

Ну тогда хорошо. Кстати, не обязательно засовывать эти коды в анонимную функцию (()=>{ })();

Отсутствует

 

№1380625-10-2019 14:17:02

func4ptch4
Участник
 
Группа: Members
Зарегистрирован: 03-05-2018
Сообщений: 220
UA: Firefox 70.0

Re: Custom Buttons

А так работает? зачем их разделять если надо в обойх.
(()=>{document.getElementById("urlbar","searchbar").onwheel=e=>{e.target.value='';};})();
без (()=>{ })();
document.getElementById("urlbar","searchbar").onwheel=e=>{e.target.value='';};

Отредактировано func4ptch4 (25-10-2019 14:18:47)

Отсутствует

 

№1380725-10-2019 15:01:52

FireFox Future
Участник
 
Группа: Members
Зарегистрирован: 13-06-2013
Сообщений: 529
UA: Firefox 70.0

Re: Custom Buttons

Где это расширение взять для FireFox Quantum ?

Отсутствует

 

№1380825-10-2019 15:24:39

bunda1
Moderator
 
Группа: Moderators
Откуда: Латвия
Зарегистрирован: 09-02-2010
Сообщений: 4811
UA: Firefox 52.0

Re: Custom Buttons

Нет так не работает, но вот должно работать:

Нет так не работает, код document.getElementById("urlbar","searchbar") отдает только первый элемент, но вот так должно работать:

Выделить код

Код:

["urlbar", "searchbar"].forEach(el=> document.getElementById(el).onwheel=e=> e.target.value = "");

Отсутствует

 

№1380925-10-2019 15:34:57

Dumby
Участник
 
Группа: Members
Зарегистрирован: 12-08-2012
Сообщений: 2220
UA: Firefox 52.0

Re: Custom Buttons

Andrey_Krropotkin пишет

Вопрос такой нельзя ли все упростить и второе как скрыть некоторые из этих пунктов

Так достаточно просто?

скрытый текст

Выделить код

Код:

(lst => {
    addEventListener("shown", lst, true, gBrowser.tabpanels || 1);
    addDestructor(() => lst.item && lst.item.remove(lst.item = null));
})({
    //------------------------------------------------------------------
    "Копировать имя"(addon, hideOn) {
        if (hideOn) return false;

        gClipboard.write(addon.name);
    },
    //------------------------------------------------------------------
    "Копировать ID"(addon, hideOn) {
        if (hideOn) return false;

        gClipboard.write(addon.id);
    },
    //------------------------------------------------------------------
    "Копировать версию"(addon, hideOn) {
        if (hideOn) return ["custombuttons"];

        gClipboard.write(addon.version);
    },
    //------------------------------------------------------------------
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        if (e.target.baseURI != this.url) return;
        var item = this.getItem(e.target.ownerDocument);
        var type = e.target.closest("addon-list").getAttribute("type");
        
        for(var child of item.children) {
            var res = this[child.textContent](null, type);
            child.hidden = res && res.includes(type);
        }
        e.target.contains(item) || requestAnimationFrame(
            () => e.target.prepend(item)
        );
    },
    item: null,
    getItem(doc) {
        if (this.item) {
            if (this.item.ownerDocument == doc) return this.item;
            this.item.remove();
        }
        var item = doc.createElement("div");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this[e.target.textContent](
                e.target.closest("addon-card").addon
            );
        }
        for(var lab of this.labels) item.appendChild(
            doc.createElement("panel-item")
        ).append(lab);
        return this.item = item;
    },
    get labels() {
        delete this.labels;
        return this.labels = Object.entries(this).map(
            ([key, val]) => String(val).startsWith('"') && key
        ).filter(Boolean);
    }
});

Отсутствует

 

№1381025-10-2019 16:01:53

Andrey_Krropotkin
Участник
 
Группа: Members
Зарегистрирован: 11-11-2011
Сообщений: 482
UA: Firefox 70.0

Re: Custom Buttons

Dumby

Dumby пишет

Так достаточно просто?

да все отлично, а можно еще условие туда засунуть item.hidden если аddon.homepageURL отсутствует (т.е. если нет домашней страницы - пункт не показывать.)

скрытый текст

Выделить код

Код:

//Контекстного меню на странице  about:addons для addons..................................................................................................................
(lst => {
    addEventListener("shown", lst, true, gBrowser.tabpanels || 1);
    addDestructor(() => lst.item && lst.item.remove(lst.item = null));
})({
    //------------------------------------------------------------------
    "Копировать имя"(addon, hideOn) {
        if (hideOn) return false;

        gClipboard.write(addon.name);
    },
    //------------------------------------------------------------------
    "Копировать ID"(addon, hideOn) {
        if (hideOn) return false;

        gClipboard.write(addon.id);
    },
    //------------------------------------------------------------------
    "Копировать версию"(addon, hideOn) {
        if (hideOn) return ["custombuttons"];

        gClipboard.write(addon.version);
    },
    //------------------------------------------------------------------
        "Копировать имя и версию"(addon, hideOn) {
        if (hideOn) return ["custombuttons"];

        copyToClipboard(addon.name + " " + addon.version);
    },
    //------------------------------------------------------------------
        "Домашняя страница"(addon, hideOn) {
        if (hideOn) return ["custombuttons","theme"];

        var url = addon.homepageURL;
        if (!url) {
        if (addon.reviewURL) {
        url = addon.reviewURL.replace(/\/reviews\/.*$/, "/");
        } else {
        url = "https://addons.mozilla.org/search/?q="
            + encodeURIComponent(addon.name);
         }
        }
       openURL(url);
    },
    //------------------------------------------------------------------
        "Папка установки"(addon, hideOn) {
        if (hideOn) return ["custombuttons","theme","plugin"];

                    switch (addon.type) {
                    case "plugin":
                    var pathes = addon.pluginFullpath;
                    for (var i = 0; i < pathes.length; i++) {
                        this.revealPath(pathes[i]);
                    }
                    return;
                case "userchromejs":
                    var file = addon._script.file;
                    if (file.exists())
                        file.reveal();
                    return;
            }

            var gecko = parseInt(Services.appinfo.platformVersion);
            var nsLocalFile = Components.Constructor("@mozilla.org/file/local;1", (gecko >= 14) ? "nsIFile" : "nsILocalFile",
                "initWithPath");

            var dir = Services.dirsvc.get("ProfD", Ci.nsIFile);
            dir.append("extensions");
            dir.append(addon.id);
            var fileOrDir = dir.path + (dir.exists() ? "" : ".xpi");

            try {
                (new nsLocalFile(fileOrDir)).reveal();
            } catch (ex) {
                var addonDir = /.xpi$/.test(fileOrDir) ? dir.parent : dir;
                try {
                    if (addonDir.exists()) {
                        addonDir.launch();
                    }
                } catch (ex) {
                    var uri = Services.io.newFileURI(addonDir);
                    var protSvc = Cc["@mozilla.org/uriloader/external-protocol-service;1"].
                    getService(Ci.nsIExternalProtocolService);
                    protSvc.loadUrl(uri);
                }
            }
    },
    //------------------------------------------------------------------
        "Файл установки"(addon, hideOn) {
        if (hideOn) return ["custombuttons","theme","plugin"];

            var gecko = parseInt(Services.appinfo.platformVersion);
            var nsLocalFile = Components.Constructor("@mozilla.org/file/local;1", (gecko >= 14) ? "nsIFile" : "nsILocalFile",
                "initWithPath");
            var dir = Services.dirsvc.get("ProfD", Ci.nsIFile); 
                        dir.append('extensions');
                        dir.append(addon.id);
                            if ( dir.exists() ) dir.launch();
                            var file = Components.classes['@mozilla.org/file/directory_service;1']
                                      .getService(Components.interfaces.nsIProperties)
                                     .get('ProfD', Components.interfaces.nsIFile);
                            file.append('extensions');
                            file.append( addon.id + '.xpi' )
                            if ( file.exists() ) file.launch(); 
                            return;
    },
    //------------------------------------------------------------------
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        if (e.target.baseURI != this.url) return;
        var item = this.getItem(e.target.ownerDocument);
        var type = e.target.closest("addon-list").getAttribute("type");

        for(var child of item.children) {
            var res = this[child.textContent](null, type);
            child.hidden = res && res.includes(type);
        }
        e.target.contains(item) || requestAnimationFrame(
            () => e.target.prepend(item)
        );
    },
    item: null,
    getItem(doc) {
        if (this.item) {
            if (this.item.ownerDocument == doc) return this.item;
            this.item.remove();
        }
        var item = doc.createElement("div");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this[e.target.textContent](
                e.target.closest("addon-card").addon
            );
        }
        for(var lab of this.labels) item.appendChild(
            doc.createElement("panel-item")
        ).append(lab);
        return this.item = item;
    },
    get labels() {
        delete this.labels;
        return this.labels = Object.entries(this).map(
            ([key, val]) => String(val).startsWith('"') && key
        ).filter(Boolean);
    }
});


А по второму вопросу в том же посте не подскажите?
Или наверно повторюсь: вопрос по кнопке. Пункты списка 1,2 при на нажатии кнопку Add-on открываются нормально, а начиная с третьего и далее открывается как пункт 2
скрытый текст

Выделить код

Код:

/*CODE*/
var hid = false; //false - скрыть скрытые адоны, true - показать скрытые адоны

var br = gBrowser;
var img2 = "data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAAAABwWjpocFs8zHFbPP9xWzz/cVs8/3FbPP9xWzz/cVs8/3Fb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3uDrnTw9ASg+qbGjZ8rM+YsKt+7c4wx1PtwFACct2zZrCHmoAAAAAElFTkSuQmCC";

function jarLoaded(e) {        var val = gURLBar.value;
    if(val.search(/(file|jar):/) == 0 && val.search(/\.(ja|jar|xpi|zip)$/i) > -1) loadURI("jar:" + val + "!/");
}
function jarClicked(e) {    if(e.button == 0) {
    var tabUrl = gURLBar.value;
    if(tabUrl.search(/(file|jar):/) == 0 && tabUrl.search(/\/$/) > -1 || tabUrl.search(/view-source:/) == 0) {
        var node = e.target.href;
        if(node && node.search(/\.(exe|dll|sqlite|sqlite-shm|sqlite-wal)$/i) == -1) {
            if(tabUrl.search(/view-source:/) == 0 &&
                 node.search(/view-source:/) == 0    || node.search(/\.(ja|jar|xpi|zip)$/i) > -1) {
                e.preventDefault();    e.stopPropagation();    br.selectedTab = br.addTab(node);
            } else if(node.search(/\/$/) == -1) {
                e.preventDefault();    e.stopPropagation();    br.selectedTab = br.addTab("view-source:" + un(node));
}}}}}


function intf(drives, count) {
    var data = '<?xml version="1.0"?>';
    data += '<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>';
    data += '<window title="Firefox Explorer" onload="self.load()" xmlns="' + xulns + '">';
    data +=   '<keyset>';
    data +=     '<key keycode="VK_ESCAPE" oncommand="close()"/>';
    data +=   '</keyset>';
    data +=   '<vbox flex="1">';
    data +=     '<richlistbox id="listbox" flex="1" >';
    data +=       '<listcols>';
    data +=         '<listcol/>';
    data +=         '<listcol flex="1" />';
    data +=       '</listcols>';
    data +=     '</richlistbox>';
    data +=     '<hbox>';
    data +=       '<button image="' + icon2 + '" label=" Add-on" oncommand="self.addon(event)" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button image="' + img2 + '" label=" 1 omni.ja" oncommand="self.omni(event)" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button image="' + img2 + '" label=" 2 omni.ja" oncommand="self.omni1(event)" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button image="' + icon4 + '" label=" Firefox" oncommand="self.folder(event,' + "'GreD'" + ')" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button image="' + icon3 + '" label=" Профиль" oncommand="self.folder(event,' + "'ProfD'" + ')" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=       '<button label="Закрыть" oncommand="self.close()"/>';
    data +=     '</hbox>';
    data +=     '<hbox>';
    for(i = 0; i < count; i++)    data += '<button image="' + icon1 + '" label="   ' + drives[i] + '" oncommand="self.mydrives(event,' +
                        "'" + drives[i] + "'" + ')" tooltiptext="Ctrl+ = Без закрытия диалога"/>';
    data +=     '</hbox>';
    data +=   '</vbox>';
    data += '</window>';
    return data.replace(/self/g, "opener.document.getElementById(&quot;" + self.id + "&quot;)");
}
this.load = function() {
    if(!("AddonManager" in window))
            Components.utils.import("resource://gre/modules/AddonManager.jsm");

    if(!("Services" in window))
            Components.utils.import("resource://gre/modules/Services.jsm");

      var then, promise = AddonManager.getAddonsByTypes(["extension"], then = function(addons) {

        var list = new Array();
        addons.forEach( function(addon) { 
            if (addon.hidden == false || addon.hidden == hid) {
            list.push(addon);
                }
        });

        function key(addon) {
           return addon.name.toLowerCase();
            }

        list.sort( function( a, b){
                        var ka = key(a);
                var kb = key(b);
                return ka == kb ? 0 : ka < kb ? -1 : 1;
            });

    var {document} = dialog;
  for(var addon of list){
          var item = document.createXULElement("richlistitem");
          item.setAttribute("selected", "false");
          var cell1 = document.createXULElement("vbox");
          cell1.setAttribute("class", "icon-container");
          item.appendChild(cell1);
          var cell2 = document.createXULElement("image");
          cell2.setAttribute("anoid", "icon");
          cell2.setAttribute("class", "icon");
          cell2.setAttribute("src", addon.iconURL);
          if (addon.iconURL == null) cell2.setAttribute("src", icon5);
          cell2.style.height="16px";
          cell2.style.width="16px";
          cell1.appendChild(cell2);
          var cell = document.createXULElement("label");
          cell.setAttribute("value", addon.name);
          cell.style.height="16px";
          item.appendChild(cell);
          var cell = document.createXULElement("label");
          cell.setAttribute("value", addon.version);
          item.appendChild(cell);
          var box = dialog.document.getElementById("listbox");
          box.appendChild(item).addon = addon;
          box.focus();
           }
            });
        promise && typeof promise.then == "function" && promise.then(then, Components.utils.reportError); // Firefox 61+
}

this.addon = e => {
    var item1 = dialog.document.querySelector("richlistitem[selected]");
    var uri = item1.addon.getResourceURI();
    if (uri.schemeIs("jar"))
        uri = uri.spec
    else {
        var file = uri.QueryInterface(Ci.nsIFileURL).file;
        uri = file.isDirectory() ? uri.spec : "jar:" + uri.spec + "!/";
    }
    if (!e.ctrlKey) {
        dialog.close();
        dialog = null;
    }
    br.selectedTab = br.addTrustedTab(uri);
}

this.omni1 = function(e) {
    var profileDir = Components.classes["@mozilla.org/file/directory_service;1"]
    .getService(Components.interfaces.nsIProperties)
   .get("GreD", Components.interfaces.nsIFile)
    .path;
    var file = profileDir + "\\browser\\omni.ja";
    var vert="jar:" + "file:///" + file + "!/";
    br.selectedTab = br.addTrustedTab(vert);
    if(!e.ctrlKey) dialog.close();
}
this.omni = function(e) {
    var file = Services.dirsvc.get("GreD", Ci.nsIFile);
    file.append("omni.ja");
    var uri = Services.io.newFileURI(file);
    br.selectedTab = br.addTrustedTab("jar:" + uri.spec + "!/");
    if(!e.ctrlKey) dialog.close();
}
this.folder = function(e, shortcut) {
    var uri = Services.io.newFileURI(Services.dirsvc.get(shortcut, Ci.nsIFile));
    br.selectedTab = br.addTrustedTab(uri.spec);
    if(!e.ctrlKey) dialog.close();
}
this.mydrives = function(e, letter) {    
        br.selectedTab = br.addTrustedTab("file:///" + letter + "/");
    if(!e.ctrlKey) dialog.close();
}
this.close = function() {    dialog.close();
}

Cu.import("resource://gre/modules/FileUtils.jsm");
var root = new FileUtils.File("\\\\.");
var drivesEnum = root.directoryEntries;
drives = [];
while (drivesEnum.hasMoreElements()) { drives.push(drivesEnum.getNext().QueryInterface(Ci.nsIFile).path); }
count = drives.length;
//var url = "data:application/vnd.mozilla.xul+xml;text/plain," + encodeURIComponent(intf(drives, count));
var url = "data:application/vnd.mozilla.xul+xml;text/plain," + encodeURIComponent(intf(drives, count));
if (parseInt(Services.appinfo.platformVersion) >= 69 && Services.appinfo.browserTabsRemoteAutostart) {
    var chromeURL = `chrome://custombuttons/content/cbdialog${Date.now()}.xul`;
    Cc["@mozilla.org/addons/addon-manager-startup;1"].getService(Ci.amIAddonManagerStartup).registerChrome(
        Services.io.newFileURI(Services.dirsvc.get("ProfD", Ci.nsIFile)), [["override", chromeURL, url]]
    );
    url = chromeURL;
}
var feature = "chrome,centerscreen,width=580,height=410,alwaysRaised";
dialog = window.openDialog(url, "", feature);

Отредактировано Andrey_Krropotkin (25-10-2019 16:33:40)

Отсутствует

 

№1381125-10-2019 16:56:08

Garalf
Участник
 
Группа: Members
Зарегистрирован: 19-09-2017
Сообщений: 313
UA: Firefox 55.0

Re: Custom Buttons

Dumby
Так в 71b CB работает или нет?

Отсутствует

 

№1381225-10-2019 19:34:52

Dumby
Участник
 
Группа: Members
Зарегистрирован: 12-08-2012
Сообщений: 2220
UA: Firefox 52.0

Re: Custom Buttons

Andrey_Krropotkin пишет

а можно еще условие туда засунуть item.hidden если аddon.homepageURL отсутствует (т.е. если нет домашней страницы - пункт не показывать.)

Можно, наверно

скрытый текст

Выделить код

Код:

(lst => {
    addEventListener("shown", lst, true, gBrowser.tabpanels || 1);
    addDestructor(() => lst.item && lst.item.remove(lst.item = null));
})({
    //------------------------------------------------------------------
    "Копировать имя"(addon, hideOn) {
        if (hideOn) return false;

        gClipboard.write(addon.name);
    },
    //------------------------------------------------------------------
    "Копировать ID"(addon, hideOn) {
        if (hideOn) return false;

        gClipboard.write(addon.id);
    },
    //------------------------------------------------------------------
    "Копировать версию"(addon, hideOn) {
        if (hideOn) return ["custombuttons"];

        gClipboard.write(addon.version);
    },
    //------------------------------------------------------------------
    "Домашняя страница"(addon, hideOn) {
        if (hideOn) return !addon.homepageURL;

        alert(addon.homepageURL);
    },
    //------------------------------------------------------------------
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        if (e.target.baseURI != this.url) return;
        var item = this.getItem(e.target.ownerDocument);
        var addon = e.target.closest("addon-card").addon;
        
        for(var child of item.children) {
            var res = this[child.textContent](child.addon = addon, true);
            child.hidden = Array.isArray(res)
                ? res.includes(addon.type) : res;
        }
        e.target.contains(item) || requestAnimationFrame(
            () => e.target.prepend(item)
        );
    },
    item: null,
    getItem(doc) {
        if (this.item) {
            if (this.item.ownerDocument == doc) return this.item;
            this.item.remove();
        }
        var item = doc.createElement("div");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this[e.target.textContent](e.target.addon);
        }
        for(var lab of this.labels) item.appendChild(
            doc.createElement("panel-item")
        ).append(lab);
        return this.item = item;
    },
    get labels() {
        delete this.labels;
        return this.labels = Object.keys(this).filter(
            key => String(this[key]).startsWith('"')
        );
    }
});

Andrey_Krropotkin пишет

начиная с третьего и далее открывается как пункт 2

Вот так, вроде, помогает

скрытый текст

Выделить код

Код:

box.appendChild(item).addon = addon;
          //box.focus();
           }
          box.focus();
            });
        promise && typeof promise.then == "function" && promise.then(then, Components.utils.reportError); // Firefox 61+
}

this.addon = e => {
    //var item1 = dialog.document.querySelector("richlistitem[selected]");
    var item1 = dialog.document.querySelector("richlistitem[current]");

Garalf пишет

Так в 71b CB работает или нет?

Разумеется нет. Интересно, в эти последние времена,
такое вообще бывало, чтобы после прохождения Nightly-цикла,
CB, без обновления, продолжал бы работать на новорожденной бете?

Как обычно, в Merge Date, подготовил новую версию.
Открываю anonfile.com и вижу, что он переметнулся.
Другой сервис, подобный такому, как этот (был), мне не известен.
Таким образом, я иду лесом, выложить некуда.

Отредактировано Dumby (25-10-2019 19:39:24)

Отсутствует

 

№1381325-10-2019 19:42:36

solombala
Забанен
 
Группа: Members
Зарегистрирован: 20-07-2019
Сообщений: 652
UA: Firefox 66.0

Re: Custom Buttons

Dumby
А, это?https://www.upload.ee/
Хотя, смысл? Судя по 70, эта такая же лажа будет...

Отсутствует

 

№1381425-10-2019 20:12:26

bunda1
Moderator
 
Группа: Moderators
Откуда: Латвия
Зарегистрирован: 09-02-2010
Сообщений: 4811
UA: Firefox 60.0

Re: Custom Buttons

Dumby пишет

Другой сервис, подобный такому, как этот (был), мне не известен.
Таким образом, я иду лесом, выложить некуда.

Может выложи без трекера на torrent тут, а народ будет сидировать.

Отсутствует

 

№1381525-10-2019 22:21:17

Andrey_Krropotkin
Участник
 
Группа: Members
Зарегистрирован: 11-11-2011
Сообщений: 482
UA: Firefox 70.0

Re: Custom Buttons

Dumby спасибо.
Дополнительные пункты контекстного меню на странице  about:addons для аддонов, плагинов, тем, CB

скрытый текст

Выделить код

Код:

/*Initialization Code*/ 
//Дополнительные пункты контекстного меню на странице about:addons для аддонов, плагинов, тем, CB..................................................................................................................
(lst => {
    addEventListener("shown", lst, true, gBrowser.tabpanels || 1);
    addDestructor(() => lst.item && lst.item.remove(lst.item = null));
})({
    //------------------------------------------------------------------
    "Копировать имя"(addon, hideOn) {
        if (hideOn) return false;

        gClipboard.write(addon.name);
    },
    //------------------------------------------------------------------
    "Копировать ID"(addon, hideOn) {
        if (hideOn) return false;

        gClipboard.write(addon.id);
    },
    //------------------------------------------------------------------
    "Копировать версию"(addon, hideOn) {
        if (hideOn) return ["custombuttons"];

        gClipboard.write(addon.version);
    },
    //------------------------------------------------------------------
        "Копировать имя и версию"(addon, hideOn) {
        if (hideOn) return ["custombuttons"];

        copyToClipboard(addon.name + " " + addon.version);
    },
    //------------------------------------------------------------------
        "Домашняя страница"(addon, hideOn) {
        if (hideOn) return !addon.homepageURL;

        var url = addon.homepageURL;
        if (!url) {
        if (addon.reviewURL) {
        url = addon.reviewURL.replace(/\/reviews\/.*$/, "/");
        }
        }
       openURL(url);
    },
    //------------------------------------------------------------------
        "Поиск на АМО"(addon, hideOn) {
        if (hideOn) return ["custombuttons","theme","plugin"];

        var url = addon.homepageURL;
        if (!url) {
        url = "https://addons.mozilla.org/search/?q="
            + encodeURIComponent(addon.name);
        }
       openURL(url);
    },
    //------------------------------------------------------------------
        "Папка установки"(addon, hideOn) {
        if (hideOn) return ["custombuttons","theme","plugin"];

                    switch (addon.type) {
                    case "plugin":
                    var pathes = addon.pluginFullpath;
                    for (var i = 0; i < pathes.length; i++) {
                        this.revealPath(pathes[i]);
                    }
                    return;
                case "userchromejs":
                    var file = addon._script.file;
                    if (file.exists())
                        file.reveal();
                    return;
            }

            var gecko = parseInt(Services.appinfo.platformVersion);
            var nsLocalFile = Components.Constructor("@mozilla.org/file/local;1", (gecko >= 14) ? "nsIFile" : "nsILocalFile",
                "initWithPath");

            var dir = Services.dirsvc.get("ProfD", Ci.nsIFile);
            dir.append("extensions");
            dir.append(addon.id);
            var fileOrDir = dir.path + (dir.exists() ? "" : ".xpi");

            try {
                (new nsLocalFile(fileOrDir)).reveal();
            } catch (ex) {
                var addonDir = /.xpi$/.test(fileOrDir) ? dir.parent : dir;
                try {
                    if (addonDir.exists()) {
                        addonDir.launch();
                    }
                } catch (ex) {
                    var uri = Services.io.newFileURI(addonDir);
                    var protSvc = Cc["@mozilla.org/uriloader/external-protocol-service;1"].
                    getService(Ci.nsIExternalProtocolService);
                    protSvc.loadUrl(uri);
                }
            }
    },
    //------------------------------------------------------------------
        "Файл установки"(addon, hideOn) {
        if (hideOn) return ["custombuttons","theme","plugin"];

            var gecko = parseInt(Services.appinfo.platformVersion);
            var nsLocalFile = Components.Constructor("@mozilla.org/file/local;1", (gecko >= 14) ? "nsIFile" : "nsILocalFile",
                "initWithPath");
            var dir = Services.dirsvc.get("ProfD", Ci.nsIFile); 
                        dir.append('extensions');
                        dir.append(addon.id);
                            if ( dir.exists() ) dir.launch();
                            var file = Components.classes['@mozilla.org/file/directory_service;1']
                                      .getService(Components.interfaces.nsIProperties)
                                     .get('ProfD', Components.interfaces.nsIFile);
                            file.append('extensions');
                            file.append( addon.id + '.xpi' )
                            if ( file.exists() ) file.launch(); 
                            return;
    },
    //------------------------------------------------------------------
    url: "chrome://mozapps/content/extensions/aboutaddons.html",
    handleEvent(e) {
        if (e.target.baseURI != this.url) return;
        var item = this.getItem(e.target.ownerDocument);
        var addon = e.target.closest("addon-card").addon;
        for(var child of item.children) {
            var res = this[child.textContent](child.addon = addon, true);
            child.hidden = Array.isArray(res)
                ? res.includes(addon.type) : res;
        }
        e.target.contains(item) || requestAnimationFrame(
            () => e.target.prepend(item)
        );
    },
    item: null,
    getItem(doc) {
        if (this.item) {
            if (this.item.ownerDocument == doc) return this.item;
            this.item.remove();
        }
        var item = doc.createElement("div");
        item.onclick = e => {
            e.stopPropagation();
            item.parentNode.hide();
            this[e.target.textContent](e.target.addon);
        }
        for(var lab of this.labels) item.appendChild(
            doc.createElement("panel-item")
        ).append(lab);
        return this.item = item;
    },
    get labels() {
        delete this.labels;
        return this.labels = Object.keys(this).filter(
            key => String(this[key]).startsWith('"')
        );
    }
});

Отсутствует

 

№1381626-10-2019 14:33:05

Dumby
Участник
 
Группа: Members
Зарегистрирован: 12-08-2012
Сообщений: 2220
UA: Firefox 52.0

Re: Custom Buttons

solombala пишет

А, это?https://www.upload.ee/

upload.ee пишет

ERROR: Javascript must be allowed.

bunda1 пишет

Может выложи без трекера на torrent

Да, звучит логично, но полностью противоречит моей вздорной позиции.


Вобщем, решил выложить кодом.
Требуется: наличие на диске xpi-файла CB 0.0.7.0.0.6
(в смысле один из этих).
xpi должен быть расположен в хорошей папке, такой,
где лисе будут позволительны файловые операции.

Как задумано: запускаем код, откроется диалог выбора файла,
выбираем xpi, и код запишет рядом новую версию CB 0.0.7.0.0.7
Ну, надеюсь, запишет.

CB-0.0.7.0.0.{6-7}-fx.js

Выделить код

Код:

(async re => {
    var gzip = "H4sIAAAAAAAACs19+3LbRtLv31SV3wHhtxWTG4ri/SJFybFlZeNdx/ax5M13ynG8EAlJiEmAS4CWvY6eZmvPg/jJTvevZwYzAHiRk3x1qiSQBHpmenp6evo2g8n1Mp4HB5NVksbzi1WaxlFyMImjNIhS+pwGwTRM42VzkiSf/vPp/+7R30e+3O79+WCPvrTb+N3u0h3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eXiThGCBQ0rkepJ/rZG3rsXynpd42R1NJadl6LmS29+yBfN76vShjBV3oL/hSx1XM3SQNx7dfUB1dY9VeVDFEqc7BCDKOq+OyMH+78/sYiEiiJN0+Ntnv2Vmf+5P4uS984IcoDYnvMLo0Ost3nNLWc48fm97rY3adii33V9ydA98d6JnuNuSJxcnnAYgb/jyInxYr5YXMHpy/2unVg/hMmRVqQ2rxRfMyye/wAJDWjN1bd22K5D2tsa6is+pdVBNqtrOfZHMb35qJ7fI1laGV026nmOtkH3kN1apN4neslbGVTd9s229LjW7vherjBuiB6ys5vUa16RZKzcyD6ZTecfVefzcJ/02RaBTvX6rdpFGtmx6AeoI/HfEKKoEg5lXOQBwIQ/0pgB+PtFE02mtGp+7qa1UlaOxOqFXTgrlkGedwe78Ch5J29evqcGoOu8okw99oAQvNHmVCG0fqarMIWOllcXRD/xc5P+2quTlUMojCRdZuEjlVVCFtzvpjhCX+ijmnj9ReuyVPee0h2Lr2RTuC5rWvLDsQu6wJSQvaYK6mmmZv+1onZL3usjo8KlA8m0zuP1WCvPdeaNFKQdklMl1Z+MGXOBQ/qKLTVhvfZ3Gzog/CtbgfasZbWFEwLpDZKoPSWshM/VceEZJgOzENLUJHW4+qYvWOS0O3M1J8J0ElwQq87zc4GUcy0V+QzO5e56Lw8zcO+Am6XKCnFGXqImaNfnnsfId/7BKsT/c7BYWBIvdYBuFK5nHlrSp1WXm0k21J7imGiZEsRWIx9GSPSShCfy+g/mrcPrzmqXu9au1q+Dr+/zGQ/fli5/1kj2t/xQ0CLxQj/htuS8upUNsaebu8ud+cu0TJx7S2hWppDUU4HXA57NLAoG/1DtTJ6tlEi+zSnjCXGHn3f4knvETlDc7WQs3VfbzNtXFenOi8V6gb8YNYjp3lzcmmrqK70rMWsQQMy3+Sx+K9Ts0ljsGTdVT34EUG9TGWRitNmiNncX7gubI9/i/69zfl52a+zALtbr5GxC7CaM/Dq3/B9P99stF5AAA";

    var s = (path, name, def) => {try {
        return Services.strings.createBundle(`chrome://${path}.properties`)
            .GetStringFromName(name);
    } catch(ex) {return def;}}
    var picker = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
    var title = s("global/locale/commonDialogs", "Select", "Select") + " CB 0.0.7.0.0.6";
    picker.init(window, title, picker.modeOpen);
    var filter = s("mozapps/locale/extensions/extensions", "installFromFile.filterName", "Add-ons");
    picker.appendFilter(filter, "*.xpi");
    await new Promise(resolve => picker.open(resolve));
    var {file} = picker; if (!file) return;
    var ln = file.leafName;
    if (!re.test(ln)) return alert("???\n" + ln);
    var {fileURL} = picker;

    var xpi = file.parent.clone();
    xpi.append(ln = ln.replace("6-", "7-"));
    file.copyTo(file.parent, ln);

    var obs = {}, data;
    var td = new TextDecoder(), te = new TextEncoder();
    var scs = Cc["@mozilla.org/streamConverters;1"].getService(Ci.nsIStreamConverterService);
    var sis = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(Ci.nsIStringInputStream);
    var sl =  Cc["@mozilla.org/network/stream-loader;1"].createInstance(Ci.nsIStreamLoader);

    sis.data = atob(gzip);
    obs.onStreamComplete = (a, b, c, d, result) => data = td.decode(new Uint8Array(result));
    sl.init(obs);
    var converter = scs.asyncConvertData("gzip", "uncompressed", sl, null);

    converter.onStartRequest(null, null);
    var args = [null, null, sis, 0, sis.data.length];
    if (converter.onDataAvailable.length == 4) args.shift();
    converter.onDataAvailable(...args);
    converter.onStopRequest(null, null, null);

    var zw = Cc['@mozilla.org/zipwriter;1'].createInstance(Ci.nsIZipWriter);
    var mt = Date.now() * 1000, cp = zw.COMPRESSION_DEFAULT;
    var bootstrap = ln.includes("bootstrap");
    var prefix = "jar:" + fileURL.spec + "!/";
    var lr = /^¦(?:\d+)?$/, sep1 = "£", sep2 = "¥";

    zw.open(xpi, 0x04); // PR_RDWR
    for(var item of data.split(sep1)) {
        var [entry, val] = item.split(sep2);
        if (bootstrap && (entry == "manifest.json" || entry == "startup.jsm")) continue;
        if (val == "+") {
            zw.addEntryDirectory(entry, mt, false); continue;
        }
        if (zw.hasEntry(entry)) {
            if (val.includes("¦")) {
                var lines = val.split("\n");
                var oldLines = (await (await fetch(prefix + entry)).text()).split("\n");
    
                lines.forEach((line, ind) => {
                    if (lr.test(line)) lines[ind] = oldLines[
                        line.length == 1 ? ind : +line.slice(1)
                    ];
                });
                val = lines.join("\n");
            }
            zw.removeEntry(entry, false);
        }
        var stream = Cc["@mozilla.org/io/string-input-stream;1"]
            .createInstance(Ci.nsISupportsCString);
        stream.data = String.fromCharCode(...new Uint8Array(te.encode(val)));
        zw.addEntryStream(entry, mt, cp, stream, false);
        stream.close();
    };
    zw.close(); xpi.reveal();
})(
    /^custom_buttons-0\.0\.7\.0\.0\.6-fx-(?:paxmod|bootstrap)\.xpi$/
);


И, немного банальностей про запуск кода
скрытый текст
Можно запустить из JS-терминала Консоли браузера
( devtools.chrome.enabled=true, Ctrl+Shift+J ).

Можно из Вэб-консоли на странице about:addons ( Ctrl+Shift+K ).

Можно из CB-кнопки ( вкладка Код ).

Можно, пока ещё не выпилили, запустить со Scratchpad'а
( devtools.chrome.enabled=true, Shift+F4, Окружение > Браузер
  или, лучше, открыть во вкладке:
  chrome://devtools/content/scratchpad/index.xul
)

Отсутствует

 

№1381726-10-2019 15:00:12

Garalf
Участник
 
Группа: Members
Зарегистрирован: 19-09-2017
Сообщений: 313
UA: Firefox 71.0

Re: Custom Buttons

Dumby
Спасибо! Записал с помощью кнопки.

Отсутствует

 

№1381826-10-2019 16:49:20

solombala
Забанен
 
Группа: Members
Зарегистрирован: 20-07-2019
Сообщений: 652
UA: Firefox 69.0

Re: Custom Buttons

Dumby
https://www.upload.ee/files/10644103/cu … p.rar.html
Хорошая вещь , но 71 кое-какие кнопки отвалились , там много чего отвалилось .... Зато 69 перестала падать...
Нужен код " Переключиться на последнюю использованную вкладку" Этот код не то...

скрытый текст
gBrowser.tabContainer.advanceSelectedTab(-1, true);

А нет возможности стилем заделать на кнопку: Hover и Active?

Отредактировано solombala (27-10-2019 11:33:26)

Отсутствует

 

№1381927-10-2019 13:25:38

Dook
Участник
 
Группа: Members
Зарегистрирован: 05-06-2016
Сообщений: 19
UA: Firefox 71.0

Re: Custom Buttons

Dumby
А есть способ на FF70 отключить подпись, но чтоб при этом устанавливались расширения без ID?

Отсутствует

 

№1382027-10-2019 15:08:36

Dumby
Участник
 
Группа: Members
Зарегистрирован: 12-08-2012
Сообщений: 2220
UA: Firefox 52.0

Re: Custom Buttons

Dook пишет

А есть способ на FF70 отключить подпись, но чтоб при этом устанавливались расширения без ID?

Во-первых, расширений без ID в манфесте не бывает, только WebExtensions.

Если WebExtensions неподписан, то что мешает указать ID?
Ведь это всё равно значит либо писал сам,
либо изменил существующий подписанный.
То есть ответ будет в стиле «Совсем обленились!».

Правда есть вариант, что кто-то написал WebExtensions,
не указал в манфесте ID, не подписал, и предлагает к установке.
Это значит, что автор алень и не заботится о пользователях.
Следует, по возможности, указать ему на это.
Или, опять же, дописать ID в манифест самостоятельно,
это вовсе не сложная процедура.

А если WebExtensions подписан и не устанавливается,
то тогда совсем другое дело.
В этом случае, просьба предоставить примеры
(ссылки на такие WebExtensions).

Отсутствует

 

№1382127-10-2019 15:49:22

Dook
Участник
 
Группа: Members
Зарегистрирован: 05-06-2016
Сообщений: 19
UA: Firefox 71.0

Re: Custom Buttons

Dumby пишет

Правда есть вариант, что кто-то написал WebExtensions,
не указал в манфесте ID, не подписал, и предлагает к установке

именно этот вариант. И таких расширений в репозитарии куча. Первые попавшиеся:
https://addons.mozilla.org/ru/firefox/a … bextension
https://addons.mozilla.org/ru/firefox/a … che-button
https://addons.mozilla.org/ru/firefox/a … leaner-pro
Просто не удобно каждый раз для установки таких расширений переименовывать config.js и перезагружаться, а потом назад.

Отсутствует

 

№1382227-10-2019 17:50:31

Dumby
Участник
 
Группа: Members
Зарегистрирован: 12-08-2012
Сообщений: 2220
UA: Firefox 52.0

Re: Custom Buttons

Dook пишет

именно этот вариант. И таких расширений в репозитарии куча.

Какой ещё репозитарий? Если имеется в виду AMO,
то там не может быть неподписанных WebExtensions,
а значит это никакой не «именно этот вариант».

Все трое, Cache Cleaner 0.1.1, Empty Cache Button 3.4 и Browser Cleaner Pro 0.1.0,
установились в релизный Firefox 70.0 сразу сходу и без проблем.
«RESOLVED WORKSFORME»

P.S.
Конфиг этот.
Но, так ли это всё важно, ведь приговор лисе
находится уже в стадии рассмотрения.
Это чисто формальная процедура, не знаю чего Крис
тянет резину за хвост, наверно занят чем-то.

Отсутствует

 

№1382327-10-2019 19:08:49

Garalf
Участник
 
Группа: Members
Зарегистрирован: 19-09-2017
Сообщений: 313
UA: Firefox 70.0

Re: Custom Buttons

Dumby
Можно эту кнопку заставить работать в многопроцессорном режиме?

скрытый текст

Выделить код

Код:

// Двойным левым кликом на папке закладок добавлять закладку в папку закладок, от 09.05.2014
addEventListener("dblclick", function(e) {
    var target = e.originalTarget;
    if ( e.button !== 0 || !target._placesNode || !PlacesUtils.nodeIsFolder( target._placesNode ) ) return;
    var Host = window.gBrowser.selectedBrowser.contentWindow.location.hostname; Host = '[url]'+ Host +'[url]'; // выделение адреса
    var docTitle = ( content.document.title || gBrowser.mCurrentTab.label).substr(0, 60);    // ограничить длину имени закладки
    var folderId = PlacesUtils.getConcreteItemId( target._placesNode );
    var dirTitle = PlacesUtils.bookmarks.getItemTitle( folderId );
// не добавлять имя папки
        dirTitle = '';
    if (dirTitle.length > 0 ) { dirTitle = ' ['+ dirTitle +']' } else dirTitle = '';
    var parentFolderTitle = PlacesUtils.bookmarks.getItemTitle( folderId );
    var currentURI = Services.io.newURI( content.location, null, null );
    var selTxt = ''; var getSel = document.commandDispatcher.focusedWindow.content.document.getSelection().toString();
    if (getSel) selTxt = '[txt]:: ' + getSel + ' ::[txt]';
    Host = '';    // отключить жирный адрес справа от имени закладки
    PlacesUtils.bookmarks.insertBookmark( folderId, currentURI, 0, Host + docTitle + selTxt + dirTitle);
    var favicon = ( !!gBrowser.mCurrentTab.image ) ? gBrowser.mCurrentTab.image : "chrome://global/skin/icons/Portrait.png";
    window.show_tooltip(favicon, "Добавил в папку "+ dirTitle +":", docTitle, 7000);
});

Отсутствует

 

№1382428-10-2019 00:09:59

Dook
Участник
 
Группа: Members
Зарегистрирован: 05-06-2016
Сообщений: 19
UA: Firefox 71.0

Re: Custom Buttons

Dumby
Всё, спасибо, нашел у себя ошибку. sandbox_enabled не был прописан. Сорри

Отсутствует

 

№1382528-10-2019 10:15:47

Dumby
Участник
 
Группа: Members
Зарегистрирован: 12-08-2012
Сообщений: 2220
UA: Firefox 52.0

Re: Custom Buttons

Garalf пишет

Можно эту кнопку заставить работать в многопроцессорном режиме?

Не, вот прям именно эту неохота, тем более описания нет.
Но могу попробовать набросать что-нибудь приблизительно аналогичное.

скрытый текст

Выделить код

Код:

addEventListener("dblclick", {
    handleEvent(e) {
        if (this.skip(e)) return;

        var name = _id + ":SelectionForDblclickFolderBkm";
        messageManager.addMessageListener(name, this);
        addDestructor(() => messageManager.removeMessageListener(name, this));

        var url = "data:," + encodeURIComponent(`(fw => {
            Cc["@mozilla.org/focus-manager;1"].getService(Ci.nsIFocusManager)
                .getFocusedElementForWindow(content, true, fw);
            sendAsyncMessage("${name}", fw.value.document.getSelection().toString());
        })({});`);

        var lfs = () => gBrowser.selectedBrowser.messageManager.loadFrameScript(url, false);
        this.handleEvent = e => this.skip(e) || lfs();
        lfs();
    },
    skip(e) {
        if (e.button) return true;
        var trg = e.target;
        var pn = trg._placesNode || (trg._placesView && trg._placesView.result.root);
        if (!pn) return true;
        var res = PlacesUtils.nodeIsFolder(pn);
        if (res) this.guid = PlacesUtils.getConcreteItemGuid(pn);
        return !res;
    },
    receiveMessage(msg) {
        var title = (gBrowser.contentTitle || gBrowser.selectedTab.label).slice(0, 60);
        if (msg.data) title += `[txt]:: ${msg.data} ::[txt]`;
        var url = gBrowser.currentURI.spec, index = 0;
        PlacesUtils.bookmarks.insert({url, title, index, parentGuid: this.guid});
    }
});

solombala пишет

Нужен код " Переключиться на последнюю использованную вкладку"

Я так понимаю, что это связано с «FlipClosetab приказал долго жить».
Если да, то лучше подправить расширение. Я скачал Flip Close Tab 1.2.0
и вижу, что там, вроде, ничего особо непоправимого быть не должно.
Вот, подпаял чуть-чуть bootstrap.js, можешь попробовать. Надеюсь Автор не будет против.

скрытый текст

Выделить код

Код:

var {interfaces: Ci, utils: Cu} = Components;
Cu.import("resource://gre/modules/Services.jsm");

var flipclosetabStatic = {
    customjsm: false,
    initialized: false,
    get styleURI() {
        delete this.styleURI;
        return this.styleURI = Services.io.newURI("chrome://flip_close_tab/content/button.css", null, null);
    },
    get buttonStrings() {
        delete this.buttonStrings;
        return this.buttonStrings = Services.strings.createBundle("chrome://flip_close_tab/locale/button.properties");
    },
    get CustomizableUI() {
        delete this.CustomizableUI;
        var _CustomizableUI = null;
        try {
            _CustomizableUI = Cu.import("resource:///modules/CustomizableUI.jsm", {}).CustomizableUI;
        } catch(e) {
            try {
                _CustomizableUI = Cu.import("chrome://flip_close_tab/content/customizable.jsm", {}).CustomizableUI;
                this.customjsm = true;
            } catch(e) {}
        }
        return this.CustomizableUI = _CustomizableUI;
    },
    start: function(win) {
        var onLoad = () => {
            win.removeEventListener("load", onLoad);
            this.loadIntoWindow(win);
        };
        win.addEventListener("load", onLoad);
    },
    get loadIntoWindow() {
        delete this.loadIntoWindow;
        this.init();
        return this.loadIntoWindow = function(win) {
            var obj = new FlipCloseTab();
            obj.load(win);
            Object.defineProperty(win, "_Flip_Close_Tab_Prototype", {
                value: obj,
                writable: false,
                configurable: true,
                enumerable: false
            });
        };
    },
    init: function() {
        if (this.initialized || !this.CustomizableUI) return;
        this.initialized = true;
        var cWidget = {
            id: "f-flip-tabs",
            type: "custom",
            label: flipclosetabStatic.buttonStrings.GetStringFromName("f-flip-tabs.label"),
            tooltiptext: flipclosetabStatic.buttonStrings.GetStringFromName("f-flip-tabs.tooltip"),
            defaultArea: this.CustomizableUI.AREA_NAVBAR,
            onBuild: function(document) {
                var window = document.defaultView;
                flipclosetabStatic.stylifyButton(window, true);
                var toolbarbutton_0 = (document.createXULElement || document.createElement).call(document, "toolbarbutton");
                toolbarbutton_0.id = "f-flip-tabs";
                toolbarbutton_0.setAttribute("label", flipclosetabStatic.buttonStrings.GetStringFromName("f-flip-tabs.label"));
                toolbarbutton_0.setAttribute("tooltiptext", flipclosetabStatic.buttonStrings.GetStringFromName("f-flip-tabs.tooltip"));
                toolbarbutton_0.setAttribute("context", false);
                toolbarbutton_0.classList.add("toolbarbutton-1");
                toolbarbutton_0.classList.add("chromeclass-toolbar-additional");
                toolbarbutton_0.addEventListener("click", function(event) {
                    var gtBrowser = window.gBrowser;
                    if (event.button == 0) {
                        var old = gtBrowser.selectedTab;
                        var tabs = filterTabs(old.parentNode);
                        var last  = 0;
                        var prevTab = null;
                        tabs.forEach((tab)=> {
                            let s = +tab.getAttribute("flipselectedID");
                            if (s && s > last && old != tab) {
                                prevTab = tab;
                                last = s;
                            }
                        });
                        if (prevTab !== null) 
                        gtBrowser.selectedTab = prevTab;
                    } else if (event.button == 1) {
                        gtBrowser.removeAllTabsBut(gtBrowser.selectedTab);
                    } else if (event.button == 2) {
                        event.preventDefault();
                        event.stopPropagation();
                        gtBrowser.removeTab(gtBrowser.selectedTab);
                    }
                }, false);
                return toolbarbutton_0;
            }
        };
        if (this.customjsm) {
            this.CustomizableUI.addListener();
            cWidget.onloadStylePalette = function(window) {
                flipclosetabStatic.stylifyButton(window, true);
            };
        }
        try {
            this.CustomizableUI.createWidget(cWidget);
        } catch(e) {}
    },
    getWindowUtils: function(window) {
        var has = "windowUtils" in window &&
            window.windowUtils instanceof Ci.nsIDOMWindowUtils;
        return (this.getWindowUtils = has
            ? window => window.windowUtils
            : window => window.QueryInterface(Ci.nsIInterfaceRequestor)
                .getInterface(Ci.nsIDOMWindowUtils)
        )(window);
    },
    stylifyButton: function(window, stylify) {
        var method = stylify ? "loadSheet" : "removeSheet";
        try {
            this.getWindowUtils(window)[method](
                this.styleURI, Ci.nsIDOMWindowUtils.USER_SHEET
            );
        } catch(ex) {
            Cu.reportError(ex);
        }
    },
    uninit: function() {
        if (!this.initialized) return;
        try {
            this.CustomizableUI.destroyWidget("f-flip-tabs");
        } catch(e) {}
        if (this.customjsm) {
            this.CustomizableUI.removeListener();
            Cu.unload("chrome://flip_close_tab/content/customizable.jsm");
        }
        var windows = Services.wm.getEnumerator("navigator:browser");
        while (windows.hasMoreElements()) {
            var win = windows.getNext();
            if (win.QueryInterface) win = win.QueryInterface(Ci.nsIDOMWindow);
            try {
                if ("_Flip_Close_Tab_Prototype" in win) {
                    win._Flip_Close_Tab_Prototype.unload(true);
                    delete win._Flip_Close_Tab_Prototype;
                }
                this.stylifyButton(win);
            } catch(e) {}
        }
    }
};

var filterTabs = node => {
    var func = tab => !tab.hidden && !tab.closing;
    return (filterTabs = "from" in Array
        ? node => Array.from(node.getElementsByAttribute("flipselectedID", "*")).filter(func)
        : node => Array.filter(node.getElementsByAttribute("flipselectedID", "*"), func)
    )(node);
}

function FlipCloseTab() {
    this.gtBrowser = null;
    this.removeListeners = null;
    this.blurTab = null;
    this.eventTabClose = false;
}

FlipCloseTab.prototype = {
    load: function(win) {
        var gtBrowser = this.gtBrowser = win.gBrowser || win.getBrowser();
        var tabid = 1;
        var TabSelect = (event) => {
            var tab = event.target;
            tab.setAttribute("flipselectedID", tabid++);
        };
        var TabClose = (event) => {
            var old = event.target;
            if (!old.selected) return;
            var tabs = filterTabs(old.parentNode);
            var last  = 0;
            var prevTab = null;
            tabs.forEach((tab) => {
                var s = +tab.getAttribute("flipselectedID");
                if (s && s > last && old != tab) {
                    prevTab = tab;
                    last = s;
                }
            });
            if (prevTab !== null && !prevTab.closing)
                gtBrowser.selectedTab = prevTab;
        };
        gtBrowser.tabContainer.addEventListener("TabSelect", TabSelect, false);
        if ("_blurTab" in gtBrowser) {
            var blurTab = this.blurTab = gtBrowser._blurTab;
            gtBrowser._blurTab = function _blurTab() {
                var old = arguments[0];
                if (!old.selected) return;
                var tabs = filterTabs(old.parentNode);
                var last  = 0;
                var prevTab = null;
                tabs.forEach((tab) => {
                    var s = +tab.getAttribute("flipselectedID");
                    if (s && s > last && old != tab) {
                        prevTab = tab;
                        last = s;
                    }
                });
                if (prevTab !== null && !prevTab.closing) {
                    this.selectedTab = prevTab;
                    return;
                }
                return blurTab.apply(this, arguments);
            };
        } else {
            gtBrowser.tabContainer.addEventListener("TabClose", TabClose, true);
            this.eventTabClose = true;
        }
        this.removeListeners = function() {
            gtBrowser.tabContainer.removeEventListener("TabSelect", TabSelect, false);
            if (this.eventTabClose)
                gtBrowser.tabContainer.removeEventListener("TabClose", TabClose, true);
        };
        var sel = gtBrowser.selectedTab;
        if (sel && !sel.hidden)
            sel.setAttribute("flipselectedID", tabid++);
    },
    unload: function(shutdown = false) {
        this.removeListeners();
        if (shutdown) {
            if (this.blurTab !== null)
                this.gtBrowser._blurTab = this.blurTab;
            var tabs = filterTabs(this.gtBrowser.tabContainer);
            tabs.forEach((tab) => {
                tab.removeAttribute("flipselectedID");
            });
        }
    }
};

var WindowListener = {
    onOpenWindow: function(aWindow) {
        var win = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindow);
        function onWindowLoad() {
            win.removeEventListener("load", onWindowLoad);
            if (win.document.documentElement.getAttribute("windowtype") == "navigator:browser")
                flipclosetabStatic.loadIntoWindow(win);
        }
        win.addEventListener("load", onWindowLoad);
    },
    onCloseWindow: function(aWindow) {
        var win = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindow);
        if (win.document.documentElement.getAttribute("windowtype") == "navigator:browser" && "_Flip_Close_Tab_Prototype" in win)
            win._Flip_Close_Tab_Prototype.unload();
    },
    onWindowTitleChange: function(aWindow, newTitle) { }
};

function startup(data, reason) {
    var wm = Services.wm;
    var windows = wm.getEnumerator(null);
    while (windows.hasMoreElements()) {
        var win = windows.getNext();
        if (win.QueryInterface) win = win.QueryInterface(Ci.nsIDOMWindow);
        try {
            var type = win.document.documentElement.getAttribute("windowtype");
            if (type == "navigator:browser")
                flipclosetabStatic.loadIntoWindow(win);
            else if (type == "navigator:blank")
                flipclosetabStatic.start(win);
        } catch(e) {}
    }
    wm.addListener(WindowListener);
}

function shutdown(data, reason) {
    if (reason == APP_SHUTDOWN)
        return;
    flipclosetabStatic.uninit();
    Services.wm.removeListener(WindowListener);
}

function install(data, reason) { }

function uninstall(data, reason) { }

Отсутствует

 

Board footer

Powered by PunBB
Modified by Mozilla Russia
Copyright © 2004–2020 Mozilla Russia GitHub mark
Язык отображения форума: [Русский] [English]