lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-08-20
  • 发帖数471
  • 经验235枚
  • 威望0点
  • 贡献值72点
  • 好评度71点
  • 社区居民
阅读:6986回复:60

[Nightly] Nightly 69.0a1(2019-05-21) 将主界面由 xul 改为 xhtml

楼主#
更多 发布于:2019-05-22 00:29
如题。由原来的
chrome://browser/content/browser.xul 改为 chrome://browser/content/browser.xhtml
相关bug Bug 1534407 - Enable browser.xhtml by default

预计一大波 uc 脚本将要失效。


以下提供一些针对本次更新的导致脚本失效的修改参考。
首先如果使用了alice 的引导脚本(userChrome.js)的话,
大部分针对主界面的脚本将会失效。需要暂时如下修改或者等作者更新(作者已更新。版本 v3.0.58mod,同样不向下兼容)
注意本修改不作向下兼容。
var BROWSERCHROME = "chrome://browser/content/browser.xul"; //Firfox
//改为
   var BROWSERCHROME = "chrome://browser/content/browser.xhtml"; //Firfox
if(/.html?$/i.test(location.href)) return;
//改为
   if(/\.html?$/i.test(location.href)) return;
//两处地方的
        if (!(doc instanceof XULDocument))
          return 0;
//改为
        //if (!(doc instanceof XULDocument))
        //  return 0;
注意更新或修改 userchrome.js 引导文件后,
需要退出 FF 并删除配置目录下的 startupCache 文件夹才能生效。


uc 脚本部分
1、
//如果脚本中有(无论单双引号)
location.href == 'chrome://browser/content/browser.xul' /*或*/ location == 'chrome://browser/content/browser.xul'
//替换为
location.href.startsWith('chrome://browser/content/browser.x')
//如果是
location.href != 'chrome://browser/content/browser.xul' /*或*/ location != 'chrome://browser/content/browser.xul'
//则替换为
!location.href.startsWith('chrome://browser/content/browser.x')
// 脚本文件头如果存在下面一行
// @include      chrome://browser/content/browser.xul
//则改为
// @include      chrome://browser/content/browser.xhtml
//或者
// @include      main


2、
由于 Firefox 的主文档由 browser.xul 变为 browser.xhtml
所以通过 document.createElement 方法创建的元素的命名空间
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul
自动变为 http://www.w3.org/1999/xhtml默认创建为 html 命名空间的元素

因为目前大部分控件如:菜单、按钮还是由 xul 元素实现的
所以如果 uc 脚本中使用了该方法创建 xul 元素(注意区分 xul 元素和 html 元素)可能会导致一些异常。




要用 document.createXULElement 或者 document.createElementNS 方法创建 xul 元素,
例如创建的菜单元素:
//由原来的
document.createElement('menu') 
//改为
document.createXULElement('menu') 
//或者 
document.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul','menu')


其它的一些 xul 元素通常为 menu、menuitem、menupopup、toolbarbutton、box、textbox、hbox、vbox、label ......
参考XUL Reference - Mozilla | MDN

3、
一些针对主界面的 css 样式代码失效,可能限定了针对 browser.xul 文档路径。
@-moz-document url("chrome://browser/content/browser.xul")
/*上一行无论单引号或者双引号,或者没有引号,都可以改为*/
@-moz-document url("chrome://browser/content/browser.xul"), url("chrome://browser/content/browser.xhtml")




另外版本 70.0a1(2019-07-19) 某些脚本可能导致 FF 崩溃。
这是由于Bug 1560915 - Hardcode minimal eval()-whitelist for test files into eval()-assertion
禁止了 eval/new Funtion 等计算字符串函数,使用这些需要计算函数脚本就会导致崩溃。
可以通过设置 about:config 中的 security.allow_eval_with_system_principal 的值为 true 来跳过。
等 Moz 解决了这些 bug(Bug 1473549 - [meta] Assert we do not use eval() when executing with SystemPrincipal) 也不清楚会不会移除这个 flag。



版本 70.0a1(2019-08-10) uc 引导脚本可能失效。
如果使用了alice 的引导脚本(userChrome.js 版本 v3.0.58mod)的话。
将 doc instanceof XULDocument 改为 doc.constructor.name === 'XULDocument'
或等待原作者更新。
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-08-17
  • 发帖数90
  • 经验98枚
  • 威望0点
  • 贡献值96点
  • 好评度0点
  • 社区居民
  • 忠实会员
1楼#
发布于:2019-05-22 08:30
Firefox Nightly 69.0a1   全部失效了,哎,看了大佬的办法,试了试,没有一个能改成功,懵了????
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-08-17
  • 发帖数90
  • 经验98枚
  • 威望0点
  • 贡献值96点
  • 好评度0点
  • 社区居民
  • 忠实会员
2楼#
发布于:2019-05-22 09:02
大佬好,自己试着改了userChrome.js
但是UC脚本老是改不好,能帮忙看看这个脚本,万谢
// ==UserScript==
// @name           Appmenu.uc.js
// @namespace      Appmenu@gmail.com
// @description    Basiert auf dem Script externalFuncButtonM.uc.js - Wiederherstellung der Orangenen FF-Menü Schaltfläche
// @include        main
// @version        update for Firefox 62 by aborix + Movable Version
// @author         defpt
// @charset        UTF-8
// @version        v2018.09.05
// ==/UserScript==
 
var Appmenu = {
        autohideEmptySubDirs: true,
        //自动隐藏没有一个子项目的子目录菜单
        moveSubDirstoBottom: false,
        //把主菜单下的子目录移动到最下面
        subdirPopupHash: [],
        subdirMenuHash: [],
        toolbar: {
            //定义主菜单下子目录,加{name: 'separator'}建立分隔线
            subdirs: [
                {name: '常用功能', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAMFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABaPxwLAAAAD3RSTlMA29RuQQvntwZ7SRvkwcA+P2vZAAAARUlEQVQI12PABpr1P1mAaG5x15DCDUBG4wQGBk4BIMMcJHwZiFUYlmUxOAEZXxnyvzHEwxkQqVNAKajix3DtcAMRVmACAMdOFKcCHt83AAAAAElFTkSuQmCC"},
                {name: '越狱工具', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4jbWRIRKDMBREn8NhOoPrDLoqtifgAnG9AUfgAJU9SS2uAoOt6gWqIiqjqlrBMhNChoLozjA/2ewu/yfwRxRAC3jVYmtAD5yBXLXfYj4BndZ71U78KtwAK9NLf7fiV8HLMLY9Bvg1ZgM8gSoKqMSbJXMFOOACZDKOI2TinXQzWB0eI76M9kfpbBzgf7UXwJC4j0+w3iXCjPiUfkI0DHM7htlbhud04pulgLsMJXBQmw/VUl8r3SzgDdTBPpdxDMqDs1r6CeLbh+HZvOoa/QwZcFVN4gv6nzt18jn5zAAAAABJRU5ErkJggg=="},
                {name: '文件目录', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAbUlEQVQ4je2Syw2AIBAFJ1ZjD1RgJbRhtVSBWS/rj2UjqEcn4fKSN7wQ4CMmIAFyOknzJhIQiixo3iwYK7k4x6zzBB5m3Wb1bqwtkFJQvsHdAiPoRQCGB8ULv+AQLEDs6EXt7MxApv0jZe28ZwV+VzP4VojXiwAAAABJRU5ErkJggg=="},    
                {name: '选项设置', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAkElEQVQ4jbWTXQ2AMAyEvzc0TAIWEIIWTMwBBhCBNni5Cw2MwPhp0mT9u7a3DX6UAVikw92iHphCcSs1yKSc02InjkAXYp18Bi6CuPOVeJJiYNS5ATIbB1k+wiSH4iWMndUlSWf5vM6BWBMW7RTsJJ+l3dnvAUorzDUrGOQxifDBNb5+SAZ5/JRLo1Z/pmpZAR6aP0H2Y7uIAAAAAElFTkSuQmCC"},       
                {name: '外部打开', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAV1BMVEUAAAAbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxtGnksMAAAAHXRSTlMAI/i59cOKK/3x6+bVrGs34H7Lu7OGeWRd3dq0HD+xOPEAAAB5SURBVBjTjU5LFoQgDEsLBQRF0HGc3/3POWJ9btzYTZO8pgluzuiGwY0nXRP3xvScXsqNXRQ4frQliUAzs9lW3JRnR8BcvC8CkM3oMgD2gA8AaoRdD4EC2j1qs8ibfp9JLZBCIAlhak/NHmOrxi72qyDHs9il+p35AyMzBBChpCm+AAAAAElFTkSuQmCC"}
            ],
            //下面定义子菜单功能
            apps: [
                //调用其它浏览器打开
                {name: 'IE浏览器',path: 'C:\\Program Files\\Internet Explorer\\iexplore.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH3AQJFykNAj7JHQAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAAiZJREFUOE+Nkk9IlEEYxmdXt8x1dd3CKJAQMoVVDAs6BBEdWwoPHayEDq1B4klEiMBDXergpXMdggpiv/0bimSHOqToIfPsN7PrkiCC0h8j3TT7zdcsDVsHX3j4ZuZ5n2eemfnEXurYeCFwICU7AkkZBw/2JeXdmpSMGvrfasyq4P6kPF/tyBEwVuW4L30Jt8j3AwajYBD+Tiitmozkb0GcpXEcwYZIuLs2/I67iPhm3+yKrz6jouCkkf0pol1C+KlSaAO+xAYPI1nVSdI2IxWiJimjEAvs8K3c7E+4Uqdh5xmEPyyjEkkfHcrlI564bXLJj/A+eE/zZ92E0Amm5PGWiUIgnFH13MUAJl/LJowXudhWz6Aplw8zGUVcMORyLbeuue43RZ/+dr4uVmP6vGwAtvVlak4QJQz5qkxisIZZAryw8AwsWAY65VPPAKc+Fko2icn/sAN+GuxgkBI8RSPO72wxc32+Xn6WyzZYi4GLBrFgWp3WT9eD2xr4bu2+yquc8uJZhckF+vtBnFe40ZBRRwW3+5gokxxjrCLFW5rO8AJ1/HEH4ePa2OLn69KqWSCewWSIyREWZ20TLWBtGnxkvGmtb5DiqhcLgzkMrpuI3TTP2SaVQPyFNEMtE0tVnkHAkfcweMK7R0lxgu8t5lkaFdhC9AtsM17XR+VYsa6pot8T60IUYrGXWx1EfIV5x+FcvpZxOzGvgWFwm3TnItl8yMhMCfEbt0DTTmnmDkAAAAAASUVORK5CYII='},
                {name: 'Chrome',path: 'D:\\Program Files\\Chrome\\Chrome.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADg0lEQVQ4jXXTf1CTdRwH8K/lXWwccSecCgJCaNsEIVi3avPHfvnsefY8Y10qnl50V10ShXddlF39EdwxSkrUODnxVDLRnHS4wgXbqISM/QFM4MHhbmqw7YFBTIb9OCeO3v3BnaV3vf9+f153nz/ehDyS8G5DXuQV84H58l3+6Nu7o9E3d83PvfrSrUgp0zhlVD/7aP9BxrOzEwSt6vAMp/ljdieNyB4OkbISRPZwmN1JY6ZEh0nd5rshpeLUdak05aHjwfR0cfCZwguCSoEpjRJhagumGTWmWTWmjWqEqc2Y0ighKBUIFRchIM1z+lIlSQ8Aa2nx4XCODMHCAoTkxRAUcgjyQggFMggbpQjlbURQWoRAbiEmMvPxa5oMN1dJz9cQ8hhRX6akZWd0sSHJ0whlSzCxXopg7jr8VsIh/HE1wrW1iHzwIqbK10DYm4XJ8rUIV2RhpjIDkU9TtIS1M3VUL4u695/HrdU5CGRkQ/ioGu19E/isZwb1PbP4ZiiIyLgFd4fFiF0T475PjEV/AuJ+cQth7cwA222E2U6jqyAbwlY9Tnf7sb15DK+d8uL1Fi92HPWiqVvA4rgBf/PLEB8VIT4qwsJwopewHUzU5GBg6OFQVZWPkYoqlH3pA1Pfj+1HPNjxhQfs5/0oOeJH2G8BeII4n4A4L8LCUFKUMDZ63uRgYHIZYby4CWdP1MB86Cqeq74CtcUNtcWNF2quQGnhEbheB4z+C8QGku8Quo0a5joZmBwMaKce7/zyFt473YeMSjtk+x3YsN+BNZV27D3hQeyGeekFXoT4SCL+dKf4iKF1WwP73RJgcjDgXBQO9TXhjcYfkb/Phrx9NpQ29KL/aiPgFWGRfwJxXozYYDLmfko7R7THtcXU19QCd2kJYB0GmF00PuyrwieXj6K2+xiqne9iYmAFMLoccV6Me55k3OldhemOLI4QQoimWd9CW2mwlxiYuhhwDhp0lw5GlxYq2zYcc+YA15YjPpKIe4PJ+L13NSa/zXG2tZHHCSGEyA+qU7c06Z1UKwXjxSWI62RAfW/Eyx1bcXtgBe57nsRf7lTc/iEDgfZct+98ZvpDe5DUq5KUDRqrplkP6gwF2kpDY6XR3rkBCz+vRMSVCcH2FG6clTjGjq9N+99VFtVu0isOqE/KD+r4iibV3Pi5ddGbX60f856UtY40S02EkGX/7f8DPn0d28pmYMIAAAAASUVORK5CYII='},
                {name: '360极速',path: 'D:\\Program Files\\360Chrome\\Chrome\\Application\\360chrome.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADBElEQVQ4jXWTb0zUdRzHP7FylLPMGLOF5M5MRjGmRMj946yjQZ4e4EDJWWba1oZOZz3xQbtkaxeQRiSxUbb1Z7e5zK3WKDdxi/UARJ2eBzmyc3LccbuRccfd/f7c/V49AIRovrfXs+/79dln+3xFluTdHxL5TT61fftX2pe/dqhFI/XqoH+bmrzhViKje9T3g3uDuUs799L0neJ09uoRe4/O1l5tbNit3Lz+qop/EYE65ebw2+FH/lfe9Y2y3dGjp6u6dWzdOm+2qtP91iS/b0kx/Eqaa7XKgsitRBckHk/O0Z/iec4ePWI/pWP/bJb39iQ5Uxrnx/I4580zDDhSDFWnuVozJ3JrFz3iyZGD3/Lo7q+zh21dOrbOBVrq45wqnOL0+rv4SqY5V5bgl8oZfqtKqJddsQvXG8J2ERFxeC4+uOO0dsh6Usd6Usd6YpaGA0mOL4/Slhfj04Ipzq3tJ7K6QlVWi6oW50/oNRWdHK5bKVvCJ85W3/7c91L3TMzSoWOew+LVOPRElGO5IQLLnaQeENK5gpovaOuXkXnhSWiy+eTlyY+D1kgb1mAX5i/C2UqvRqVXY7NX4/aEwfiISvJZmRWsENSnBL14BdkXC8BVFpOa6Cfj1kgb81Re8lH+cx8bv+/jyt8hQvEA2QFBfUdIPyZohUKm5HEMy9Pg3nRXXJOd1xYLKu58QOnYUTb491F4qYrjVx7CCAjZQUE/IGimHDIb8zFsJthpHpW6ya6u+bJ54kPKgsd4brQF09Vm1g2VEvlT4JZgjAnZAUErntvf8Qy8VdMq+0O9BVXh9vGl09cMuTlyowiiORAWCAncETKND8/uv3XTrekjjatERMQW6Si2hbxTi6cf/KM6TaIc4iXwzwaYWguxPIx2k9+wrZtmb+3m/5yyI+hZaf7L02kZaTl7JtrsJ+MCrRY0JygOSFkgUU6m3/66al7z/H0/lKruKMJoSGDUc4+sGzIu0Ov7AoHGZfctzwdln4ns7o8wmgcwdvkxXhsk+0ZrKrW/YOnbfwGaHza07T0rkAAAAABJRU5ErkJggg=='},
                //越狱工具
                {name:'V2Ray',path:'\\chrome\\local\\V2Ray-windows-64\\v2rayN.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC6UlEQVQ4y1WSz2tcVRTHP/e+N+/NrzSTOjplpu2kIbGa1lpISkCXgoq6sCBRBBU3/gH6X4grF4IbUVChIrpxI4jowoj1R4lGMW1misbEpplkMvMm8+a9d+89LjJY+oWzOZzP+Z7DOar3/i/S/2gV2xlyl3Ka9MU5bhb6rH/yHTbJUEoBIAhaa+Yeu4h/8O6PZOsdxDhQgADWQckn7Q6oLDaYutTkxpUVbGpQqP89dv/exre3IySzRxkHhBpZrEG7R/j2b9DuMbt8AescrSvf41ID40myUYoP3HEONPLqPOalB3AbXfRnGwRfbzO50ePsK7O45xw3P/3hriYa1BHsBEIPUov6Yw+pl0jeuMjgzSVcvUjlneucUzWmn15Ahf4RA6j2zFtiuyMo52CYQWIh7+FOlbEXjpMuVElOF2FrQPjtLdI8rJl/aa+skY5G+CrvE7z2MDw5jb09wG5FuH8iZDNCtyPyv+4TFjRps0QyW4bE8mDUQD2Usr76O75bnkOeOoMJNXZyAjNTxGb3YBKDHSa4foLrDGHnEPaGiLW4nGL65EkMGf5eVWi9/iEmTkBAZLycVqicRhdy6Ik83vECajIPWiGJAQWlhSZ+89lF4p0e21+ukpsqEdxbJlebIKgdw6uWUKUAm6SMNrvErQ5OHKqYg/uK6LkKqrO/L8lhTLwfIYGH5DRZkhJvdYnWtuj/9BfxjV3UsZDC0mmcsTgteJcajCTDRwTtewTVCZLekN3Pr9FdaTFc38EcxOSaU1SeOUdwtsrgmxaiIf/ELMYHhhk+Mj6pE5SnMbuHDK9uEpyqUH1hgcKj02Q7EQcf/AyNMqXL81gfyAzA+BPH0qFH7eUlCvMn8JsVmAyJvrpO7+Nr+It18svnsd4dGMB3IjAOcaBDn/IjZ8gGI7rvXWXwxZ/kH58h//x5jAdiDIIgIog4fM/TRP2YNMswxmCtxRhDFqeM+oeopRPoy/czkgwTG4wxGHNU06jX+Q+RV3R35nl5KAAAAABJRU5ErkJggg=='},
                {name: 'SSD',path: '\\chrome\\local\\SSD\\ShadowsocksD.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAACXUlEQVQ4y52T4UsTcRjHv7e73e5kbTnNCLeDoRsGxmRsHoQwuAnDW2Diu8Bg4Zv+gNG79m4Lsb2rBSmGe7dXvahXI+hFIja5Fw2XDmFxKeet0tMXqd21X280DFOsLzyvnufzfR6eh4fCf0pRFIemaQH6X0HLshiHwxGdmZl5uL6+fufCICGEyeVyYiKReO71er9wHEeSyeQccxFwamoqLMvyZLVaHdva2uq0LAsul8sUBGGBOQ+cnp4OJ5PJyWq1elvTtCtOpxNtbW3Y29uD2+3+1tfXp5zVMSLL8jNBEJp2u50AIMFg8IckST9ZliUAyMDAwLuNjY3LJ0H6aNSngiDoxyBFUaS/v/9zKpVaa29vbwEgNE2TRCLxBACYWq3GlkqlG7Is31tZWRnXNO2qaZoAALvdjlAotByLxT4Wi8WxnZ0dCgB4nider3cZAJjV1dWhpaWlR4uLixHDMKjjiXieJ4ODg69GRkbeFAqFB81m03mcc7lcRiAQ+AAAjM/nW4jH43e7urqker1+S1VV8fDw0CmK4tzo6OjLfD7/WFXVayf35PF4Pg0PDzdOLbDRaPDZbDaaTqfHVVXtnJiYKHR0dFg0TRMABACx2WwkHo+/IIRQAPDHGf1+/z6ACoBKKpXiJEl6LQjCe0VRIqqqDum6HjBNk+/u7q5QFEVOGZzU5uame3Z2NsNxnJ7JZO4fHBx8L5fLYV3Xb4ZCobfz8/M416DValG7u7tulmXXRFH8yrLsPoDyUfzWmQaGYdii0Witt7c3ewT/VdQ573ppe3v7ek9PT8Xv95Oz6n4BPev6q+bKbvMAAAAASUVORK5CYII='},
                {name: 'SSR',path: '\\chrome\\local\\SSR\\ShadowsocksR-dotnet4.0.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAACF0lEQVQ4y2N4tuQMMwMFgPGofucEBgaG97z60hP0FsV8JNUApv9//l359epLw7v9t+8cUmmuOO0ylYckAzikBQ4xMDAw/P/zT+Tv11/tX2++un9YvbXifPA8ogxiZGBgYDio0Pj8388/EsxcbH///frz7/+ff6yMrMxvmLnYenm0JaYYrk36gtMFDAwMDIwsTIcZGBgY/n77xcwqxH2EkZX5zf/ff0X+fPze/unMo/tHdDoqLicu48FtADPTIZjAr9dfHNjFeCYwcbBcZ2BgYPj366/I77df29/tu3X/qF5nxfW8tTwYXjjlMNng681X5+GCzEzfuVRFgn48+Vj098tPVxQb2VnesAhw9grZKU/RnBT8hZGBgYHh9fbrTFfTV775//uvIFwhG/MLXn1p629335T+fvctA93pzDzsZ7nVRH2ZGBgYGEQ9Nf8xsTIdRVbw79dfic+Xn6/h0ZYsYRPlKWBkYvzLyMr8kZmHfR6HjICLfL6dmfHW9OcscGezsRxh+PbbB8WQn78Nv958WWV9qbz6jPv0PexS/Hd050f9ZGBgYGA4DVEDN4CFh/3gnw/fGRiZmf4ysjEfYWJj3sQpL7RJxEvrEUM+A4PJzsyrOGOBgYGBQcxf5yybOG8Cv7mcuP29OgfVNp+J3x+8q3806dAmsjPKYc226gMy9fvxJmV8kiJuGp1MHCxnKMmtDNeyVuPNEwC81ML2eybLcQAAAABJRU5ErkJggg=='},
                 
                 
                //常用目录
                {name: 'profile目录', path: '\\', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAMWSURBVDhPjZJ7TJtlFIe/GA0GNExNvO2fXaIzxoXMZbiN60azbCFDgYakSXfRqJi5BGo7bkVgYdkYIlNEKRgsIyGFQTCgBgZzyFVl4zrGKLbljqQEuTNooY/v15FFoyae5ElOzved3/ue33mlXsPh1u7cALpyDrqR8568Q73S/w25AacF7vc/YM1MR/Y+Oj8/IMT86DMEM1B4hMGiY27MgnuFRyv7vj7yiFtAPhXnEI5BvehNxvVHI6wIoVUzuKzM2OpJCd9BRtRzJIc9S0LYLtqyA7j3zVHfTQE/WP6Vtb4PBGdwDJzDYUln3ZYOv3+C5tAzmLTbqb0URFlSEBrFNqJ9t1B13s9nU8AfFn/CaY7BYdaKm2hF/hEbFh1MJfPe3sco0b1KzeXjlCSFk3B8D5E7PfjNqKCvQFEpBIQHi7W4huJxDetxjehBZiyFqR9UqF+TuGWKpv/7RKZvZ2H98WNCX5SACXrzgpC6vggUM1djqwinPXPfQ25l+bLQdhptyFNgL2G2OxvrzRR6vtWI2laYa6Yp8+AvUveXwaxaP2OgKATWxTbEFtzImxnRsdBxhsGaeEYbUkVzLLU5StaGDcy0JmOK36ORer46jL1Fw+SNs7D0MxtjmbjGs2BSMKHjbm8u5aVXaC6OpjTjLdJS3sc6eoNRYyDCwqelnrwQrBVRLJs/hZmroilNuJ/KrPUi7xS0kfjdEu0tVTQZT2DU+3Pxgo60uhVCM5pn9meNPSpeogK3D2vXYD5fzHZFmHoZ3/R+6vvv0z6xjn1VPAmXKC8tc2d8ls4pFy2WFd443+WUug2KefkWtkoVlvIobOWR2CuPEXjJwvW7i8TVzKGvm2PDsczC7DSJ1+eIr53n5sACu+Na5DEknyTVK6d0ypfVusiX1NqInap3Fc+/uSuuk9yGad4uHkFtHEFV+IATIpdrhkY7Oz6scwvI4SXw/Asenup61IZBNGVjxJYKTJuIXFM2zsl8My+crn4o8I943C8hxktZ5vSKNOEZ8Xfk2hPKUueTAediNn//1/AWvC7Y+x+Ib5L3n/LzYGB0uqcUAAAAAElFTkSuQmCC'},
                {name: 'chrome目录',path:'\\chrome', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAJsSURBVDhPlZNfSFNRHMfvk9BbEP2hPw+xHkQyzJQoFQp6KKGghx5iRmmhREEhFZLT2lyRFCZBMyuH02k5d3fnMDZsMUc2uHG5ZTdSk1tjIKwbcmlJ48bo2zlnc5El0Re+nMPvd76f84d7uYDfrws+H/jh4WVN+hq3nOiCfymZTELgvYO5CFOlTfxCHMoDZt7NQlXVvOMfP7B6v8vFRu1TEuGRR65tzeLKXVelxM5rKVRYY1/zAPH5NGamVGZZnEUikWD1Abcb8581Nn/7XkWVVUa5PYOKNuk7OUgJx3uzgBCv4JWoYupNHEEy17Qkq8vSSwQ8brTdF1DWPI1SO1BmVbCu/HA1u8si4PE9GV7nJBQ5jgGHDF3XkF5IsV7viznstsRRYgGKrCo27q0/QqIFvwG67BKct2Q8JHbYJBhGigB0nHEpqGqdR/FlYFPrHO70BUBiK1iYahFw/VwMHU0iOpsktJ8X8QMZ9PZ0Iejvx5aWFFa16Lj7LIHIqJcCfknweRng0tEorpyaQGttDDcaI+TxHrD7G98W4Oiw4eLgNFsXEPglAMHHGrV7wjh7MIrT+ycgCE5MvpaQTqcJqA8nj5uBTIat4z1DfwccKgyipjQMc3EEkbAHRjrFwieO1bC+YRhs9Az9AcheoXJ1AA0tCixPDZh7dHR3tqG+LhvOkN2XBTwZ5VmjjBtD4ZogGtwaDtyeg+mCyupUFEBNRT+8XDSr8agfI855FHFBmLgBrC3oxtZGBTdDOgssFf3xctGs6qrHWHgzCW/gHFjP2bFvezuiYT97cbojPTYdqcm/MZ6L5rXjP20izonjfgKVr3Lrdxs1wQAAAABJRU5ErkJggg=='},
                {name: 'Firefox目录',path:'D:\\FirefoxBeta', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACh0lEQVR4XpWTTUhUXRjHf/feuePHWA1hFmiUhUpChTVlIi2yTYs3GFq0aOGiNtmiTbR0lVbLF1elxJSh8fKOMyNZCGNSi6Je6TXIyKJRLCNn7uiM86HzcWdOw+UyDShEP7g858J5fs//wDnS6OPHET2Xs4t8HsFGZElCkiTtnNNZw2aMeL3idwSDQeH2+oYp4b+e9tWp3vZx3B6PIfgcmBWB+TnzC4i5+QVD8HBoyKhLQU38Mzb5YKr7oP3/m21fE8Ot4vWN9rgFk5QewlZmpCSjx6gqrwVAlmXCK1F21lTT2rirc/WzvfPgnjWmP5ZlT3S/PGkBCYB1PYxVLceiVBBPL2K31QPQ2HQA/4tX2MLTHEh5OVSf58OsQu/onBN4J/9KoBFOzCDIFmQhVNVKMpXB0XKYjh1hWtQnNOzXWfiUos+/dN4ztTQBUBSsZ0Okcst8XXlmyKxqBXoOPg5epWx5gN3VCYLvI3you0L/5OIYkAGwFAW6hipsIAlyIkVlpcqAa5At28/i1J6yuhxBd/QUBjUb2zGRQQIgmdFYy2pG/FRSwfXgEQ7HYZx/neLv1euE9l6i9nQXpOOUYpGKCX6QpwoUnfy8kyNH6mlubuBft5vZmbfsu9YPgMjrlCJjksz+IFaQRPXvVG7dRkNTEyMjPvwTfh66+hG6jmkAYMMRsvoKHcoxunQnZ5S79N25z7h/kkHXPfJ5gRDA5lddxRBYNabTHmLxIGuxKBe4XZh8FwMEimKGlSRKsajyVgJRF9YcfImGGIjd5+x6I3XHLwMUb+OGtYkcsd3C9+YiqQiko/AtnGEwY+V5vA3P6Bhur5fCezGqx+cjmUi8oAQJOMqfEQUCmPwEtFNY6VlzWBcAAAAASUVORK5CYII='},
                {name: 'lenovo目录',path:'c:\\Users\\ywb11', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACNUlEQVR4XpXST0hUaxjH8e97zhlH72jXTTONVoRjRRFexOkGQ9Ey2om1KK+tWuRCg5ZBYYsWQQQtKpBWhdTCxpmQuwkXF8LNHWVs0eZyKXVRoUKbsPHPvL/m7XBkKgn6wMPh4eH58b7nHPN8cvLjZrXaKmsR9QQYPGMwxiz39fYm2YbJFwqqDfmZpaUlXk5PPz3b19fPdzxJOG/nF2q1yPzConu6HmfsyROSySTHc7nzzwqFpz8GEAoCn1hsq1yPYzyP5ZUVUqkUJ3K5cxPF4jPqBCAczwtqZYhYK5wDnZ28mJpC1jLQ34+kM98GKDqBhzGGiOfDp9VVjmazrohYY6gXbC14vguIGpfImh9Qqayh9XWcnTtaUCKxfYC7c7RsYjFMUxNvdqVBouPDe5y5dBuHmpup59WfwPMD/HgTfm35//Ruuv9+BPFGfBP+D2qIc6TwkLmubv0Q4Ac+QWOcWDzGf2176Bm9gX0wgt3cxAN8wG5sYO9e5Y/bVyh3Z4Uzns/L+VypqCJpJpWWRkdUHTqlmcxBrUuquLmVo1LHQVUvn5Ye39Kro8dU9xIDDCAEy+/wfmtBGDxCMoQMtVkzrLwHY2B8YkJO1VpZhUrte6Vrf0nXBzTT1q5IKd0ujVyQbl5UuedPAT3ki0VtZ25fRro1qHJHpyLlzH7pzrDK2WPhMmAej439k0gkTloJpPAzNjSg31s5fGkQbJXX9+/hHB4axiYSdJX+zQKzAAbIAK38mllCfAF+aBt61/+9iAAAAABJRU5ErkJggg=='},
                {name: 'user.js',path:'\\user.js', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACI0lEQVR4XpXQTWsTQRgH8P8zO5tXio1IomeLX8CIGHw5FOxJLVVBg1RPIniQasEGhOILXr16FCnJoU02MdaKjfhGKAj9BgWTFokkBQVtbTS7jzNbR1IbBH/wZ/eZ2XlmZqlULn/uuG4/ex4Y3XRFEEQgotbI8HAcPVDecVhN4l+azSbeVau5MyMjafxFMDO0D7W6yjJq9WX99GttKptFPB7H4VTq/Izj5LY3wCYpLdj2n/i1RkKgtbqKRCKBI6nUuUKxOIMuEmBoQkgVguF5DG3fwABeVCrQ/+hCOg1mPr21AZsTCBARDMtirK2v4UAy6ccgMLpJUwhhmQYQBEghYLsdtL9+wUbHg7YjthN9Er0b6DubxQFLIBy0QBMVaHx/EGCAxsuQ4RC6ie4TWCoh20Y4HFSL5/H22nFAkooN2CoWUL0yiNjkM97WQPq7SgQjAdDNOTwaPYrJVyuAywDRZjouMpU6Hp49hF23fzeZzudZa298Z/Z+MMYKfO/NJz6ZXWI5UWI1yPyzrbLBmh47lVviBwst3nP3OW/5iSAV5eO3NiJBAhEUAtScQSrRgPC/8YvpQoE1z3X93TSMOzxaqvHFUp1xw2ED1x2+9KTOl2dXOHFnjgHsR75Y5F4o85SvzjfYypTZkOp97GWDd5vFCj2emnodjUaPecyAiiBCSBJiQYGhhRBcD5g9uA7txPsI+mygcWsoCWDRXGmvSj/+z6IpfgFmOhcVEgMdKgAAAABJRU5ErkJggg=='},
                {name: '一键备份',path:'\\chrome\\local\\BackupProfile.bat', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACsElEQVR4Xn2TS2hVRxzGf/+ZOffOPefemIbGt31cbLZqSx8ujKYJ7rJRUkpKEVy56UZaiuKiK8Gt4CILF0rBBDGBipKNS9FFoqklbZGSNNUS8Xqbt9eYe2acc1RcBPvBd2bO95/Hbw5z5MKVqzjnPvHen3HedeNZLwEl6oaI/KiUGgeQV1Zh8kAURWMdH3V07/30C7r2d3Gg88Br5+9ZntWzcdl4AYwCqz1yfmjE79n1MXgIBPj1BMhLAhCYuHcHa7QkBvrvxpiAzoc7tjK3uMT8wiIuTXmDCAhordmwoUJb8OS9cRLt+XYiocV4jCjh9tg4O6sfsHVzO0nJIkBRC0YJCKw2VsPiS0xO3KFs4Juwc5JPJliEjOLvmYcUoiLWFmlNYk7d/JfLv82CJzcioBSYIrFZ800RjKh5IwhaKYzWaB1ao7HBlycfcev7Xp43HZ3bDG8EN2dT4oLm4LnRVjX3X/3a73/e51GtxvLKCkoElaMLRUnp+nma+twCg8NXM+f9zotTaNfEOY+JosJqf18ff01NMzv7mJmZf1iKiwDUGo5NZU265vh87z6ArJ9ntWcpCJikXD40NvFr/hGr1fcplyxWA9d/Yb6RsjE2jM6ssn+zAWD0YTPPFhoOBRgE0jRlavoBxUKBkrVsbEkQYLHpabOagftNzv7RxOOxWkKmWAgkOYEgIILRCq00KrRKMgsrzx0tRUV/1fDV7nbAMXi3xqVpF2oeAdRcvT78pP6E5cZTUucw2gRrRAnPnFApRfS8Zzlx8icePF7my20FKtaEGghgjh87evzrI0dH9nX1fFeK488En9+0SJcQ0Wwp23ADC2x5t8ymVov2ayEzIDqnzP/GI4d7Y2A7UOGVKj8MnS5VWg4672l6hRfBO494h1EQKcEIS8LbVQXe4f+VvgDxAgJThZVz8QAAAABJRU5ErkJggg=='},
            ],
            //定义firefox的功能
            configs: [
                //常用功能
                {name: '打开文件',subdir: '常用功能',command: "BrowserOpenFileWindow();",image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAv0lEQVQ4jc2TIQ7CQBBFe6iKymaDrOglSLCEO1TUIZpWrMVxAVA1YDE4ktWtILRd9tuPAQJhW9gqJnlu5s2I+R4AGmMOWuvQG1MAuFjPqWpFAM54ABikPifLkHmZEQCllBRCfOVN8CAuIu5PO+pOs7m0vfQKgtTnbDWlMYZt07kJ4iLi9rih1tfB7VZBXmasztXg1l6BqhW79rdBqyBJEqfhD4EQ4g8EY3gKbNiara/8mgkXgTVUTqfbBE4pvNcNewXq3i7Rq+4AAAAASUVORK5CYII='},
                {name: '保存网页',subdir: '常用功能',command: "saveBrowser(gBrowser.selectedBrowser);", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH3gQGCSkYbPAS0QAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAALRJREFUOE/Nk8sKwjAURAsFwY0rEXz8lL/uH7hz1w8QH3NiplwvzcLqwoHTm2TCJE3TTurFQWzFrkLb0I/+RizEKMyLeIh75ZbAo54E/lEsRRHJTECuWdH3AoSUnRDAALrWmpV9KmFrOnMCEGN7GjEgbjHiMapFn/N7C/hEYwCPnwXwCoM4N8DzF5kMaB1ilOf8UQD3+6uAfJFWr2ZTMYDFSwon60s0dZFM9JlfduDfeQZd/wS3sV44I2/dIQAAAABJRU5ErkJggg==" },                
                {name: '隐私浏览', subdir: '常用功能',command: "OpenBrowserWindow({private: true});",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAyUlEQVQ4je3RIUzDQBjF8V9CMotEoTCYufopBBqLx1ZOYiZn0JVIVC0WXTuJm6mqmpmY6Dt2CYIESXjJ9a7/vn7fvTv+hJ6wRocPTNhnfg+fcMCA1/gfsIIjtmgLiC5SfIPrsCZsiz6F58cvNcInbgJKhBHPlXEd3xgPLLGTnPeBh2T7qh7tMz/GI76+VH+p4JBd1NHK+1A16Mzn5iod7n4KXGmVfy4LaALawAVus7s260W+tYn3reHS+Wom8wF1Gbtkn/AW77+iE6SaONczlmqVAAAAAElFTkSuQmCC" }, 
                {name: '安全模式',subdir: '常用功能',command: "safeModeRestart();", image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAiElEQVQ4je3SwQ3CMAxA0SfEBgwRdsiJVboIXDtVOdAdGILOEA5YqAVUlJYjX4rkyPm2E4UHHUrl6owo6imwWSBO2K6c4qt8xGnOWX2Ff4EfFjijqfCacJ4FDsi4IM2IKc7kcN7IuKKN/fgjtZHLY+H1DXrsMeAWHVPEQ+T6mQkn7GLcPuKP3AFx9yRXZKxe2QAAAABJRU5ErkJggg=='},            
                {name: 'Cookie',subdir: '常用功能',command: "window.open('chrome://browser/content/preferences/siteDataSettings.xul', 'Browser:Cookies', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAlUlEQVQ4jcWSQQrDIBBFJ6EnKC7iokjdiTcOzAmCB8iiniL3+d2IMSagqQU/KA7634yjRL01EBFaIS0AjGnEzkNqC6kt2PlqcDwolEGIEdZF7+NukkTDaZOdh1AGQpnaKyBO7Dymt42mrA+4GEdAMIPXDbxuICJIbUtV7IDny5yyJI0sVzAvH+SvUNGHHfCj8Jev3FdfBE9YlSEhiGUAAAAASUVORK5CYII=" },
                {name: '证书管理',subdir: '常用功能',command: "window.open('chrome://pippki/content/certManager.xul', 'mozilla:certmanager', 'chrome,resizable=yes,all,width=830,height=400');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAFJSURBVDhPrZOxSsRAFEUzmxmIwhrBNewXqNWCxWJKhf0Ev0C0E8HWRqwtRPBLrP0UG3GxtFMWXYjnZmdHJ4lWXjhM8t59b14mSfJfqmDexBgT6MirJii6mUz2DazAql+NT/1UdwPMPWvtDKYiTdNnQWpn4QhqN1Ax9AeDjXGWZaeMfkL42LMtjyQfihtoTHacw7tg17dfeNUmrK0GetZcSej5eCTFfT6PJmBUNdCBdRUfwC2es+Gw2FKxfMRaDTRBs/gcZlBZm1bO2UffRL5Wg+arcvAEdTHnUq941VSKzwDKBhZ4nd/F3Is7GPnroE+IvjR2unLOPTSKP2APpqCabukZoV8UmyM1ISTzC1wo/6eWxZCX5XidSS4J78IhHMkjkW9/3gpC+AfyfE0HqXGv4R5uIPh0HeSDFpxftYNIa8NCdXzpS5Ik+QIDqX6cveUBEAAAAABJRU5ErkJggg==" },
                {name: '密码管理',subdir: '常用功能',command: "window.open('chrome://passwordmgr/content/passwordManager.xul', 'Toolkit:PasswordManager', 'chrome,resizable=yes');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAz1BMVEUAAAAAAAAAAAAAAAAAAABEREBEREBEREAAAAAAAABEREBEREBEREBEREBEREAABwcBGiMEHCQHHyk4ODQAAAAAERgEW3sAFyABAQEEaY0AWHgAGiMJCQkEQVYAGiMGExgEhbMAHSgHGCAEWXgANUkANEYAZYsAEBYACAgAAAAAAAAAAAAAAAAKLz4EWHcFBQUDFRwAJjMAFh4ADxQAAAAEBAMEBAQBAQEEeKMEXHsEtPQEXHwAXoAEtfUAuv4AXX8As/QAu/8Ad6ICAgIAhbR1ngrjAAAANHRSTlMAPsTFOwEEBXk9CQoCDQ8jw9ubCxHu/tp2+P2MX/LWqvXAmfDo9/rxHx5MbAdp8ITd76zPMd9xLAAAAKNJREFUGFdFzLtuwlAQhOF/9gKNJShMRRMJyV2ak7z/E1iipkibCiqiCAnZh+LYyVb7aXZWUuF/zpLNAClVE/VhVgAy0ysARZ8AUm3Gg5FOqvUHoJvfrfUXSwSZi3eSNAVr3uukL43Geh9hNvjRqM/Wj3D3wYP6bP9ccuTB4oOO35K2wZ9/U9JFNkOnN+39PkIqjMLuqv62BzInIDfbTRY+2vYCMAwteRZBCIsAAAAASUVORK5CYII=" },
                {name: '清除痕迹',subdir: '常用功能',command: "window.open('chrome://browser/content/sanitize.xul', 'Toolkit:SanitizeDialog', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAb1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt6r1GAAAAJHRSTlMAzVQUwp9BDPLTp3dwPDUsGPvn39vHtauPh35sZlxMJB736yg/5R5gAAAAhklEQVQY01WPVxLDMAhEJatb1b07TsL9z5goGmckPoB5DAuL7InKoE1VAkLBlESMsKKD8QzVMDagLpITaB3u/mIPCdJRExg+Eqjgyac1Tli/RRDaap5jcxIv02k9/WoY6J6WNPsmvyGLb92BI4H2HrsbvJWovegyF2a5XrhwpTS2hSW+pNc/dQcGVNn7bGYAAAAASUVORK5CYII=" },
                {name: '更新历史',subdir: '常用功能',command: "window.open('chrome://mozapps/content/update/history.xul', 'Update:History', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABNVBMVEUAAAAAAAA2Rks4R0o3SEo2R0s/Pz8Af382R0k1Rkg3Rko2SEo2SEguRUU3R0o3SEo3SEg3REk3RkU3R0s3SEk3SEo3R0g3REtEREA5Rko3SEo2SEtEREBEREBEREA3Rko1SEo8S0pEREAfZGI1R0c1Rkg4SEhEREA3R0g4Rkg6RkVEREAajZYbjpkZmZk4RUg3RkkbjZkbjJUcipIdiZEajZYbjpcZjZcajppHR0Q3Rkg3SEoci5MajpcbjJdPT003SEo2R0kajZgajpgcjY03SEg3R0o3R0k2RkovT08zMzM2Rkk3SEg1SEo1Rkk3Rks1SEk2RkozREQzTEw1Rko4SEg4R0k7RUQ6Skk2SEg3R0o1SEo3Rko0S0skJCI4SEo4R0g1SEo3SEo1SEs4Rks3SEobjplNLMNvAAAAZXRSTlMAAS9WXD0IAmvg8YwOC7mzVichQZj63SUBOvRWDQ8C498SBAQr9pwFjvkWCaaDCjlTU8HDw8Dr41YQ/XfCwOEF/naifwkuUov4EAWVPPdaM+XcDwq1vF8vIEad+9kiAmve7YVRNgFv0LsAAADHSURBVBhXY2QAAUYw+AVmAjE7I2MMkFrKyPgFLMDLGL6KEQpeSgAFJEGs/0yPGJhkQSygWuWfYD4DgwpEQIIFymeQ4wIJSAh/+i/AyHgJyP8nbHaa0RBsmMFFxhNy/xhlgExDRq6fHD8Nbnx++4/xvzJIi9K3FwxOjIy3gHwmdYWHQDNegM0D8R+5Q6z12gbluzIzbwUK+DAyXgDz/YHyx4ACwYyCH2BO380F0hLHyMgKpP4wruYW/gNyKRfrbyb7BYnPtoFYANlFO1r+sFJfAAAAAElFTkSuQmCC" },
 
                //选项设置
                {name: '火狐设置',subdir: '选项设置',command: "openPreferences();",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABwklEQVQ4jZ1UwUoDQQxd6B8IQr/BUie5ePUkFHryUPwbwZMgVIplJxEE7z0LfkNB8FoQCoLgtaVFWHeSeqiz7M7OWjWQy2TzkrxkX5JEDDk7ABJrSC7DmCG5BBKLnB3EcutgN6t9YM2QdQOsGdr8uIjZ/LgSu1nt/woUSKfIuvEOrM/A+lx5I53+CiwZTFpA+lZOjjmQviWDSSuK0ble7hVjsZzXklkzP2rZjZWLGgZwfoKsCyCdIulLFUhuu+Os65O646wLLLcVYNKXb4oWwPlJAqwPsZEMudMmVgy50ygNrA8JkNwjq6tWlfHuxckoAHRAcr+tmLqzcqDMaZN1rpd75UZM6s6CijrznOwC8+Y5B9JZfQTW+b8BWeeVQEDy/0b2SwQSG94YkIx2AYZLAdYMSGyCrI+RE3BgXb8RzLp+7TK2/pgcpnkPSFdI+oSsr9UPZNhJ1+1izHTdRpZh0NkcSZ+AdHWY5r0tuV41BpNW5L4234Vew3cgGfn/uVl5BpMWkr7vEgckfW8UhzrhgXyRzoo7/at8ddJ1G0k/is2VlgPW9YuLIP0o8/ujGfo8MlbukGVY657lyli5M/R5FMv9AqdiOHRwiFTLAAAAAElFTkSuQmCC"}, 
                {name: '系统参数',subdir: '选项设置',command: "openTrustedLinkIn('about:config', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACJklEQVQ4jY2TPWtUQRSGZ/Z+7lfiEtFiwSBoYeUPEAt/gIVIKgkiKUJYZEkhIkEsJO7unTlf9+5mXUKQrURFJFUqkSDBIqRIkSqFpZVVsBCLsdm7CWRDUgw8MDPPnPdwRjnn9HkrsNgMO3Rr0p4677IPtKIMOpXAr1xSZr56YYFnsa8MOmXwqEh0xzN4Xxk8CoEfXkig5j56PhD5iHeLiHWV4J9RRX9j250dC1SaRjPYr89gv35tba02idVgEAQoT1QC/wLDi+MKLnc61chyzwfajYmHEconH2g3RmnFJK88oGEAAhWQe845PSVyc/zwjTSNyiytIqVfqpKZIvIzz9K70OLrEslLZeC3Muh8izsFoIZqt6dja2fHgsDSvLa0qS1tliklz+KOMug8S9+LIJ2TggB4USfwQyX4MzbmunNOK9/y6qjLrsLSOymocLrqW/rmW96pUPY0BNnIz3qGPjvntIosL2sDh9rAYS3tLsXAwxDlQ5WzhTKnz0skGyWSlQhlEFhsFgy+1wb3qm+6M845rWKUx57BLc/gVonSpZyrkhmV4O7oxa8h8DAEnlODQVBrt6fHPTgZIULOjuNkmTa4lwumJGuGlh6dmpPISrNg8KBg8KBEspLzJenOxyDrMaXDmnQbEch6AahxShAgL2hD29rQdhGlecy8PGaWVh7hlOCsCJHlXs5lllZVug8mjnoA1NAJ7usE92OQF5P4Svr29ll/5T/rXhzDBSBwAgAAAABJRU5ErkJggg=='},
                {name: '命令列表', subdir: '选项设置',command:"openTrustedLinkIn('about:about', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAzUlEQVQ4jaXSIU7EQBSA4S8j+sIFVpD0HIi9wC6CM+0FMFUILA7DDRAIVB0KheoFMKuK2OlmSLZTGl4ymWTe+/95M3lUIqV0SCkdajVVuGmaD/SrJQW8yWtRsouIISLGiBgLeIoN+ikfEQN252w+2K5ocpuZs2CcKbxChx53ZeIXUxF0OOIFDW7XCnq84QnPeF8jaDFkyWvupPuroMUnvgrJvdOfLAomeMh7e+ltNcEjvmvwkuAGD7iegy8J/jdI2JejvLScPne/4sL5+AHddkk+mzKKaQAAAABJRU5ErkJggg=="}, 
                {name: '内存占用',subdir: '选项设置',command:"openTrustedLinkIn('about:memory', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image :"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH3gweFgQ6Kx3ZJgAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAAVZJREFUOE+FkztLw1AYhjNY/0DBuhjxUq2ggqNihVaJxg5ODv4J/S2Ks4MgREFF0EaqOAjt3mo2hQyS0YKXpRaO71tP9ORgkg8eaHK+5+25xVDr2stmgA0cEICnujtU+FwrH36slxxggX7ZHi0058AeaAMh8etVBNilO4gCtMG2VP4KjZQvFFEPuJUB/nulXBypieKkKwZDmdPmP+uyGsAZvHWt+Y3hG7EMOQC7oI8BXLM67UhA49Kcwh5cdVYXdyDMAg8I8AosBnDD/pOJ38AMOitLlc2Dx8KEK+6lHHLCgBdNUvFrD1mTSx11xVbeFefgVHIG9hnQ1SQVhi9UvQHzqDk37rRmxo5b07/wOS3gCzDEj+E5bQlpBGmbmIbDgKRjTIKOzYCki5QEnUx4G+OuchzszfXksPgC6B+TDsfYE5XDwoD6OfN0eMSEv/mOYz/T7pVhfAMlNSjBzVUmcwAAAABJRU5ErkJggg=="},
                {name: '插件信息',subdir: '选项设置',command: "openTrustedLinkIn('about:plugins', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAR0lEQVQ4jWP49u3bf0oww7dv3/47OTlhxfjkYPL0MwDZ2XgNIMbfBA3A5yKKDSAYBjQ3gGA6GBxeICYKiUpIxLhokBhACQYASZecRxjAXUYAAAAASUVORK5CYII="},
                {name: '缓存信息',subdir: '选项设置',command: "openTrustedLinkIn('about:cache', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABs0lEQVQ4jaWTP2sUURTFXxGSzi+Q+BHUQnSZ95SkHdh2miyMe+9JYZPNksZiTQimFCz8RzJ3ujBPsJ2vIGyRIrFM8ZgupU0iDhn02rgblt11BQ+c8v4e591zjTHGbByYpY601rrH0b1n0nqYSut+R1prGwdmySwSZdEbFnvDudMpi2soc+/+DhB7QmIHlLt9lmivm9kXLNEe5W6fxA5I7EnnbevOXMDMl3OnLE+UD9uK/qYy8zWAKwBDIuolSbJ8CxDXTA1/XFf0Ouq91xCC1nWtdV1rCEG99wrgLE3TVWOMMd3M7rJE/W5mdymzL+no6Ws8Ty/LstR5KstSmfk8juOV2whib1jcN37V/l4UxcQAgClIURTKzNtTf4D+poYQFgJCCApgaEjsgHP3mcQNWdwFg341TbMQ0DSNAqgN5e4HiRtybj+R2GNs8c9ZgJFHqutaAVz9U4RZGkdgcV8mVnnYVu/9QoD3XomoZ0a3QB8e3eWjxw/S9+sRtroXi9YI4Gscxysz25mm6SqAM++9VlU1LlJVVeq9V2Y+HxdpnpIkWQaww8ynzHz9x6cAdiaq/L/6DbRoFO5cdXo+AAAAAElFTkSuQmCC"},
                {name: '故障排除', subdir: '选项设置',command: "openTrustedLinkIn('about:support', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACHklEQVQ4jZWTv2siQRTH34zZrPtDd7JRg8IiyB7YmCZVqitTWoUUIlcGsU5xhYRDLFIEi/wpB4EjXWTezC52V6aUFEcIxxUSgsi7xt1MTHNXfJvhfT+89533gIiYFqKfCjFKKpWLf5EWYqSC4IyIGGgh+ijEZyJimdJGI1KuO0DbnqJlTdF1z+fNZt2sScLwJAmCU0iFGGWPPw4PPeU4NxJghQC0pVflONe3cWznECEuIalULnKzZc0QgLBQWCDAOjNLgJXk/BEBCC3rLoO8AyjHuUEAwp2dn7pWO9C+P0SAtQRYqXK5l4ZhhJw/IAApx7l6B0gbjUgCrLBQWOha7SBrUfv+UJXLvTybMIwk50+SsZf7OK7mAOW6g027a+37QzNMMzwslb7mY3lePwegZU2NsNbK9wdpoxEhY0vJ2O9Zp7NnmhGAVLE4eQPY9tQMTJXLvXmzWUfG/kjOf81brSDLxACM3wCue26as5Znnc7evNUKzEwyiDZHmDebdQR4lZw/pmEYmTMr3x/kgGr1E3L+jIwtk3Z7f/sbrxGAkPOHNAwjY+a18v3BxrxAAFKuO/6wB3h87KBl3SEASc6ftrZwjZw/IwDh7u73+dGRlQO0scq3cWwrx7mSAC8fVpmxpXLdcWbeHOE3UEFwloThiXko93FcVZ73RRaLE1UsTrTn9ZN2e9+s0UJ0danUBSJiSRCcJkJc/o+0EF0iYn8BuVi9441UyUkAAAAASUVORK5CYII="},
                {name: '附件调试',subdir: '选项设置',command: "openTrustedLinkIn('about:debugging', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4T6XTvUpDQRDF8d/trSImrxDwQcQ+BoQUamPsLWwCKVKksUtAGy0UG59AfA4Lq9QKCqlSKhtGuNwkFzZuM/vB+bNzOFP45ypK+n7sb2ruOhjF+wDPZcAwHv5qOlbv3nCJBabYzwW8o4s9TNDOBRzgEUl3jNdcwEpbdYAj3IUvZ8mwikdLf+oAX2iE6Bu7uYAPNEP0iVYuILVwH6LTbVpYl4ONJh7iAT/o4WXdd+tamOEEO7hOAckFpIheYI6nFNFcwMqQBOA86m1pwK5iP67mYKvB/gVnkjkRXyf00gAAAABJRU5ErkJggg=="},
                //火狐功能
                {name: '管理书签', command: "PlacesCommandHook.showPlacesOrganizer('AllBookmarks');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAATElEQVQ4jWNgGGzgPxZMkmZSxAnaTAzGsOEomoKjxLj6P5oAKWEwXA04ysDAYMWACFCSDJjFwMDADmWzQ/kkGUAqoI4BMAbZKZEiAAA7FFJDJW1v5AAAAABJRU5ErkJggg==" },
                {name: '历史记录', command: "PlacesCommandHook.showPlacesOrganizer('History');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4jbXTLVYDMRQF4E9VdANdQA1mXN0sg0VgkcgxyJpqloDCsodYJA5ThRqDQORNG6bJ8HMO95yIebm5k3vfC/+ADe6RMMZKGGJvEdc44oAe61h91I7BaR5+wy6+E65mnC44FyKbUO+K2hNuKj/qgvvFzoD9jHiHh8Zt93JOJyTZZ4kerw2BPs6cMGI1I62ivq0ITHuLAmRrI55x65zRGu8lsWZhwlYO87G49oWFQe7zT3EwC7HWxhaqbeQ8SEsizUEqRf48yhOmx/SCDzntFLVvH9Ov8QntGzLFRkqKRgAAAABJRU5ErkJggg==" },
                {name: '下载管理',command: "BrowserDownloadsUI();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAbklEQVQ4jWNgoDH4PzQNkMVhgCy6QmxAmYGB4TUDA4M9mgH2UHFlYgyBKbaHGoDMJxrANP0nRzMMBEMNCCZHMwyYEKvQk4GB4RnURkL4GVQ9CnjGwMBgTaRl1lD1KIBQgvmPpgZDPcUuoDgMyAYA/mQv97JO38EAAAAASUVORK5CYII="},
                {name: '附加组件',command: "BrowserOpenAddonsMgr();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAOVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAVDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADMzdu6AAAAEnRSTlMAfzpDTCEK38+9s6iFeGqNVjKYYQrKAAAAcElEQVQY02WOWw6FIAxEp7wRQe3+F3t7sUUTz8cknNBOMUmNS8SLURNtb7ETfLGH5z84JPwU7KA4vgUWKpiWKDXKx5iDii30rB1Gkqk++LKRozbJ5mGCRtLVbj+flnkcZVrCyfoTke2wwELHJSn1X34e5wRDvcBIqAAAAABJRU5ErkJggg==" },                
                {name: '重新启动',command: "Services.appinfo.invalidateCachesOnRestart() || BrowserUtils.restartApplication();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAq0lEQVQ4ja2SvQ3DIBCFv44qXXrXbrMDK2QFhqD2FhmAFbyD9/AILknBU2TH/FnJkxDScd9xBw/aGoFXR15RBlgA3wsMwCRo1T4BEbAt2AMb4FTIaPcq4FrwfIfbV3wU/KzBD2DLwAiswgCh1V5LkTTrTwXMhfzTSFc6GEhfe9BM/xs4ki8OspR/4SOdrxS6DeR9sIdnKpY2KpJzolP81HpOVjfF3Qoks/1fb/8xJcvKSjYUAAAAAElFTkSuQmCC" },
                {name: '关于火狐',command: "openAboutDialog();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABCklEQVQ4ja2TPVICQRCFO9KADnFmZ/vNO4IQEOw98ERYRcxyJTe2EI9AtpBpsJpgslgr7I+FvrCn3tfzeqZF/ltpmo5jjEsAW5IVyQrAxswWaZqOe80A5gBKkrn3PhMRFRH13mckcwB7APM+887Mpl0NzGwKYHcBUdU7APtzM8kixvjUrDnnJgBKVXVN8oLk+rwjyYJk0VJfxxiXzetv6sy/kvc+A7BtEisRuWnpdCR5bGHckvz4C0ABvA1G6ALUEV6+Cz1DbAWQzH8MUVUdgNI5NxkCALi/eMb64PqPdFKSJA8ADma2CiHMRGQkIqMQwszMVgAOneaTGsv0SvITwDvJZzN7HFyma/QFJdZSMcjINRYAAAAASUVORK5CYII=" },
            ]
        },
    _externalAppPopup: null,
    _isready: false,
 
    init: function() {
        this.handleRelativePath(this.toolbar.apps);
        const XULNS = 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul';
        try {
          CustomizableUI.createWidget({
            id: "AppMenuButton",
            type: "custom",
            defaultArea: CustomizableUI.AREA_TABSTRIP,
            onBuild: function(aDocument) {
              let toolbarbutton = aDocument.createElementNS(XULNS, "toolbarbutton");
              let attributes = {
                id: "AppMenuButton",
                class: "chromeclass-toolbar-additional",
                type: "menu",
                onclick: "event.preventDefault();event.stopPropagation();",
                label: "AppButton",
                tooltiptext: "Firefox Menü",
                image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAABUElEQVQ4y83Vv0vWURQG8M/RFwmEytaiwdFVEOzHEEQ0SE01uAoNYvQH1FiDNDS3FPQvNEUYTkFUQ+Bgg7UILSbvpEHU03JdwuH7zVfoTJd7D885z7nPfS5IMpnkbJJyxKgkC3iMIXZxq6r2WqE7uNgRK1irJJu4WlXbSVbxpaqeJjmJD1juCDiG5wNMYKdtfsPpth7HD7xr1bvEzwGe4WWSj7iBa+1wiE+ty66UX2mzmk+ymOSM/zKSnE9yIcnEKGSzhLvYxDSuV9VuK/QQl3vM8HUl2cJsVQ2T3MdeVT1JcgpvcbOHbN6MNeQDWdQhSV1fz2/kgPIKPh9C+REu9aE88ks5NtmMTNiV5AGu4D0W2gy3m5W9wFwPvPVK8hUzVbWf5B5OVNVqkims97CvwsagOcoU9nEOWy3hFyYx38Ntxv822O+4/Y8GC2tG/QX8ARvjteeHEO4UAAAAAElFTkSuQmCC"
              };
              for (let a in attributes)
                toolbarbutton.setAttribute(a, attributes[a]);
              return toolbarbutton;
            }
          });
        } catch(e) { };
 
        var ExternalAppBtn = document.getElementById("AppMenuButton");
        var ExternalAppPopup = document.createElementNS(XULNS, 'menupopup');
        ExternalAppPopup.setAttribute('onpopupshowing', 'event.stopPropagation();Appmenu.onpopupshowing();');
        this._externalAppPopup = ExternalAppPopup;
        ExternalAppBtn.appendChild(ExternalAppPopup);
    },
 
    onpopupshowing: function() {
        if (this._isready) return;
        if (this._externalAppPopup === null) return;
        var ExternalAppPopup = this._externalAppPopup;
        for (var i = 0; i < this.toolbar.subdirs.length; i++) {
            if (this.toolbar.subdirs[i].name == 'separator') {
                ExternalAppPopup.appendChild(document.createElement('menuseparator'));
            } else {
                var subDirItem = document.createElement('menu');
                var subDirItemPopup = subDirItem.appendChild(document.createElement('menupopup'));
                subDirItem.setAttribute('class', 'menu-iconic');
                subDirItem.setAttribute('label', this.toolbar.subdirs[i].name);
                subDirItem.setAttribute('image', this.toolbar.subdirs[i].image);
                Appmenu.subdirPopupHash[this.toolbar.subdirs[i].name] = subDirItemPopup;
                Appmenu.subdirMenuHash[this.toolbar.subdirs[i].name] = subDirItem;
                ExternalAppPopup.appendChild(subDirItem);
            }
        }
 
        for (var i = 0; i < this.toolbar.apps.length; i++) {
            var appsItems;
            if (this.toolbar.apps[i].name == 'separator') {
                appsItems = document.createElement('menuseparator');
            } else {
                appsItems = document.createElement('menuitem');
                appsItems.setAttribute('class', 'menuitem-iconic');
                appsItems.setAttribute('label', this.toolbar.apps[i].name);
                appsItems.setAttribute('image', this.toolbar.apps[i].image);
                appsItems.setAttribute('oncommand', "Appmenu.exec(this.path, this.args);");
                appsItems.setAttribute('tooltiptext', this.toolbar.apps[i].name);
                appsItems.path = this.toolbar.apps[i].path;
                appsItems.args = this.toolbar.apps[i].args;
            }
            if (this.toolbar.apps[i].subdir && Appmenu.subdirPopupHash[this.toolbar.apps[i].subdir]) Appmenu.subdirPopupHash[this.toolbar.apps[i].subdir].appendChild(appsItems);
            else ExternalAppPopup.appendChild(appsItems);
        }
 
        for (var i = 0; i < this.toolbar.configs.length; i++) {
            var configItems;
            if (this.toolbar.configs[i].name == 'separator') {
                configItems = document.createElement('menuseparator');
            } else {
                configItems = document.createElement('menuitem');
                configItems.setAttribute('class', 'menuitem-iconic');
                configItems.setAttribute('label', this.toolbar.configs[i].name);
                configItems.setAttribute('image', this.toolbar.configs[i].image);
                configItems.setAttribute('oncommand', this.toolbar.configs[i].command);
                configItems.setAttribute('tooltiptext', this.toolbar.configs[i].name);
            }
            if (this.toolbar.configs[i].subdir && Appmenu.subdirPopupHash[this.toolbar.configs[i].subdir]) Appmenu.subdirPopupHash[this.toolbar.configs[i].subdir].appendChild(configItems);
            else ExternalAppPopup.appendChild(configItems);
        }
 
        if (this.autohideEmptySubDirs) {
            for (let i = 0; i < Appmenu.subdirPopupHash.length; i++) {
                if (Appmenu.subdirPopupHash[i].hasChildNodes()) {
                    continue;
                } else {
                    Appmenu.subdirMenuHash[i].setAttribute("hidden", "true");
                }
            }
        }
 
        if (this.moveSubDirstoBottom) {
            let i = ExternalAppPopup.childNodes.length;
            while (ExternalAppPopup.firstChild.getAttribute('class') != 'menuitem-iconic' && i--!==0) {
                ExternalAppPopup.appendChild(ExternalAppPopup.firstChild);
            }
        }
        this._isready = true;
    },
 
    handleRelativePath: function(apps) {
        for (var i = 0; i < apps.length; i++) {
            if (apps[i].path) {
                apps[i].path = apps[i].path.replace(/\//g, '\\').toLocaleLowerCase();
                var ffdir = Components.classes['@mozilla.org/file/directory_service;1'].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path;
                if (/^(\\)/.test(apps[i].path)) {
                    apps[i].path = ffdir + apps[i].path;
                }
            }
        }
    },
 
    exec: function(path, args) {
        args = args || [];
        var args_t = args.slice(0);
        for (var i = 0; i < args_t.length; i++) {
            args_t[i] = args_t[i].replace(/%u/g, gBrowser.currentURI.spec);
        }
 
        var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile);
        file.initWithPath(path);
        if (!file.exists()) {
            Cu.reportError('Datei nicht gefunden: ' + path);
            return;
        }
 
        if (!file.isExecutable()) {
            file.launch();
        } else {
            var process = Cc['@mozilla.org/process/util;1'].createInstance(Ci.nsIProcess);
            process.init(file);
            process.run(false, args_t, args_t.length);
        }
    },
};
 
if (location == 'chrome://browser/content/browser.xul')
  Appmenu.init();
新垣结衣
小狐狸
小狐狸
  • UID55997
  • 注册日期2017-09-25
  • 最后登录2019-08-21
  • 发帖数86
  • 经验97枚
  • 威望0点
  • 贡献值60点
  • 好评度8点
  • 忠实会员
  • 社区居民
3楼#
发布于:2019-05-22 09:23
333ywb:Firefox Nightly 69.0a1   全部失效了,哎,看了大佬的办法,试了试,没有一个能改成功,懵了????回到原帖
不至于吧,我的右键关闭和平滑滚动条都好好的
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-08-17
  • 发帖数90
  • 经验98枚
  • 威望0点
  • 贡献值96点
  • 好评度0点
  • 社区居民
  • 忠实会员
4楼#
发布于:2019-05-22 09:32
新垣结衣:不至于吧,我的右键关闭和平滑滚动条都好好的回到原帖
我这里全部失效了,脚本压根连一个都不加载
新垣结衣
小狐狸
小狐狸
  • UID55997
  • 注册日期2017-09-25
  • 最后登录2019-08-21
  • 发帖数86
  • 经验97枚
  • 威望0点
  • 贡献值60点
  • 好评度8点
  • 忠实会员
  • 社区居民
5楼#
发布于:2019-05-22 11:42
333ywb:我这里全部失效了,脚本压根连一个都不加载回到原帖
把脚本重命名试试
lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-08-20
  • 发帖数471
  • 经验235枚
  • 威望0点
  • 贡献值72点
  • 好评度71点
  • 社区居民
6楼#
发布于:2019-05-22 13:00
333ywb:我这里全部失效了,脚本压根连一个都不加载回到原帖

alice 已经更新了 userchrome.js。
注意更新或修改 userchrome.js 引导文件后,
需要退出 FF 并删除配置目录下的 startupCache 文件夹才能生效。
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-08-17
  • 发帖数90
  • 经验98枚
  • 威望0点
  • 贡献值96点
  • 好评度0点
  • 社区居民
  • 忠实会员
7楼#
发布于:2019-05-22 13:25
lonely_8:alice 已经更新了 userchrome.js。
注意更新或修改 userchrome.js 引导文件后,
需要退出 FF 并删除配置目录下的 startupCache 文件夹才能生效。
回到原帖
已经更新了 userchrome.js  可是脚本还是不能加载,还是需要修改,哎,头大
lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-08-20
  • 发帖数471
  • 经验235枚
  • 威望0点
  • 贡献值72点
  • 好评度71点
  • 社区居民
8楼#
发布于:2019-05-22 13:32
333ywb:已经更新了 userchrome.js  可是脚本还是不能加载,还是需要修改,哎,头大回到原帖
uc 脚本部分还需要按主楼1、2点修改。
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-08-17
  • 发帖数90
  • 经验98枚
  • 威望0点
  • 贡献值96点
  • 好评度0点
  • 社区居民
  • 忠实会员
9楼#
发布于:2019-05-22 14:11
lonely_8:uc 脚本部分还需要按主楼1、2点修改。回到原帖
按照大佬的办法自己改了改本帖2楼的脚本,怎么也改不好,以2楼的例子来说,具体怎么操作?



按照第1步:替换为location.href.startsWith('chrome://browser/content/browser.x')


第2步:createElement 我都该成createXULElement  


不知道哪里还是不对,还是不能加载
lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-08-20
  • 发帖数471
  • 经验235枚
  • 威望0点
  • 贡献值72点
  • 好评度71点
  • 社区居民
10楼#
发布于:2019-05-22 14:41
333ywb:按照大佬的办法自己改了改本帖2楼的脚本,怎么也改不好,以2楼的例子来说,具体怎么操作?



按照第1步:替换为location.href.startsWith('chrome://browser/content/browser.x')

...
回到原帖
注意2楼你提供的脚本中有
document.createElementNS
这个方法的,这个不用理会,可能你不小心替换成了
document.createXULElementNS
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-08-17
  • 发帖数90
  • 经验98枚
  • 威望0点
  • 贡献值96点
  • 好评度0点
  • 社区居民
  • 忠实会员
11楼#
发布于:2019-05-22 14:53
lonely_8:注意2楼你提供的脚本中有
document.createElementNS
这个方法的,这个不用理会,可能你不小心替换成了
document.createXULElementNS
回到原帖
这个我没有改的,我都是改像'menu''menuitem'  'menuseparator' "AppMenuButton"  等前面的 createXULElement



下面是我自己改的2楼的,试了下还是不行
// ==UserScript==
// @name           Appmenu.uc.js
// @namespace      Appmenu@gmail.com
// @description    Basiert auf dem Script externalFuncButtonM.uc.js - Wiederherstellung der Orangenen FF-Menü Schaltfläche
// @include        main
// @version        update for Firefox 62 by aborix + Movable Version
// @author         defpt
// @charset        UTF-8
// @version        v2018.09.05
// ==/UserScript==
 
var Appmenu = {
        autohideEmptySubDirs: true,
        //自动隐藏没有一个子项目的子目录菜单
        moveSubDirstoBottom: false,
        //把主菜单下的子目录移动到最下面
        subdirPopupHash: [],
        subdirMenuHash: [],
        toolbar: {
            //定义主菜单下子目录,加{name: 'separator'}建立分隔线
            subdirs: [
                {name: '常用功能', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAMFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABaPxwLAAAAD3RSTlMA29RuQQvntwZ7SRvkwcA+P2vZAAAARUlEQVQI12PABpr1P1mAaG5x15DCDUBG4wQGBk4BIMMcJHwZiFUYlmUxOAEZXxnyvzHEwxkQqVNAKajix3DtcAMRVmACAMdOFKcCHt83AAAAAElFTkSuQmCC"},
                {name: '越狱工具', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4jbWRIRKDMBREn8NhOoPrDLoqtifgAnG9AUfgAJU9SS2uAoOt6gWqIiqjqlrBMhNChoLozjA/2ewu/yfwRxRAC3jVYmtAD5yBXLXfYj4BndZ71U78KtwAK9NLf7fiV8HLMLY9Bvg1ZgM8gSoKqMSbJXMFOOACZDKOI2TinXQzWB0eI76M9kfpbBzgf7UXwJC4j0+w3iXCjPiUfkI0DHM7htlbhud04pulgLsMJXBQmw/VUl8r3SzgDdTBPpdxDMqDs1r6CeLbh+HZvOoa/QwZcFVN4gv6nzt18jn5zAAAAABJRU5ErkJggg=="},
                {name: '文件目录', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAbUlEQVQ4je2Syw2AIBAFJ1ZjD1RgJbRhtVSBWS/rj2UjqEcn4fKSN7wQ4CMmIAFyOknzJhIQiixo3iwYK7k4x6zzBB5m3Wb1bqwtkFJQvsHdAiPoRQCGB8ULv+AQLEDs6EXt7MxApv0jZe28ZwV+VzP4VojXiwAAAABJRU5ErkJggg=="},    
                {name: '选项设置', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAkElEQVQ4jbWTXQ2AMAyEvzc0TAIWEIIWTMwBBhCBNni5Cw2MwPhp0mT9u7a3DX6UAVikw92iHphCcSs1yKSc02InjkAXYp18Bi6CuPOVeJJiYNS5ATIbB1k+wiSH4iWMndUlSWf5vM6BWBMW7RTsJJ+l3dnvAUorzDUrGOQxifDBNb5+SAZ5/JRLo1Z/pmpZAR6aP0H2Y7uIAAAAAElFTkSuQmCC"},       
                {name: '外部打开', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAV1BMVEUAAAAbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxtGnksMAAAAHXRSTlMAI/i59cOKK/3x6+bVrGs34H7Lu7OGeWRd3dq0HD+xOPEAAAB5SURBVBjTjU5LFoQgDEsLBQRF0HGc3/3POWJ9btzYTZO8pgluzuiGwY0nXRP3xvScXsqNXRQ4frQliUAzs9lW3JRnR8BcvC8CkM3oMgD2gA8AaoRdD4EC2j1qs8ibfp9JLZBCIAlhak/NHmOrxi72qyDHs9il+p35AyMzBBChpCm+AAAAAElFTkSuQmCC"}
            ],
            //下面定义子菜单功能
            apps: [
                //调用其它浏览器打开
                {name: 'IE浏览器',path: 'C:\\Program Files\\Internet Explorer\\iexplore.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH3AQJFykNAj7JHQAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAAiZJREFUOE+Nkk9IlEEYxmdXt8x1dd3CKJAQMoVVDAs6BBEdWwoPHayEDq1B4klEiMBDXergpXMdggpiv/0bimSHOqToIfPsN7PrkiCC0h8j3TT7zdcsDVsHX3j4ZuZ5n2eemfnEXurYeCFwICU7AkkZBw/2JeXdmpSMGvrfasyq4P6kPF/tyBEwVuW4L30Jt8j3AwajYBD+Tiitmozkb0GcpXEcwYZIuLs2/I67iPhm3+yKrz6jouCkkf0pol1C+KlSaAO+xAYPI1nVSdI2IxWiJimjEAvs8K3c7E+4Uqdh5xmEPyyjEkkfHcrlI564bXLJj/A+eE/zZ92E0Amm5PGWiUIgnFH13MUAJl/LJowXudhWz6Aplw8zGUVcMORyLbeuue43RZ/+dr4uVmP6vGwAtvVlak4QJQz5qkxisIZZAryw8AwsWAY65VPPAKc+Fko2icn/sAN+GuxgkBI8RSPO72wxc32+Xn6WyzZYi4GLBrFgWp3WT9eD2xr4bu2+yquc8uJZhckF+vtBnFe40ZBRRwW3+5gokxxjrCLFW5rO8AJ1/HEH4ePa2OLn69KqWSCewWSIyREWZ20TLWBtGnxkvGmtb5DiqhcLgzkMrpuI3TTP2SaVQPyFNEMtE0tVnkHAkfcweMK7R0lxgu8t5lkaFdhC9AtsM17XR+VYsa6pot8T60IUYrGXWx1EfIV5x+FcvpZxOzGvgWFwm3TnItl8yMhMCfEbt0DTTmnmDkAAAAAASUVORK5CYII='},
                {name: 'Chrome',path: 'D:\\Program Files\\Chrome\\Chrome.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADg0lEQVQ4jXXTf1CTdRwH8K/lXWwccSecCgJCaNsEIVi3avPHfvnsefY8Y10qnl50V10ShXddlF39EdwxSkrUODnxVDLRnHS4wgXbqISM/QFM4MHhbmqw7YFBTIb9OCeO3v3BnaV3vf9+f153nz/ehDyS8G5DXuQV84H58l3+6Nu7o9E3d83PvfrSrUgp0zhlVD/7aP9BxrOzEwSt6vAMp/ljdieNyB4OkbISRPZwmN1JY6ZEh0nd5rshpeLUdak05aHjwfR0cfCZwguCSoEpjRJhagumGTWmWTWmjWqEqc2Y0ighKBUIFRchIM1z+lIlSQ8Aa2nx4XCODMHCAoTkxRAUcgjyQggFMggbpQjlbURQWoRAbiEmMvPxa5oMN1dJz9cQ8hhRX6akZWd0sSHJ0whlSzCxXopg7jr8VsIh/HE1wrW1iHzwIqbK10DYm4XJ8rUIV2RhpjIDkU9TtIS1M3VUL4u695/HrdU5CGRkQ/ioGu19E/isZwb1PbP4ZiiIyLgFd4fFiF0T475PjEV/AuJ+cQth7cwA222E2U6jqyAbwlY9Tnf7sb15DK+d8uL1Fi92HPWiqVvA4rgBf/PLEB8VIT4qwsJwopewHUzU5GBg6OFQVZWPkYoqlH3pA1Pfj+1HPNjxhQfs5/0oOeJH2G8BeII4n4A4L8LCUFKUMDZ63uRgYHIZYby4CWdP1MB86Cqeq74CtcUNtcWNF2quQGnhEbheB4z+C8QGku8Quo0a5joZmBwMaKce7/zyFt473YeMSjtk+x3YsN+BNZV27D3hQeyGeekFXoT4SCL+dKf4iKF1WwP73RJgcjDgXBQO9TXhjcYfkb/Phrx9NpQ29KL/aiPgFWGRfwJxXozYYDLmfko7R7THtcXU19QCd2kJYB0GmF00PuyrwieXj6K2+xiqne9iYmAFMLoccV6Me55k3OldhemOLI4QQoimWd9CW2mwlxiYuhhwDhp0lw5GlxYq2zYcc+YA15YjPpKIe4PJ+L13NSa/zXG2tZHHCSGEyA+qU7c06Z1UKwXjxSWI62RAfW/Eyx1bcXtgBe57nsRf7lTc/iEDgfZct+98ZvpDe5DUq5KUDRqrplkP6gwF2kpDY6XR3rkBCz+vRMSVCcH2FG6clTjGjq9N+99VFtVu0isOqE/KD+r4iibV3Pi5ddGbX60f856UtY40S02EkGX/7f8DPn0d28pmYMIAAAAASUVORK5CYII='},
                {name: '360极速',path: 'D:\\Program Files\\360Chrome\\Chrome\\Application\\360chrome.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADBElEQVQ4jXWTb0zUdRzHP7FylLPMGLOF5M5MRjGmRMj946yjQZ4e4EDJWWba1oZOZz3xQbtkaxeQRiSxUbb1Z7e5zK3WKDdxi/UARJ2eBzmyc3LccbuRccfd/f7c/V49AIRovrfXs+/79dln+3xFluTdHxL5TT61fftX2pe/dqhFI/XqoH+bmrzhViKje9T3g3uDuUs799L0neJ09uoRe4/O1l5tbNit3Lz+qop/EYE65ebw2+FH/lfe9Y2y3dGjp6u6dWzdOm+2qtP91iS/b0kx/Eqaa7XKgsitRBckHk/O0Z/iec4ePWI/pWP/bJb39iQ5Uxrnx/I4580zDDhSDFWnuVozJ3JrFz3iyZGD3/Lo7q+zh21dOrbOBVrq45wqnOL0+rv4SqY5V5bgl8oZfqtKqJddsQvXG8J2ERFxeC4+uOO0dsh6Usd6Usd6YpaGA0mOL4/Slhfj04Ipzq3tJ7K6QlVWi6oW50/oNRWdHK5bKVvCJ85W3/7c91L3TMzSoWOew+LVOPRElGO5IQLLnaQeENK5gpovaOuXkXnhSWiy+eTlyY+D1kgb1mAX5i/C2UqvRqVXY7NX4/aEwfiISvJZmRWsENSnBL14BdkXC8BVFpOa6Cfj1kgb81Re8lH+cx8bv+/jyt8hQvEA2QFBfUdIPyZohUKm5HEMy9Pg3nRXXJOd1xYLKu58QOnYUTb491F4qYrjVx7CCAjZQUE/IGimHDIb8zFsJthpHpW6ya6u+bJ54kPKgsd4brQF09Vm1g2VEvlT4JZgjAnZAUErntvf8Qy8VdMq+0O9BVXh9vGl09cMuTlyowiiORAWCAncETKND8/uv3XTrekjjatERMQW6Si2hbxTi6cf/KM6TaIc4iXwzwaYWguxPIx2k9+wrZtmb+3m/5yyI+hZaf7L02kZaTl7JtrsJ+MCrRY0JygOSFkgUU6m3/66al7z/H0/lKruKMJoSGDUc4+sGzIu0Ov7AoHGZfctzwdln4ns7o8wmgcwdvkxXhsk+0ZrKrW/YOnbfwGaHza07T0rkAAAAABJRU5ErkJggg=='},
                //越狱工具
                {name:'V2Ray',path:'\\chrome\\local\\V2Ray-windows-64\\v2rayN.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC6UlEQVQ4y1WSz2tcVRTHP/e+N+/NrzSTOjplpu2kIbGa1lpISkCXgoq6sCBRBBU3/gH6X4grF4IbUVChIrpxI4jowoj1R4lGMW1misbEpplkMvMm8+a9d+89LjJY+oWzOZzP+Z7DOar3/i/S/2gV2xlyl3Ka9MU5bhb6rH/yHTbJUEoBIAhaa+Yeu4h/8O6PZOsdxDhQgADWQckn7Q6oLDaYutTkxpUVbGpQqP89dv/exre3IySzRxkHhBpZrEG7R/j2b9DuMbt8AescrSvf41ID40myUYoP3HEONPLqPOalB3AbXfRnGwRfbzO50ePsK7O45xw3P/3hriYa1BHsBEIPUov6Yw+pl0jeuMjgzSVcvUjlneucUzWmn15Ahf4RA6j2zFtiuyMo52CYQWIh7+FOlbEXjpMuVElOF2FrQPjtLdI8rJl/aa+skY5G+CrvE7z2MDw5jb09wG5FuH8iZDNCtyPyv+4TFjRps0QyW4bE8mDUQD2Usr76O75bnkOeOoMJNXZyAjNTxGb3YBKDHSa4foLrDGHnEPaGiLW4nGL65EkMGf5eVWi9/iEmTkBAZLycVqicRhdy6Ik83vECajIPWiGJAQWlhSZ+89lF4p0e21+ukpsqEdxbJlebIKgdw6uWUKUAm6SMNrvErQ5OHKqYg/uK6LkKqrO/L8lhTLwfIYGH5DRZkhJvdYnWtuj/9BfxjV3UsZDC0mmcsTgteJcajCTDRwTtewTVCZLekN3Pr9FdaTFc38EcxOSaU1SeOUdwtsrgmxaiIf/ELMYHhhk+Mj6pE5SnMbuHDK9uEpyqUH1hgcKj02Q7EQcf/AyNMqXL81gfyAzA+BPH0qFH7eUlCvMn8JsVmAyJvrpO7+Nr+It18svnsd4dGMB3IjAOcaBDn/IjZ8gGI7rvXWXwxZ/kH58h//x5jAdiDIIgIog4fM/TRP2YNMswxmCtxRhDFqeM+oeopRPoy/czkgwTG4wxGHNU06jX+Q+RV3R35nl5KAAAAABJRU5ErkJggg=='},
                {name: 'SSD',path: '\\chrome\\local\\SSD\\ShadowsocksD.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAACXUlEQVQ4y52T4UsTcRjHv7e73e5kbTnNCLeDoRsGxmRsHoQwuAnDW2Diu8Bg4Zv+gNG79m4Lsb2rBSmGe7dXvahXI+hFIja5Fw2XDmFxKeet0tMXqd21X280DFOsLzyvnufzfR6eh4fCf0pRFIemaQH6X0HLshiHwxGdmZl5uL6+fufCICGEyeVyYiKReO71er9wHEeSyeQccxFwamoqLMvyZLVaHdva2uq0LAsul8sUBGGBOQ+cnp4OJ5PJyWq1elvTtCtOpxNtbW3Y29uD2+3+1tfXp5zVMSLL8jNBEJp2u50AIMFg8IckST9ZliUAyMDAwLuNjY3LJ0H6aNSngiDoxyBFUaS/v/9zKpVaa29vbwEgNE2TRCLxBACYWq3GlkqlG7Is31tZWRnXNO2qaZoAALvdjlAotByLxT4Wi8WxnZ0dCgB4nider3cZAJjV1dWhpaWlR4uLixHDMKjjiXieJ4ODg69GRkbeFAqFB81m03mcc7lcRiAQ+AAAjM/nW4jH43e7urqker1+S1VV8fDw0CmK4tzo6OjLfD7/WFXVayf35PF4Pg0PDzdOLbDRaPDZbDaaTqfHVVXtnJiYKHR0dFg0TRMABACx2WwkHo+/IIRQAPDHGf1+/z6ACoBKKpXiJEl6LQjCe0VRIqqqDum6HjBNk+/u7q5QFEVOGZzU5uame3Z2NsNxnJ7JZO4fHBx8L5fLYV3Xb4ZCobfz8/M416DValG7u7tulmXXRFH8yrLsPoDyUfzWmQaGYdii0Witt7c3ewT/VdQ573ppe3v7ek9PT8Xv95Oz6n4BPev6q+bKbvMAAAAASUVORK5CYII='},
                {name: 'SSR',path: '\\chrome\\local\\SSR\\ShadowsocksR-dotnet4.0.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAACF0lEQVQ4y2N4tuQMMwMFgPGofucEBgaG97z60hP0FsV8JNUApv9//l359epLw7v9t+8cUmmuOO0ylYckAzikBQ4xMDAw/P/zT+Tv11/tX2++un9YvbXifPA8ogxiZGBgYDio0Pj8388/EsxcbH///frz7/+ff6yMrMxvmLnYenm0JaYYrk36gtMFDAwMDIwsTIcZGBgY/n77xcwqxH2EkZX5zf/ff0X+fPze/unMo/tHdDoqLicu48FtADPTIZjAr9dfHNjFeCYwcbBcZ2BgYPj366/I77df29/tu3X/qF5nxfW8tTwYXjjlMNng681X5+GCzEzfuVRFgn48+Vj098tPVxQb2VnesAhw9grZKU/RnBT8hZGBgYHh9fbrTFfTV775//uvIFwhG/MLXn1p629335T+fvctA93pzDzsZ7nVRH2ZGBgYGEQ9Nf8xsTIdRVbw79dfic+Xn6/h0ZYsYRPlKWBkYvzLyMr8kZmHfR6HjICLfL6dmfHW9OcscGezsRxh+PbbB8WQn78Nv958WWV9qbz6jPv0PexS/Hd050f9ZGBgYGA4DVEDN4CFh/3gnw/fGRiZmf4ysjEfYWJj3sQpL7RJxEvrEUM+A4PJzsyrOGOBgYGBQcxf5yybOG8Cv7mcuP29OgfVNp+J3x+8q3806dAmsjPKYc226gMy9fvxJmV8kiJuGp1MHCxnKMmtDNeyVuPNEwC81ML2eybLcQAAAABJRU5ErkJggg=='},
                 
                 
                //常用目录
                {name: 'profile目录', path: '\\', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAMWSURBVDhPjZJ7TJtlFIe/GA0GNExNvO2fXaIzxoXMZbiN60azbCFDgYakSXfRqJi5BGo7bkVgYdkYIlNEKRgsIyGFQTCgBgZzyFVl4zrGKLbljqQEuTNooY/v15FFoyae5ElOzved3/ue33mlXsPh1u7cALpyDrqR8568Q73S/w25AacF7vc/YM1MR/Y+Oj8/IMT86DMEM1B4hMGiY27MgnuFRyv7vj7yiFtAPhXnEI5BvehNxvVHI6wIoVUzuKzM2OpJCd9BRtRzJIc9S0LYLtqyA7j3zVHfTQE/WP6Vtb4PBGdwDJzDYUln3ZYOv3+C5tAzmLTbqb0URFlSEBrFNqJ9t1B13s9nU8AfFn/CaY7BYdaKm2hF/hEbFh1MJfPe3sco0b1KzeXjlCSFk3B8D5E7PfjNqKCvQFEpBIQHi7W4huJxDetxjehBZiyFqR9UqF+TuGWKpv/7RKZvZ2H98WNCX5SACXrzgpC6vggUM1djqwinPXPfQ25l+bLQdhptyFNgL2G2OxvrzRR6vtWI2laYa6Yp8+AvUveXwaxaP2OgKATWxTbEFtzImxnRsdBxhsGaeEYbUkVzLLU5StaGDcy0JmOK36ORer46jL1Fw+SNs7D0MxtjmbjGs2BSMKHjbm8u5aVXaC6OpjTjLdJS3sc6eoNRYyDCwqelnrwQrBVRLJs/hZmroilNuJ/KrPUi7xS0kfjdEu0tVTQZT2DU+3Pxgo60uhVCM5pn9meNPSpeogK3D2vXYD5fzHZFmHoZ3/R+6vvv0z6xjn1VPAmXKC8tc2d8ls4pFy2WFd443+WUug2KefkWtkoVlvIobOWR2CuPEXjJwvW7i8TVzKGvm2PDsczC7DSJ1+eIr53n5sACu+Na5DEknyTVK6d0ypfVusiX1NqInap3Fc+/uSuuk9yGad4uHkFtHEFV+IATIpdrhkY7Oz6scwvI4SXw/Asenup61IZBNGVjxJYKTJuIXFM2zsl8My+crn4o8I943C8hxktZ5vSKNOEZ8Xfk2hPKUueTAediNn//1/AWvC7Y+x+Ib5L3n/LzYGB0uqcUAAAAAElFTkSuQmCC'},
                {name: 'chrome目录',path:'\\chrome', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAJsSURBVDhPlZNfSFNRHMfvk9BbEP2hPw+xHkQyzJQoFQp6KKGghx5iRmmhREEhFZLT2lyRFCZBMyuH02k5d3fnMDZsMUc2uHG5ZTdSk1tjIKwbcmlJ48bo2zlnc5El0Re+nMPvd76f84d7uYDfrws+H/jh4WVN+hq3nOiCfymZTELgvYO5CFOlTfxCHMoDZt7NQlXVvOMfP7B6v8vFRu1TEuGRR65tzeLKXVelxM5rKVRYY1/zAPH5NGamVGZZnEUikWD1Abcb8581Nn/7XkWVVUa5PYOKNuk7OUgJx3uzgBCv4JWoYupNHEEy17Qkq8vSSwQ8brTdF1DWPI1SO1BmVbCu/HA1u8si4PE9GV7nJBQ5jgGHDF3XkF5IsV7viznstsRRYgGKrCo27q0/QqIFvwG67BKct2Q8JHbYJBhGigB0nHEpqGqdR/FlYFPrHO70BUBiK1iYahFw/VwMHU0iOpsktJ8X8QMZ9PZ0Iejvx5aWFFa16Lj7LIHIqJcCfknweRng0tEorpyaQGttDDcaI+TxHrD7G98W4Oiw4eLgNFsXEPglAMHHGrV7wjh7MIrT+ycgCE5MvpaQTqcJqA8nj5uBTIat4z1DfwccKgyipjQMc3EEkbAHRjrFwieO1bC+YRhs9Az9AcheoXJ1AA0tCixPDZh7dHR3tqG+LhvOkN2XBTwZ5VmjjBtD4ZogGtwaDtyeg+mCyupUFEBNRT+8XDSr8agfI855FHFBmLgBrC3oxtZGBTdDOgssFf3xctGs6qrHWHgzCW/gHFjP2bFvezuiYT97cbojPTYdqcm/MZ6L5rXjP20izonjfgKVr3Lrdxs1wQAAAABJRU5ErkJggg=='},
                {name: 'Firefox目录',path:'D:\\FirefoxBeta', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACh0lEQVR4XpWTTUhUXRjHf/feuePHWA1hFmiUhUpChTVlIi2yTYs3GFq0aOGiNtmiTbR0lVbLF1elxJSh8fKOMyNZCGNSi6Je6TXIyKJRLCNn7uiM86HzcWdOw+UyDShEP7g858J5fs//wDnS6OPHET2Xs4t8HsFGZElCkiTtnNNZw2aMeL3idwSDQeH2+oYp4b+e9tWp3vZx3B6PIfgcmBWB+TnzC4i5+QVD8HBoyKhLQU38Mzb5YKr7oP3/m21fE8Ot4vWN9rgFk5QewlZmpCSjx6gqrwVAlmXCK1F21lTT2rirc/WzvfPgnjWmP5ZlT3S/PGkBCYB1PYxVLceiVBBPL2K31QPQ2HQA/4tX2MLTHEh5OVSf58OsQu/onBN4J/9KoBFOzCDIFmQhVNVKMpXB0XKYjh1hWtQnNOzXWfiUos+/dN4ztTQBUBSsZ0Okcst8XXlmyKxqBXoOPg5epWx5gN3VCYLvI3you0L/5OIYkAGwFAW6hipsIAlyIkVlpcqAa5At28/i1J6yuhxBd/QUBjUb2zGRQQIgmdFYy2pG/FRSwfXgEQ7HYZx/neLv1euE9l6i9nQXpOOUYpGKCX6QpwoUnfy8kyNH6mlubuBft5vZmbfsu9YPgMjrlCJjksz+IFaQRPXvVG7dRkNTEyMjPvwTfh66+hG6jmkAYMMRsvoKHcoxunQnZ5S79N25z7h/kkHXPfJ5gRDA5lddxRBYNabTHmLxIGuxKBe4XZh8FwMEimKGlSRKsajyVgJRF9YcfImGGIjd5+x6I3XHLwMUb+OGtYkcsd3C9+YiqQiko/AtnGEwY+V5vA3P6Bhur5fCezGqx+cjmUi8oAQJOMqfEQUCmPwEtFNY6VlzWBcAAAAASUVORK5CYII='},
                {name: 'lenovo目录',path:'c:\\Users\\ywb11', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACNUlEQVR4XpXST0hUaxjH8e97zhlH72jXTTONVoRjRRFexOkGQ9Ey2om1KK+tWuRCg5ZBYYsWQQQtKpBWhdTCxpmQuwkXF8LNHWVs0eZyKXVRoUKbsPHPvL/m7XBkKgn6wMPh4eH58b7nHPN8cvLjZrXaKmsR9QQYPGMwxiz39fYm2YbJFwqqDfmZpaUlXk5PPz3b19fPdzxJOG/nF2q1yPzConu6HmfsyROSySTHc7nzzwqFpz8GEAoCn1hsq1yPYzyP5ZUVUqkUJ3K5cxPF4jPqBCAczwtqZYhYK5wDnZ28mJpC1jLQ34+kM98GKDqBhzGGiOfDp9VVjmazrohYY6gXbC14vguIGpfImh9Qqayh9XWcnTtaUCKxfYC7c7RsYjFMUxNvdqVBouPDe5y5dBuHmpup59WfwPMD/HgTfm35//Ruuv9+BPFGfBP+D2qIc6TwkLmubv0Q4Ac+QWOcWDzGf2176Bm9gX0wgt3cxAN8wG5sYO9e5Y/bVyh3Z4Uzns/L+VypqCJpJpWWRkdUHTqlmcxBrUuquLmVo1LHQVUvn5Ye39Kro8dU9xIDDCAEy+/wfmtBGDxCMoQMtVkzrLwHY2B8YkJO1VpZhUrte6Vrf0nXBzTT1q5IKd0ujVyQbl5UuedPAT3ki0VtZ25fRro1qHJHpyLlzH7pzrDK2WPhMmAej439k0gkTloJpPAzNjSg31s5fGkQbJXX9+/hHB4axiYSdJX+zQKzAAbIAK38mllCfAF+aBt61/+9iAAAAABJRU5ErkJggg=='},
                {name: 'user.js',path:'\\user.js', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACI0lEQVR4XpXQTWsTQRgH8P8zO5tXio1IomeLX8CIGHw5FOxJLVVBg1RPIniQasEGhOILXr16FCnJoU02MdaKjfhGKAj9BgWTFokkBQVtbTS7jzNbR1IbBH/wZ/eZ2XlmZqlULn/uuG4/ex4Y3XRFEEQgotbI8HAcPVDecVhN4l+azSbeVau5MyMjafxFMDO0D7W6yjJq9WX99GttKptFPB7H4VTq/Izj5LY3wCYpLdj2n/i1RkKgtbqKRCKBI6nUuUKxOIMuEmBoQkgVguF5DG3fwABeVCrQ/+hCOg1mPr21AZsTCBARDMtirK2v4UAy6ccgMLpJUwhhmQYQBEghYLsdtL9+wUbHg7YjthN9Er0b6DubxQFLIBy0QBMVaHx/EGCAxsuQ4RC6ie4TWCoh20Y4HFSL5/H22nFAkooN2CoWUL0yiNjkM97WQPq7SgQjAdDNOTwaPYrJVyuAywDRZjouMpU6Hp49hF23fzeZzudZa298Z/Z+MMYKfO/NJz6ZXWI5UWI1yPyzrbLBmh47lVviBwst3nP3OW/5iSAV5eO3NiJBAhEUAtScQSrRgPC/8YvpQoE1z3X93TSMOzxaqvHFUp1xw2ED1x2+9KTOl2dXOHFnjgHsR75Y5F4o85SvzjfYypTZkOp97GWDd5vFCj2emnodjUaPecyAiiBCSBJiQYGhhRBcD5g9uA7txPsI+mygcWsoCWDRXGmvSj/+z6IpfgFmOhcVEgMdKgAAAABJRU5ErkJggg=='},
                {name: '一键备份',path:'\\chrome\\local\\BackupProfile.bat', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACsElEQVR4Xn2TS2hVRxzGf/+ZOffOPefemIbGt31cbLZqSx8ujKYJ7rJRUkpKEVy56UZaiuKiK8Gt4CILF0rBBDGBipKNS9FFoqklbZGSNNUS8Xqbt9eYe2acc1RcBPvBd2bO95/Hbw5z5MKVqzjnPvHen3HedeNZLwEl6oaI/KiUGgeQV1Zh8kAURWMdH3V07/30C7r2d3Gg88Br5+9ZntWzcdl4AYwCqz1yfmjE79n1MXgIBPj1BMhLAhCYuHcHa7QkBvrvxpiAzoc7tjK3uMT8wiIuTXmDCAhordmwoUJb8OS9cRLt+XYiocV4jCjh9tg4O6sfsHVzO0nJIkBRC0YJCKw2VsPiS0xO3KFs4Juwc5JPJliEjOLvmYcUoiLWFmlNYk7d/JfLv82CJzcioBSYIrFZ800RjKh5IwhaKYzWaB1ao7HBlycfcev7Xp43HZ3bDG8EN2dT4oLm4LnRVjX3X/3a73/e51GtxvLKCkoElaMLRUnp+nma+twCg8NXM+f9zotTaNfEOY+JosJqf18ff01NMzv7mJmZf1iKiwDUGo5NZU265vh87z6ArJ9ntWcpCJikXD40NvFr/hGr1fcplyxWA9d/Yb6RsjE2jM6ssn+zAWD0YTPPFhoOBRgE0jRlavoBxUKBkrVsbEkQYLHpabOagftNzv7RxOOxWkKmWAgkOYEgIILRCq00KrRKMgsrzx0tRUV/1fDV7nbAMXi3xqVpF2oeAdRcvT78pP6E5cZTUucw2gRrRAnPnFApRfS8Zzlx8icePF7my20FKtaEGghgjh87evzrI0dH9nX1fFeK488En9+0SJcQ0Wwp23ADC2x5t8ymVov2ayEzIDqnzP/GI4d7Y2A7UOGVKj8MnS5VWg4672l6hRfBO494h1EQKcEIS8LbVQXe4f+VvgDxAgJThZVz8QAAAABJRU5ErkJggg=='},
            ],
            //定义firefox的功能
            configs: [
                //常用功能
                {name: '打开文件',subdir: '常用功能',command: "BrowserOpenFileWindow();",image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAv0lEQVQ4jc2TIQ7CQBBFe6iKymaDrOglSLCEO1TUIZpWrMVxAVA1YDE4ktWtILRd9tuPAQJhW9gqJnlu5s2I+R4AGmMOWuvQG1MAuFjPqWpFAM54ABikPifLkHmZEQCllBRCfOVN8CAuIu5PO+pOs7m0vfQKgtTnbDWlMYZt07kJ4iLi9rih1tfB7VZBXmasztXg1l6BqhW79rdBqyBJEqfhD4EQ4g8EY3gKbNiara/8mgkXgTVUTqfbBE4pvNcNewXq3i7Rq+4AAAAASUVORK5CYII='},
                {name: '保存网页',subdir: '常用功能',command: "saveBrowser(gBrowser.selectedBrowser);", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH3gQGCSkYbPAS0QAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAALRJREFUOE/Nk8sKwjAURAsFwY0rEXz8lL/uH7hz1w8QH3NiplwvzcLqwoHTm2TCJE3TTurFQWzFrkLb0I/+RizEKMyLeIh75ZbAo54E/lEsRRHJTECuWdH3AoSUnRDAALrWmpV9KmFrOnMCEGN7GjEgbjHiMapFn/N7C/hEYwCPnwXwCoM4N8DzF5kMaB1ilOf8UQD3+6uAfJFWr2ZTMYDFSwon60s0dZFM9JlfduDfeQZd/wS3sV44I2/dIQAAAABJRU5ErkJggg==" },                
                {name: '隐私浏览', subdir: '常用功能',command: "OpenBrowserWindow({private: true});",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAyUlEQVQ4je3RIUzDQBjF8V9CMotEoTCYufopBBqLx1ZOYiZn0JVIVC0WXTuJm6mqmpmY6Dt2CYIESXjJ9a7/vn7fvTv+hJ6wRocPTNhnfg+fcMCA1/gfsIIjtmgLiC5SfIPrsCZsiz6F58cvNcInbgJKhBHPlXEd3xgPLLGTnPeBh2T7qh7tMz/GI76+VH+p4JBd1NHK+1A16Mzn5iod7n4KXGmVfy4LaALawAVus7s260W+tYn3reHS+Wom8wF1Gbtkn/AW77+iE6SaONczlmqVAAAAAElFTkSuQmCC" }, 
                {name: '安全模式',subdir: '常用功能',command: "safeModeRestart();", image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAiElEQVQ4je3SwQ3CMAxA0SfEBgwRdsiJVboIXDtVOdAdGILOEA5YqAVUlJYjX4rkyPm2E4UHHUrl6owo6imwWSBO2K6c4qt8xGnOWX2Ff4EfFjijqfCacJ4FDsi4IM2IKc7kcN7IuKKN/fgjtZHLY+H1DXrsMeAWHVPEQ+T6mQkn7GLcPuKP3AFx9yRXZKxe2QAAAABJRU5ErkJggg=='},            
                {name: 'Cookie',subdir: '常用功能',command: "window.open('chrome://browser/content/preferences/siteDataSettings.xul', 'Browser:Cookies', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAlUlEQVQ4jcWSQQrDIBBFJ6EnKC7iokjdiTcOzAmCB8iiniL3+d2IMSagqQU/KA7634yjRL01EBFaIS0AjGnEzkNqC6kt2PlqcDwolEGIEdZF7+NukkTDaZOdh1AGQpnaKyBO7Dymt42mrA+4GEdAMIPXDbxuICJIbUtV7IDny5yyJI0sVzAvH+SvUNGHHfCj8Jev3FdfBE9YlSEhiGUAAAAASUVORK5CYII=" },
                {name: '证书管理',subdir: '常用功能',command: "window.open('chrome://pippki/content/certManager.xul', 'mozilla:certmanager', 'chrome,resizable=yes,all,width=830,height=400');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAFJSURBVDhPrZOxSsRAFEUzmxmIwhrBNewXqNWCxWJKhf0Ev0C0E8HWRqwtRPBLrP0UG3GxtFMWXYjnZmdHJ4lWXjhM8t59b14mSfJfqmDexBgT6MirJii6mUz2DazAql+NT/1UdwPMPWvtDKYiTdNnQWpn4QhqN1Ax9AeDjXGWZaeMfkL42LMtjyQfihtoTHacw7tg17dfeNUmrK0GetZcSej5eCTFfT6PJmBUNdCBdRUfwC2es+Gw2FKxfMRaDTRBs/gcZlBZm1bO2UffRL5Wg+arcvAEdTHnUq941VSKzwDKBhZ4nd/F3Is7GPnroE+IvjR2unLOPTSKP2APpqCabukZoV8UmyM1ISTzC1wo/6eWxZCX5XidSS4J78IhHMkjkW9/3gpC+AfyfE0HqXGv4R5uIPh0HeSDFpxftYNIa8NCdXzpS5Ik+QIDqX6cveUBEAAAAABJRU5ErkJggg==" },
                {name: '密码管理',subdir: '常用功能',command: "window.open('chrome://passwordmgr/content/passwordManager.xul', 'Toolkit:PasswordManager', 'chrome,resizable=yes');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAz1BMVEUAAAAAAAAAAAAAAAAAAABEREBEREBEREAAAAAAAABEREBEREBEREBEREBEREAABwcBGiMEHCQHHyk4ODQAAAAAERgEW3sAFyABAQEEaY0AWHgAGiMJCQkEQVYAGiMGExgEhbMAHSgHGCAEWXgANUkANEYAZYsAEBYACAgAAAAAAAAAAAAAAAAKLz4EWHcFBQUDFRwAJjMAFh4ADxQAAAAEBAMEBAQBAQEEeKMEXHsEtPQEXHwAXoAEtfUAuv4AXX8As/QAu/8Ad6ICAgIAhbR1ngrjAAAANHRSTlMAPsTFOwEEBXk9CQoCDQ8jw9ubCxHu/tp2+P2MX/LWqvXAmfDo9/rxHx5MbAdp8ITd76zPMd9xLAAAAKNJREFUGFdFzLtuwlAQhOF/9gKNJShMRRMJyV2ak7z/E1iipkibCiqiCAnZh+LYyVb7aXZWUuF/zpLNAClVE/VhVgAy0ysARZ8AUm3Gg5FOqvUHoJvfrfUXSwSZi3eSNAVr3uukL43Geh9hNvjRqM/Wj3D3wYP6bP9ccuTB4oOO35K2wZ9/U9JFNkOnN+39PkIqjMLuqv62BzInIDfbTRY+2vYCMAwteRZBCIsAAAAASUVORK5CYII=" },
                {name: '清除痕迹',subdir: '常用功能',command: "window.open('chrome://browser/content/sanitize.xul', 'Toolkit:SanitizeDialog', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAb1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt6r1GAAAAJHRSTlMAzVQUwp9BDPLTp3dwPDUsGPvn39vHtauPh35sZlxMJB736yg/5R5gAAAAhklEQVQY01WPVxLDMAhEJatb1b07TsL9z5goGmckPoB5DAuL7InKoE1VAkLBlESMsKKD8QzVMDagLpITaB3u/mIPCdJRExg+Eqjgyac1Tli/RRDaap5jcxIv02k9/WoY6J6WNPsmvyGLb92BI4H2HrsbvJWovegyF2a5XrhwpTS2hSW+pNc/dQcGVNn7bGYAAAAASUVORK5CYII=" },
                {name: '更新历史',subdir: '常用功能',command: "window.open('chrome://mozapps/content/update/history.xul', 'Update:History', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABNVBMVEUAAAAAAAA2Rks4R0o3SEo2R0s/Pz8Af382R0k1Rkg3Rko2SEo2SEguRUU3R0o3SEo3SEg3REk3RkU3R0s3SEk3SEo3R0g3REtEREA5Rko3SEo2SEtEREBEREBEREA3Rko1SEo8S0pEREAfZGI1R0c1Rkg4SEhEREA3R0g4Rkg6RkVEREAajZYbjpkZmZk4RUg3RkkbjZkbjJUcipIdiZEajZYbjpcZjZcajppHR0Q3Rkg3SEoci5MajpcbjJdPT003SEo2R0kajZgajpgcjY03SEg3R0o3R0k2RkovT08zMzM2Rkk3SEg1SEo1Rkk3Rks1SEk2RkozREQzTEw1Rko4SEg4R0k7RUQ6Skk2SEg3R0o1SEo3Rko0S0skJCI4SEo4R0g1SEo3SEo1SEs4Rks3SEobjplNLMNvAAAAZXRSTlMAAS9WXD0IAmvg8YwOC7mzVichQZj63SUBOvRWDQ8C498SBAQr9pwFjvkWCaaDCjlTU8HDw8Dr41YQ/XfCwOEF/naifwkuUov4EAWVPPdaM+XcDwq1vF8vIEad+9kiAmve7YVRNgFv0LsAAADHSURBVBhXY2QAAUYw+AVmAjE7I2MMkFrKyPgFLMDLGL6KEQpeSgAFJEGs/0yPGJhkQSygWuWfYD4DgwpEQIIFymeQ4wIJSAh/+i/AyHgJyP8nbHaa0RBsmMFFxhNy/xhlgExDRq6fHD8Nbnx++4/xvzJIi9K3FwxOjIy3gHwmdYWHQDNegM0D8R+5Q6z12gbluzIzbwUK+DAyXgDz/YHyx4ACwYyCH2BO380F0hLHyMgKpP4wruYW/gNyKRfrbyb7BYnPtoFYANlFO1r+sFJfAAAAAElFTkSuQmCC" },
 
                //选项设置
                {name: '火狐设置',subdir: '选项设置',command: "openPreferences();",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABwklEQVQ4jZ1UwUoDQQxd6B8IQr/BUie5ePUkFHryUPwbwZMgVIplJxEE7z0LfkNB8FoQCoLgtaVFWHeSeqiz7M7OWjWQy2TzkrxkX5JEDDk7ABJrSC7DmCG5BBKLnB3EcutgN6t9YM2QdQOsGdr8uIjZ/LgSu1nt/woUSKfIuvEOrM/A+lx5I53+CiwZTFpA+lZOjjmQviWDSSuK0ble7hVjsZzXklkzP2rZjZWLGgZwfoKsCyCdIulLFUhuu+Os65O646wLLLcVYNKXb4oWwPlJAqwPsZEMudMmVgy50ygNrA8JkNwjq6tWlfHuxckoAHRAcr+tmLqzcqDMaZN1rpd75UZM6s6CijrznOwC8+Y5B9JZfQTW+b8BWeeVQEDy/0b2SwQSG94YkIx2AYZLAdYMSGyCrI+RE3BgXb8RzLp+7TK2/pgcpnkPSFdI+oSsr9UPZNhJ1+1izHTdRpZh0NkcSZ+AdHWY5r0tuV41BpNW5L4234Vew3cgGfn/uVl5BpMWkr7vEgckfW8UhzrhgXyRzoo7/at8ddJ1G0k/is2VlgPW9YuLIP0o8/ujGfo8MlbukGVY657lyli5M/R5FMv9AqdiOHRwiFTLAAAAAElFTkSuQmCC"}, 
                {name: '系统参数',subdir: '选项设置',command: "openTrustedLinkIn('about:config', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACJklEQVQ4jY2TPWtUQRSGZ/Z+7lfiEtFiwSBoYeUPEAt/gIVIKgkiKUJYZEkhIkEsJO7unTlf9+5mXUKQrURFJFUqkSDBIqRIkSqFpZVVsBCLsdm7CWRDUgw8MDPPnPdwRjnn9HkrsNgMO3Rr0p4677IPtKIMOpXAr1xSZr56YYFnsa8MOmXwqEh0xzN4Xxk8CoEfXkig5j56PhD5iHeLiHWV4J9RRX9j250dC1SaRjPYr89gv35tba02idVgEAQoT1QC/wLDi+MKLnc61chyzwfajYmHEconH2g3RmnFJK88oGEAAhWQe845PSVyc/zwjTSNyiytIqVfqpKZIvIzz9K70OLrEslLZeC3Muh8izsFoIZqt6dja2fHgsDSvLa0qS1tliklz+KOMug8S9+LIJ2TggB4USfwQyX4MzbmunNOK9/y6qjLrsLSOymocLrqW/rmW96pUPY0BNnIz3qGPjvntIosL2sDh9rAYS3tLsXAwxDlQ5WzhTKnz0skGyWSlQhlEFhsFgy+1wb3qm+6M845rWKUx57BLc/gVonSpZyrkhmV4O7oxa8h8DAEnlODQVBrt6fHPTgZIULOjuNkmTa4lwumJGuGlh6dmpPISrNg8KBg8KBEspLzJenOxyDrMaXDmnQbEch6AahxShAgL2hD29rQdhGlecy8PGaWVh7hlOCsCJHlXs5lllZVug8mjnoA1NAJ7usE92OQF5P4Svr29ll/5T/rXhzDBSBwAgAAAABJRU5ErkJggg=='},
                {name: '命令列表', subdir: '选项设置',command:"openTrustedLinkIn('about:about', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAzUlEQVQ4jaXSIU7EQBSA4S8j+sIFVpD0HIi9wC6CM+0FMFUILA7DDRAIVB0KheoFMKuK2OlmSLZTGl4ymWTe+/95M3lUIqV0SCkdajVVuGmaD/SrJQW8yWtRsouIISLGiBgLeIoN+ikfEQN252w+2K5ocpuZs2CcKbxChx53ZeIXUxF0OOIFDW7XCnq84QnPeF8jaDFkyWvupPuroMUnvgrJvdOfLAomeMh7e+ltNcEjvmvwkuAGD7iegy8J/jdI2JejvLScPne/4sL5+AHddkk+mzKKaQAAAABJRU5ErkJggg=="}, 
                {name: '内存占用',subdir: '选项设置',command:"openTrustedLinkIn('about:memory', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image :"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH3gweFgQ6Kx3ZJgAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAAVZJREFUOE+FkztLw1AYhjNY/0DBuhjxUq2ggqNihVaJxg5ODv4J/S2Ks4MgREFF0EaqOAjt3mo2hQyS0YKXpRaO71tP9ORgkg8eaHK+5+25xVDr2stmgA0cEICnujtU+FwrH36slxxggX7ZHi0058AeaAMh8etVBNilO4gCtMG2VP4KjZQvFFEPuJUB/nulXBypieKkKwZDmdPmP+uyGsAZvHWt+Y3hG7EMOQC7oI8BXLM67UhA49Kcwh5cdVYXdyDMAg8I8AosBnDD/pOJ38AMOitLlc2Dx8KEK+6lHHLCgBdNUvFrD1mTSx11xVbeFefgVHIG9hnQ1SQVhi9UvQHzqDk37rRmxo5b07/wOS3gCzDEj+E5bQlpBGmbmIbDgKRjTIKOzYCki5QEnUx4G+OuchzszfXksPgC6B+TDsfYE5XDwoD6OfN0eMSEv/mOYz/T7pVhfAMlNSjBzVUmcwAAAABJRU5ErkJggg=="},
                {name: '插件信息',subdir: '选项设置',command: "openTrustedLinkIn('about:plugins', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAR0lEQVQ4jWP49u3bf0oww7dv3/47OTlhxfjkYPL0MwDZ2XgNIMbfBA3A5yKKDSAYBjQ3gGA6GBxeICYKiUpIxLhokBhACQYASZecRxjAXUYAAAAASUVORK5CYII="},
                {name: '缓存信息',subdir: '选项设置',command: "openTrustedLinkIn('about:cache', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABs0lEQVQ4jaWTP2sUURTFXxGSzi+Q+BHUQnSZ95SkHdh2miyMe+9JYZPNksZiTQimFCz8RzJ3ujBPsJ2vIGyRIrFM8ZgupU0iDhn02rgblt11BQ+c8v4e591zjTHGbByYpY601rrH0b1n0nqYSut+R1prGwdmySwSZdEbFnvDudMpi2soc+/+DhB7QmIHlLt9lmivm9kXLNEe5W6fxA5I7EnnbevOXMDMl3OnLE+UD9uK/qYy8zWAKwBDIuolSbJ8CxDXTA1/XFf0Ouq91xCC1nWtdV1rCEG99wrgLE3TVWOMMd3M7rJE/W5mdymzL+no6Ws8Ty/LstR5KstSmfk8juOV2whib1jcN37V/l4UxcQAgClIURTKzNtTf4D+poYQFgJCCApgaEjsgHP3mcQNWdwFg341TbMQ0DSNAqgN5e4HiRtybj+R2GNs8c9ZgJFHqutaAVz9U4RZGkdgcV8mVnnYVu/9QoD3XomoZ0a3QB8e3eWjxw/S9+sRtroXi9YI4Gscxysz25mm6SqAM++9VlU1LlJVVeq9V2Y+HxdpnpIkWQaww8ynzHz9x6cAdiaq/L/6DbRoFO5cdXo+AAAAAElFTkSuQmCC"},
                {name: '故障排除', subdir: '选项设置',command: "openTrustedLinkIn('about:support', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACHklEQVQ4jZWTv2siQRTH34zZrPtDd7JRg8IiyB7YmCZVqitTWoUUIlcGsU5xhYRDLFIEi/wpB4EjXWTezC52V6aUFEcIxxUSgsi7xt1MTHNXfJvhfT+89533gIiYFqKfCjFKKpWLf5EWYqSC4IyIGGgh+ijEZyJimdJGI1KuO0DbnqJlTdF1z+fNZt2sScLwJAmCU0iFGGWPPw4PPeU4NxJghQC0pVflONe3cWznECEuIalULnKzZc0QgLBQWCDAOjNLgJXk/BEBCC3rLoO8AyjHuUEAwp2dn7pWO9C+P0SAtQRYqXK5l4ZhhJw/IAApx7l6B0gbjUgCrLBQWOha7SBrUfv+UJXLvTybMIwk50+SsZf7OK7mAOW6g027a+37QzNMMzwslb7mY3lePwegZU2NsNbK9wdpoxEhY0vJ2O9Zp7NnmhGAVLE4eQPY9tQMTJXLvXmzWUfG/kjOf81brSDLxACM3wCue26as5Znnc7evNUKzEwyiDZHmDebdQR4lZw/pmEYmTMr3x/kgGr1E3L+jIwtk3Z7f/sbrxGAkPOHNAwjY+a18v3BxrxAAFKuO/6wB3h87KBl3SEASc6ftrZwjZw/IwDh7u73+dGRlQO0scq3cWwrx7mSAC8fVpmxpXLdcWbeHOE3UEFwloThiXko93FcVZ73RRaLE1UsTrTn9ZN2e9+s0UJ0danUBSJiSRCcJkJc/o+0EF0iYn8BuVi9441UyUkAAAAASUVORK5CYII="},
                {name: '附件调试',subdir: '选项设置',command: "openTrustedLinkIn('about:debugging', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4T6XTvUpDQRDF8d/trSImrxDwQcQ+BoQUamPsLWwCKVKksUtAGy0UG59AfA4Lq9QKCqlSKhtGuNwkFzZuM/vB+bNzOFP45ypK+n7sb2ruOhjF+wDPZcAwHv5qOlbv3nCJBabYzwW8o4s9TNDOBRzgEUl3jNdcwEpbdYAj3IUvZ8mwikdLf+oAX2iE6Bu7uYAPNEP0iVYuILVwH6LTbVpYl4ONJh7iAT/o4WXdd+tamOEEO7hOAckFpIheYI6nFNFcwMqQBOA86m1pwK5iP67mYKvB/gVnkjkRXyf00gAAAABJRU5ErkJggg=="},
                //火狐功能
                {name: '管理书签', command: "PlacesCommandHook.showPlacesOrganizer('AllBookmarks');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAATElEQVQ4jWNgGGzgPxZMkmZSxAnaTAzGsOEomoKjxLj6P5oAKWEwXA04ysDAYMWACFCSDJjFwMDADmWzQ/kkGUAqoI4BMAbZKZEiAAA7FFJDJW1v5AAAAABJRU5ErkJggg==" },
                {name: '历史记录', command: "PlacesCommandHook.showPlacesOrganizer('History');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4jbXTLVYDMRQF4E9VdANdQA1mXN0sg0VgkcgxyJpqloDCsodYJA5ThRqDQORNG6bJ8HMO95yIebm5k3vfC/+ADe6RMMZKGGJvEdc44oAe61h91I7BaR5+wy6+E65mnC44FyKbUO+K2hNuKj/qgvvFzoD9jHiHh8Zt93JOJyTZZ4kerw2BPs6cMGI1I62ivq0ITHuLAmRrI55x65zRGu8lsWZhwlYO87G49oWFQe7zT3EwC7HWxhaqbeQ8SEsizUEqRf48yhOmx/SCDzntFLVvH9Ov8QntGzLFRkqKRgAAAABJRU5ErkJggg==" },
                {name: '下载管理',command: "BrowserDownloadsUI();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAbklEQVQ4jWNgoDH4PzQNkMVhgCy6QmxAmYGB4TUDA4M9mgH2UHFlYgyBKbaHGoDMJxrANP0nRzMMBEMNCCZHMwyYEKvQk4GB4RnURkL4GVQ9CnjGwMBgTaRl1lD1KIBQgvmPpgZDPcUuoDgMyAYA/mQv97JO38EAAAAASUVORK5CYII="},
                {name: '附加组件',command: "BrowserOpenAddonsMgr();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAOVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAVDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADMzdu6AAAAEnRSTlMAfzpDTCEK38+9s6iFeGqNVjKYYQrKAAAAcElEQVQY02WOWw6FIAxEp7wRQe3+F3t7sUUTz8cknNBOMUmNS8SLURNtb7ETfLGH5z84JPwU7KA4vgUWKpiWKDXKx5iDii30rB1Gkqk++LKRozbJ5mGCRtLVbj+flnkcZVrCyfoTke2wwELHJSn1X34e5wRDvcBIqAAAAABJRU5ErkJggg==" },                
                {name: '重新启动',command: "Services.appinfo.invalidateCachesOnRestart() || BrowserUtils.restartApplication();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAq0lEQVQ4ja2SvQ3DIBCFv44qXXrXbrMDK2QFhqD2FhmAFbyD9/AILknBU2TH/FnJkxDScd9xBw/aGoFXR15RBlgA3wsMwCRo1T4BEbAt2AMb4FTIaPcq4FrwfIfbV3wU/KzBD2DLwAiswgCh1V5LkTTrTwXMhfzTSFc6GEhfe9BM/xs4ki8OspR/4SOdrxS6DeR9sIdnKpY2KpJzolP81HpOVjfF3Qoks/1fb/8xJcvKSjYUAAAAAElFTkSuQmCC" },
                {name: '关于火狐',command: "openAboutDialog();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABCklEQVQ4ja2TPVICQRCFO9KADnFmZ/vNO4IQEOw98ERYRcxyJTe2EI9AtpBpsJpgslgr7I+FvrCn3tfzeqZF/ltpmo5jjEsAW5IVyQrAxswWaZqOe80A5gBKkrn3PhMRFRH13mckcwB7APM+887Mpl0NzGwKYHcBUdU7APtzM8kixvjUrDnnJgBKVXVN8oLk+rwjyYJk0VJfxxiXzetv6sy/kvc+A7BtEisRuWnpdCR5bGHckvz4C0ABvA1G6ALUEV6+Cz1DbAWQzH8MUVUdgNI5NxkCALi/eMb64PqPdFKSJA8ADma2CiHMRGQkIqMQwszMVgAOneaTGsv0SvITwDvJZzN7HFyma/QFJdZSMcjINRYAAAAASUVORK5CYII=" },
            ]
        },
    _externalAppPopup: null,
    _isready: false,
 
    init: function() {
        this.handleRelativePath(this.toolbar.apps);
        const XULNS = 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul';
        try {
          CustomizableUI.createWidget({
            id: "AppMenuButton",
            type: "custom",
            defaultArea: CustomizableUI.AREA_TABSTRIP,
            onBuild: function(aDocument) {
              let toolbarbutton = aDocument.createElementNS(XULNS, "toolbarbutton");
              let attributes = {
                id: "AppMenuButton",
                class: "chromeclass-toolbar-additional",
                type: "menu",
                onclick: "event.preventDefault();event.stopPropagation();",
                label: "AppButton",
                tooltiptext: "Firefox Menü",
                image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAABUElEQVQ4y83Vv0vWURQG8M/RFwmEytaiwdFVEOzHEEQ0SE01uAoNYvQH1FiDNDS3FPQvNEUYTkFUQ+Bgg7UILSbvpEHU03JdwuH7zVfoTJd7D885z7nPfS5IMpnkbJJyxKgkC3iMIXZxq6r2WqE7uNgRK1irJJu4WlXbSVbxpaqeJjmJD1juCDiG5wNMYKdtfsPpth7HD7xr1bvEzwGe4WWSj7iBa+1wiE+ty66UX2mzmk+ymOSM/zKSnE9yIcnEKGSzhLvYxDSuV9VuK/QQl3vM8HUl2cJsVQ2T3MdeVT1JcgpvcbOHbN6MNeQDWdQhSV1fz2/kgPIKPh9C+REu9aE88ks5NtmMTNiV5AGu4D0W2gy3m5W9wFwPvPVK8hUzVbWf5B5OVNVqkims97CvwsagOcoU9nEOWy3hFyYx38Ntxv822O+4/Y8GC2tG/QX8ARvjteeHEO4UAAAAAElFTkSuQmCC"
              };
              for (let a in attributes)
                toolbarbutton.setAttribute(a, attributes[a]);
              return toolbarbutton;
            }
          });
        } catch(e) { };
 
        var ExternalAppBtn = document.getElementById("AppMenuButton");
        var ExternalAppPopup = document.createElementNS(XULNS, 'menupopup');
        ExternalAppPopup.setAttribute('onpopupshowing', 'event.stopPropagation();Appmenu.onpopupshowing();');
        this._externalAppPopup = ExternalAppPopup;
        ExternalAppBtn.appendChild(ExternalAppPopup);
    },
 
    onpopupshowing: function() {
        if (this._isready) return;
        if (this._externalAppPopup === null) return;
        var ExternalAppPopup = this._externalAppPopup;
        for (var i = 0; i < this.toolbar.subdirs.length; i++) {
            if (this.toolbar.subdirs[i].name == 'separator') {
                ExternalAppPopup.appendChild(document.createXULElement('menuseparator'));
            } else {
                var subDirItem = document.createXULElement('menu');
                var subDirItemPopup = subDirItem.appendChild(document.createXULElement('menupopup'));
                subDirItem.setAttribute('class', 'menu-iconic');
                subDirItem.setAttribute('label', this.toolbar.subdirs[i].name);
                subDirItem.setAttribute('image', this.toolbar.subdirs[i].image);
                Appmenu.subdirPopupHash[this.toolbar.subdirs[i].name] = subDirItemPopup;
                Appmenu.subdirMenuHash[this.toolbar.subdirs[i].name] = subDirItem;
                ExternalAppPopup.appendChild(subDirItem);
            }
        }
 
        for (var i = 0; i < this.toolbar.apps.length; i++) {
            var appsItems;
            if (this.toolbar.apps[i].name == 'separator') {
                appsItems = document.createXULElement('menuseparator');
            } else {
                appsItems = document.createXULElement('menuitem');
                appsItems.setAttribute('class', 'menuitem-iconic');
                appsItems.setAttribute('label', this.toolbar.apps[i].name);
                appsItems.setAttribute('image', this.toolbar.apps[i].image);
                appsItems.setAttribute('oncommand', "Appmenu.exec(this.path, this.args);");
                appsItems.setAttribute('tooltiptext', this.toolbar.apps[i].name);
                appsItems.path = this.toolbar.apps[i].path;
                appsItems.args = this.toolbar.apps[i].args;
            }
            if (this.toolbar.apps[i].subdir && Appmenu.subdirPopupHash[this.toolbar.apps[i].subdir]) Appmenu.subdirPopupHash[this.toolbar.apps[i].subdir].appendChild(appsItems);
            else ExternalAppPopup.appendChild(appsItems);
        }
 
        for (var i = 0; i < this.toolbar.configs.length; i++) {
            var configItems;
            if (this.toolbar.configs[i].name == 'separator') {
                configItems = document.createXULElement('menuseparator');
            } else {
                configItems = document.createXULElement('menuitem');
                configItems.setAttribute('class', 'menuitem-iconic');
                configItems.setAttribute('label', this.toolbar.configs[i].name);
                configItems.setAttribute('image', this.toolbar.configs[i].image);
                configItems.setAttribute('oncommand', this.toolbar.configs[i].command);
                configItems.setAttribute('tooltiptext', this.toolbar.configs[i].name);
            }
            if (this.toolbar.configs[i].subdir && Appmenu.subdirPopupHash[this.toolbar.configs[i].subdir]) Appmenu.subdirPopupHash[this.toolbar.configs[i].subdir].appendChild(configItems);
            else ExternalAppPopup.appendChild(configItems);
        }
 
        if (this.autohideEmptySubDirs) {
            for (let i = 0; i < Appmenu.subdirPopupHash.length; i++) {
                if (Appmenu.subdirPopupHash[i].hasChildNodes()) {
                    continue;
                } else {
                    Appmenu.subdirMenuHash[i].setAttribute("hidden", "true");
                }
            }
        }
 
        if (this.moveSubDirstoBottom) {
            let i = ExternalAppPopup.childNodes.length;
            while (ExternalAppPopup.firstChild.getAttribute('class') != 'menuitem-iconic' && i--!==0) {
                ExternalAppPopup.appendChild(ExternalAppPopup.firstChild);
            }
        }
        this._isready = true;
    },
 
    handleRelativePath: function(apps) {
        for (var i = 0; i < apps.length; i++) {
            if (apps[i].path) {
                apps[i].path = apps[i].path.replace(/\//g, '\\').toLocaleLowerCase();
                var ffdir = Components.classes['@mozilla.org/file/directory_service;1'].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path;
                if (/^(\\)/.test(apps[i].path)) {
                    apps[i].path = ffdir + apps[i].path;
                }
            }
        }
    },
 
    exec: function(path, args) {
        args = args || [];
        var args_t = args.slice(0);
        for (var i = 0; i < args_t.length; i++) {
            args_t[i] = args_t[i].replace(/%u/g, gBrowser.currentURI.spec);
        }
 
        var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile);
        file.initWithPath(path);
        if (!file.exists()) {
            Cu.reportError('Datei nicht gefunden: ' + path);
            return;
        }
 
        if (!file.isExecutable()) {
            file.launch();
        } else {
            var process = Cc['@mozilla.org/process/util;1'].createInstance(Ci.nsIProcess);
            process.init(file);
            process.run(false, args_t, args_t.length);
        }
    },
};
 
if location.href.startsWith('chrome://browser/content/browser.x')
  Appmenu.init();
lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-08-20
  • 发帖数471
  • 经验235枚
  • 威望0点
  • 贡献值72点
  • 好评度71点
  • 社区居民
12楼#
发布于:2019-05-22 15:10
333ywb:这个我没有改的,我都是改像'menu''menuitem'  'menuseparator' "AppMenuButton"  等前面的 createXULElement



下面是我自己改的2楼的,试了下还是不行
// ==UserSc...
回到原帖
// ==UserScript==
// @name           Appmenu.uc.js
// @namespace      Appmenu@gmail.com
// @description    Basiert auf dem Script externalFuncButtonM.uc.js - Wiederherstellung der Orangenen FF-Menü Schaltfläche
// @include        main
// @version        update for Firefox 62 by aborix + Movable Version
// @author         defpt
// @charset        UTF-8
// @version        v2018.09.05
// ==/UserScript==
  
var Appmenu = {
        autohideEmptySubDirs: true,
        //自动隐藏没有一个子项目的子目录菜单
        moveSubDirstoBottom: false,
        //把主菜单下的子目录移动到最下面
        subdirPopupHash: [],
        subdirMenuHash: [],
        toolbar: {
            //定义主菜单下子目录,加{name: 'separator'}建立分隔线
            subdirs: [
                {name: '常用功能', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAMFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABaPxwLAAAAD3RSTlMA29RuQQvntwZ7SRvkwcA+P2vZAAAARUlEQVQI12PABpr1P1mAaG5x15DCDUBG4wQGBk4BIMMcJHwZiFUYlmUxOAEZXxnyvzHEwxkQqVNAKajix3DtcAMRVmACAMdOFKcCHt83AAAAAElFTkSuQmCC"},
                {name: '越狱工具', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4jbWRIRKDMBREn8NhOoPrDLoqtifgAnG9AUfgAJU9SS2uAoOt6gWqIiqjqlrBMhNChoLozjA/2ewu/yfwRxRAC3jVYmtAD5yBXLXfYj4BndZ71U78KtwAK9NLf7fiV8HLMLY9Bvg1ZgM8gSoKqMSbJXMFOOACZDKOI2TinXQzWB0eI76M9kfpbBzgf7UXwJC4j0+w3iXCjPiUfkI0DHM7htlbhud04pulgLsMJXBQmw/VUl8r3SzgDdTBPpdxDMqDs1r6CeLbh+HZvOoa/QwZcFVN4gv6nzt18jn5zAAAAABJRU5ErkJggg=="},
                {name: '文件目录', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAbUlEQVQ4je2Syw2AIBAFJ1ZjD1RgJbRhtVSBWS/rj2UjqEcn4fKSN7wQ4CMmIAFyOknzJhIQiixo3iwYK7k4x6zzBB5m3Wb1bqwtkFJQvsHdAiPoRQCGB8ULv+AQLEDs6EXt7MxApv0jZe28ZwV+VzP4VojXiwAAAABJRU5ErkJggg=="},   
                {name: '选项设置', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAkElEQVQ4jbWTXQ2AMAyEvzc0TAIWEIIWTMwBBhCBNni5Cw2MwPhp0mT9u7a3DX6UAVikw92iHphCcSs1yKSc02InjkAXYp18Bi6CuPOVeJJiYNS5ATIbB1k+wiSH4iWMndUlSWf5vM6BWBMW7RTsJJ+l3dnvAUorzDUrGOQxifDBNb5+SAZ5/JRLo1Z/pmpZAR6aP0H2Y7uIAAAAAElFTkSuQmCC"},      
                {name: '外部打开', image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAV1BMVEUAAAAbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxtGnksMAAAAHXRSTlMAI/i59cOKK/3x6+bVrGs34H7Lu7OGeWRd3dq0HD+xOPEAAAB5SURBVBjTjU5LFoQgDEsLBQRF0HGc3/3POWJ9btzYTZO8pgluzuiGwY0nXRP3xvScXsqNXRQ4frQliUAzs9lW3JRnR8BcvC8CkM3oMgD2gA8AaoRdD4EC2j1qs8ibfp9JLZBCIAlhak/NHmOrxi72qyDHs9il+p35AyMzBBChpCm+AAAAAElFTkSuQmCC"}
            ],
            //下面定义子菜单功能
            apps: [
                //调用其它浏览器打开
                {name: 'IE浏览器',path: 'C:\\Program Files\\Internet Explorer\\iexplore.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH3AQJFykNAj7JHQAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAAiZJREFUOE+Nkk9IlEEYxmdXt8x1dd3CKJAQMoVVDAs6BBEdWwoPHayEDq1B4klEiMBDXergpXMdggpiv/0bimSHOqToIfPsN7PrkiCC0h8j3TT7zdcsDVsHX3j4ZuZ5n2eemfnEXurYeCFwICU7AkkZBw/2JeXdmpSMGvrfasyq4P6kPF/tyBEwVuW4L30Jt8j3AwajYBD+Tiitmozkb0GcpXEcwYZIuLs2/I67iPhm3+yKrz6jouCkkf0pol1C+KlSaAO+xAYPI1nVSdI2IxWiJimjEAvs8K3c7E+4Uqdh5xmEPyyjEkkfHcrlI564bXLJj/A+eE/zZ92E0Amm5PGWiUIgnFH13MUAJl/LJowXudhWz6Aplw8zGUVcMORyLbeuue43RZ/+dr4uVmP6vGwAtvVlak4QJQz5qkxisIZZAryw8AwsWAY65VPPAKc+Fko2icn/sAN+GuxgkBI8RSPO72wxc32+Xn6WyzZYi4GLBrFgWp3WT9eD2xr4bu2+yquc8uJZhckF+vtBnFe40ZBRRwW3+5gokxxjrCLFW5rO8AJ1/HEH4ePa2OLn69KqWSCewWSIyREWZ20TLWBtGnxkvGmtb5DiqhcLgzkMrpuI3TTP2SaVQPyFNEMtE0tVnkHAkfcweMK7R0lxgu8t5lkaFdhC9AtsM17XR+VYsa6pot8T60IUYrGXWx1EfIV5x+FcvpZxOzGvgWFwm3TnItl8yMhMCfEbt0DTTmnmDkAAAAAASUVORK5CYII='},
                {name: 'Chrome',path: 'D:\\Program Files\\Chrome\\Chrome.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADg0lEQVQ4jXXTf1CTdRwH8K/lXWwccSecCgJCaNsEIVi3avPHfvnsefY8Y10qnl50V10ShXddlF39EdwxSkrUODnxVDLRnHS4wgXbqISM/QFM4MHhbmqw7YFBTIb9OCeO3v3BnaV3vf9+f153nz/ehDyS8G5DXuQV84H58l3+6Nu7o9E3d83PvfrSrUgp0zhlVD/7aP9BxrOzEwSt6vAMp/ljdieNyB4OkbISRPZwmN1JY6ZEh0nd5rshpeLUdak05aHjwfR0cfCZwguCSoEpjRJhagumGTWmWTWmjWqEqc2Y0ighKBUIFRchIM1z+lIlSQ8Aa2nx4XCODMHCAoTkxRAUcgjyQggFMggbpQjlbURQWoRAbiEmMvPxa5oMN1dJz9cQ8hhRX6akZWd0sSHJ0whlSzCxXopg7jr8VsIh/HE1wrW1iHzwIqbK10DYm4XJ8rUIV2RhpjIDkU9TtIS1M3VUL4u695/HrdU5CGRkQ/ioGu19E/isZwb1PbP4ZiiIyLgFd4fFiF0T475PjEV/AuJ+cQth7cwA222E2U6jqyAbwlY9Tnf7sb15DK+d8uL1Fi92HPWiqVvA4rgBf/PLEB8VIT4qwsJwopewHUzU5GBg6OFQVZWPkYoqlH3pA1Pfj+1HPNjxhQfs5/0oOeJH2G8BeII4n4A4L8LCUFKUMDZ63uRgYHIZYby4CWdP1MB86Cqeq74CtcUNtcWNF2quQGnhEbheB4z+C8QGku8Quo0a5joZmBwMaKce7/zyFt473YeMSjtk+x3YsN+BNZV27D3hQeyGeekFXoT4SCL+dKf4iKF1WwP73RJgcjDgXBQO9TXhjcYfkb/Phrx9NpQ29KL/aiPgFWGRfwJxXozYYDLmfko7R7THtcXU19QCd2kJYB0GmF00PuyrwieXj6K2+xiqne9iYmAFMLoccV6Me55k3OldhemOLI4QQoimWd9CW2mwlxiYuhhwDhp0lw5GlxYq2zYcc+YA15YjPpKIe4PJ+L13NSa/zXG2tZHHCSGEyA+qU7c06Z1UKwXjxSWI62RAfW/Eyx1bcXtgBe57nsRf7lTc/iEDgfZct+98ZvpDe5DUq5KUDRqrplkP6gwF2kpDY6XR3rkBCz+vRMSVCcH2FG6clTjGjq9N+99VFtVu0isOqE/KD+r4iibV3Pi5ddGbX60f856UtY40S02EkGX/7f8DPn0d28pmYMIAAAAASUVORK5CYII='},
                {name: '360极速',path: 'D:\\Program Files\\360Chrome\\Chrome\\Application\\360chrome.exe', args: ['%u'],subdir: '外部打开',             image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADBElEQVQ4jXWTb0zUdRzHP7FylLPMGLOF5M5MRjGmRMj946yjQZ4e4EDJWWba1oZOZz3xQbtkaxeQRiSxUbb1Z7e5zK3WKDdxi/UARJ2eBzmyc3LccbuRccfd/f7c/V49AIRovrfXs+/79dln+3xFluTdHxL5TT61fftX2pe/dqhFI/XqoH+bmrzhViKje9T3g3uDuUs799L0neJ09uoRe4/O1l5tbNit3Lz+qop/EYE65ebw2+FH/lfe9Y2y3dGjp6u6dWzdOm+2qtP91iS/b0kx/Eqaa7XKgsitRBckHk/O0Z/iec4ePWI/pWP/bJb39iQ5Uxrnx/I4580zDDhSDFWnuVozJ3JrFz3iyZGD3/Lo7q+zh21dOrbOBVrq45wqnOL0+rv4SqY5V5bgl8oZfqtKqJddsQvXG8J2ERFxeC4+uOO0dsh6Usd6Usd6YpaGA0mOL4/Slhfj04Ipzq3tJ7K6QlVWi6oW50/oNRWdHK5bKVvCJ85W3/7c91L3TMzSoWOew+LVOPRElGO5IQLLnaQeENK5gpovaOuXkXnhSWiy+eTlyY+D1kgb1mAX5i/C2UqvRqVXY7NX4/aEwfiISvJZmRWsENSnBL14BdkXC8BVFpOa6Cfj1kgb81Re8lH+cx8bv+/jyt8hQvEA2QFBfUdIPyZohUKm5HEMy9Pg3nRXXJOd1xYLKu58QOnYUTb491F4qYrjVx7CCAjZQUE/IGimHDIb8zFsJthpHpW6ya6u+bJ54kPKgsd4brQF09Vm1g2VEvlT4JZgjAnZAUErntvf8Qy8VdMq+0O9BVXh9vGl09cMuTlyowiiORAWCAncETKND8/uv3XTrekjjatERMQW6Si2hbxTi6cf/KM6TaIc4iXwzwaYWguxPIx2k9+wrZtmb+3m/5yyI+hZaf7L02kZaTl7JtrsJ+MCrRY0JygOSFkgUU6m3/66al7z/H0/lKruKMJoSGDUc4+sGzIu0Ov7AoHGZfctzwdln4ns7o8wmgcwdvkxXhsk+0ZrKrW/YOnbfwGaHza07T0rkAAAAABJRU5ErkJggg=='},
                //越狱工具
                {name:'V2Ray',path:'\\chrome\\local\\V2Ray-windows-64\\v2rayN.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC6UlEQVQ4y1WSz2tcVRTHP/e+N+/NrzSTOjplpu2kIbGa1lpISkCXgoq6sCBRBBU3/gH6X4grF4IbUVChIrpxI4jowoj1R4lGMW1misbEpplkMvMm8+a9d+89LjJY+oWzOZzP+Z7DOar3/i/S/2gV2xlyl3Ka9MU5bhb6rH/yHTbJUEoBIAhaa+Yeu4h/8O6PZOsdxDhQgADWQckn7Q6oLDaYutTkxpUVbGpQqP89dv/exre3IySzRxkHhBpZrEG7R/j2b9DuMbt8AescrSvf41ID40myUYoP3HEONPLqPOalB3AbXfRnGwRfbzO50ePsK7O45xw3P/3hriYa1BHsBEIPUov6Yw+pl0jeuMjgzSVcvUjlneucUzWmn15Ahf4RA6j2zFtiuyMo52CYQWIh7+FOlbEXjpMuVElOF2FrQPjtLdI8rJl/aa+skY5G+CrvE7z2MDw5jb09wG5FuH8iZDNCtyPyv+4TFjRps0QyW4bE8mDUQD2Usr76O75bnkOeOoMJNXZyAjNTxGb3YBKDHSa4foLrDGHnEPaGiLW4nGL65EkMGf5eVWi9/iEmTkBAZLycVqicRhdy6Ik83vECajIPWiGJAQWlhSZ+89lF4p0e21+ukpsqEdxbJlebIKgdw6uWUKUAm6SMNrvErQ5OHKqYg/uK6LkKqrO/L8lhTLwfIYGH5DRZkhJvdYnWtuj/9BfxjV3UsZDC0mmcsTgteJcajCTDRwTtewTVCZLekN3Pr9FdaTFc38EcxOSaU1SeOUdwtsrgmxaiIf/ELMYHhhk+Mj6pE5SnMbuHDK9uEpyqUH1hgcKj02Q7EQcf/AyNMqXL81gfyAzA+BPH0qFH7eUlCvMn8JsVmAyJvrpO7+Nr+It18svnsd4dGMB3IjAOcaBDn/IjZ8gGI7rvXWXwxZ/kH58h//x5jAdiDIIgIog4fM/TRP2YNMswxmCtxRhDFqeM+oeopRPoy/czkgwTG4wxGHNU06jX+Q+RV3R35nl5KAAAAABJRU5ErkJggg=='},
                {name: 'SSD',path: '\\chrome\\local\\SSD\\ShadowsocksD.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAACXUlEQVQ4y52T4UsTcRjHv7e73e5kbTnNCLeDoRsGxmRsHoQwuAnDW2Diu8Bg4Zv+gNG79m4Lsb2rBSmGe7dXvahXI+hFIja5Fw2XDmFxKeet0tMXqd21X280DFOsLzyvnufzfR6eh4fCf0pRFIemaQH6X0HLshiHwxGdmZl5uL6+fufCICGEyeVyYiKReO71er9wHEeSyeQccxFwamoqLMvyZLVaHdva2uq0LAsul8sUBGGBOQ+cnp4OJ5PJyWq1elvTtCtOpxNtbW3Y29uD2+3+1tfXp5zVMSLL8jNBEJp2u50AIMFg8IckST9ZliUAyMDAwLuNjY3LJ0H6aNSngiDoxyBFUaS/v/9zKpVaa29vbwEgNE2TRCLxBACYWq3GlkqlG7Is31tZWRnXNO2qaZoAALvdjlAotByLxT4Wi8WxnZ0dCgB4nider3cZAJjV1dWhpaWlR4uLixHDMKjjiXieJ4ODg69GRkbeFAqFB81m03mcc7lcRiAQ+AAAjM/nW4jH43e7urqker1+S1VV8fDw0CmK4tzo6OjLfD7/WFXVayf35PF4Pg0PDzdOLbDRaPDZbDaaTqfHVVXtnJiYKHR0dFg0TRMABACx2WwkHo+/IIRQAPDHGf1+/z6ACoBKKpXiJEl6LQjCe0VRIqqqDum6HjBNk+/u7q5QFEVOGZzU5uame3Z2NsNxnJ7JZO4fHBx8L5fLYV3Xb4ZCobfz8/M416DValG7u7tulmXXRFH8yrLsPoDyUfzWmQaGYdii0Witt7c3ewT/VdQ573ppe3v7ek9PT8Xv95Oz6n4BPev6q+bKbvMAAAAASUVORK5CYII='},
                {name: 'SSR',path: '\\chrome\\local\\SSR\\ShadowsocksR-dotnet4.0.exe',subdir: '越狱工具', image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAACF0lEQVQ4y2N4tuQMMwMFgPGofucEBgaG97z60hP0FsV8JNUApv9//l359epLw7v9t+8cUmmuOO0ylYckAzikBQ4xMDAw/P/zT+Tv11/tX2++un9YvbXifPA8ogxiZGBgYDio0Pj8388/EsxcbH///frz7/+ff6yMrMxvmLnYenm0JaYYrk36gtMFDAwMDIwsTIcZGBgY/n77xcwqxH2EkZX5zf/ff0X+fPze/unMo/tHdDoqLicu48FtADPTIZjAr9dfHNjFeCYwcbBcZ2BgYPj366/I77df29/tu3X/qF5nxfW8tTwYXjjlMNng681X5+GCzEzfuVRFgn48+Vj098tPVxQb2VnesAhw9grZKU/RnBT8hZGBgYHh9fbrTFfTV775//uvIFwhG/MLXn1p629335T+fvctA93pzDzsZ7nVRH2ZGBgYGEQ9Nf8xsTIdRVbw79dfic+Xn6/h0ZYsYRPlKWBkYvzLyMr8kZmHfR6HjICLfL6dmfHW9OcscGezsRxh+PbbB8WQn78Nv958WWV9qbz6jPv0PexS/Hd050f9ZGBgYGA4DVEDN4CFh/3gnw/fGRiZmf4ysjEfYWJj3sQpL7RJxEvrEUM+A4PJzsyrOGOBgYGBQcxf5yybOG8Cv7mcuP29OgfVNp+J3x+8q3806dAmsjPKYc226gMy9fvxJmV8kiJuGp1MHCxnKMmtDNeyVuPNEwC81ML2eybLcQAAAABJRU5ErkJggg=='},
                  
                  
                //常用目录
                {name: 'profile目录', path: '\\', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAMWSURBVDhPjZJ7TJtlFIe/GA0GNExNvO2fXaIzxoXMZbiN60azbCFDgYakSXfRqJi5BGo7bkVgYdkYIlNEKRgsIyGFQTCgBgZzyFVl4zrGKLbljqQEuTNooY/v15FFoyae5ElOzved3/ue33mlXsPh1u7cALpyDrqR8568Q73S/w25AacF7vc/YM1MR/Y+Oj8/IMT86DMEM1B4hMGiY27MgnuFRyv7vj7yiFtAPhXnEI5BvehNxvVHI6wIoVUzuKzM2OpJCd9BRtRzJIc9S0LYLtqyA7j3zVHfTQE/WP6Vtb4PBGdwDJzDYUln3ZYOv3+C5tAzmLTbqb0URFlSEBrFNqJ9t1B13s9nU8AfFn/CaY7BYdaKm2hF/hEbFh1MJfPe3sco0b1KzeXjlCSFk3B8D5E7PfjNqKCvQFEpBIQHi7W4huJxDetxjehBZiyFqR9UqF+TuGWKpv/7RKZvZ2H98WNCX5SACXrzgpC6vggUM1djqwinPXPfQ25l+bLQdhptyFNgL2G2OxvrzRR6vtWI2laYa6Yp8+AvUveXwaxaP2OgKATWxTbEFtzImxnRsdBxhsGaeEYbUkVzLLU5StaGDcy0JmOK36ORer46jL1Fw+SNs7D0MxtjmbjGs2BSMKHjbm8u5aVXaC6OpjTjLdJS3sc6eoNRYyDCwqelnrwQrBVRLJs/hZmroilNuJ/KrPUi7xS0kfjdEu0tVTQZT2DU+3Pxgo60uhVCM5pn9meNPSpeogK3D2vXYD5fzHZFmHoZ3/R+6vvv0z6xjn1VPAmXKC8tc2d8ls4pFy2WFd443+WUug2KefkWtkoVlvIobOWR2CuPEXjJwvW7i8TVzKGvm2PDsczC7DSJ1+eIr53n5sACu+Na5DEknyTVK6d0ypfVusiX1NqInap3Fc+/uSuuk9yGad4uHkFtHEFV+IATIpdrhkY7Oz6scwvI4SXw/Asenup61IZBNGVjxJYKTJuIXFM2zsl8My+crn4o8I943C8hxktZ5vSKNOEZ8Xfk2hPKUueTAediNn//1/AWvC7Y+x+Ib5L3n/LzYGB0uqcUAAAAAElFTkSuQmCC'},
                {name: 'chrome目录',path:'\\chrome', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAJsSURBVDhPlZNfSFNRHMfvk9BbEP2hPw+xHkQyzJQoFQp6KKGghx5iRmmhREEhFZLT2lyRFCZBMyuH02k5d3fnMDZsMUc2uHG5ZTdSk1tjIKwbcmlJ48bo2zlnc5El0Re+nMPvd76f84d7uYDfrws+H/jh4WVN+hq3nOiCfymZTELgvYO5CFOlTfxCHMoDZt7NQlXVvOMfP7B6v8vFRu1TEuGRR65tzeLKXVelxM5rKVRYY1/zAPH5NGamVGZZnEUikWD1Abcb8581Nn/7XkWVVUa5PYOKNuk7OUgJx3uzgBCv4JWoYupNHEEy17Qkq8vSSwQ8brTdF1DWPI1SO1BmVbCu/HA1u8si4PE9GV7nJBQ5jgGHDF3XkF5IsV7viznstsRRYgGKrCo27q0/QqIFvwG67BKct2Q8JHbYJBhGigB0nHEpqGqdR/FlYFPrHO70BUBiK1iYahFw/VwMHU0iOpsktJ8X8QMZ9PZ0Iejvx5aWFFa16Lj7LIHIqJcCfknweRng0tEorpyaQGttDDcaI+TxHrD7G98W4Oiw4eLgNFsXEPglAMHHGrV7wjh7MIrT+ycgCE5MvpaQTqcJqA8nj5uBTIat4z1DfwccKgyipjQMc3EEkbAHRjrFwieO1bC+YRhs9Az9AcheoXJ1AA0tCixPDZh7dHR3tqG+LhvOkN2XBTwZ5VmjjBtD4ZogGtwaDtyeg+mCyupUFEBNRT+8XDSr8agfI855FHFBmLgBrC3oxtZGBTdDOgssFf3xctGs6qrHWHgzCW/gHFjP2bFvezuiYT97cbojPTYdqcm/MZ6L5rXjP20izonjfgKVr3Lrdxs1wQAAAABJRU5ErkJggg=='},
                {name: 'Firefox目录',path:'D:\\FirefoxBeta', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACh0lEQVR4XpWTTUhUXRjHf/feuePHWA1hFmiUhUpChTVlIi2yTYs3GFq0aOGiNtmiTbR0lVbLF1elxJSh8fKOMyNZCGNSi6Je6TXIyKJRLCNn7uiM86HzcWdOw+UyDShEP7g858J5fs//wDnS6OPHET2Xs4t8HsFGZElCkiTtnNNZw2aMeL3idwSDQeH2+oYp4b+e9tWp3vZx3B6PIfgcmBWB+TnzC4i5+QVD8HBoyKhLQU38Mzb5YKr7oP3/m21fE8Ot4vWN9rgFk5QewlZmpCSjx6gqrwVAlmXCK1F21lTT2rirc/WzvfPgnjWmP5ZlT3S/PGkBCYB1PYxVLceiVBBPL2K31QPQ2HQA/4tX2MLTHEh5OVSf58OsQu/onBN4J/9KoBFOzCDIFmQhVNVKMpXB0XKYjh1hWtQnNOzXWfiUos+/dN4ztTQBUBSsZ0Okcst8XXlmyKxqBXoOPg5epWx5gN3VCYLvI3you0L/5OIYkAGwFAW6hipsIAlyIkVlpcqAa5At28/i1J6yuhxBd/QUBjUb2zGRQQIgmdFYy2pG/FRSwfXgEQ7HYZx/neLv1euE9l6i9nQXpOOUYpGKCX6QpwoUnfy8kyNH6mlubuBft5vZmbfsu9YPgMjrlCJjksz+IFaQRPXvVG7dRkNTEyMjPvwTfh66+hG6jmkAYMMRsvoKHcoxunQnZ5S79N25z7h/kkHXPfJ5gRDA5lddxRBYNabTHmLxIGuxKBe4XZh8FwMEimKGlSRKsajyVgJRF9YcfImGGIjd5+x6I3XHLwMUb+OGtYkcsd3C9+YiqQiko/AtnGEwY+V5vA3P6Bhur5fCezGqx+cjmUi8oAQJOMqfEQUCmPwEtFNY6VlzWBcAAAAASUVORK5CYII='},
                {name: 'lenovo目录',path:'c:\\Users\\ywb11', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACNUlEQVR4XpXST0hUaxjH8e97zhlH72jXTTONVoRjRRFexOkGQ9Ey2om1KK+tWuRCg5ZBYYsWQQQtKpBWhdTCxpmQuwkXF8LNHWVs0eZyKXVRoUKbsPHPvL/m7XBkKgn6wMPh4eH58b7nHPN8cvLjZrXaKmsR9QQYPGMwxiz39fYm2YbJFwqqDfmZpaUlXk5PPz3b19fPdzxJOG/nF2q1yPzConu6HmfsyROSySTHc7nzzwqFpz8GEAoCn1hsq1yPYzyP5ZUVUqkUJ3K5cxPF4jPqBCAczwtqZYhYK5wDnZ28mJpC1jLQ34+kM98GKDqBhzGGiOfDp9VVjmazrohYY6gXbC14vguIGpfImh9Qqayh9XWcnTtaUCKxfYC7c7RsYjFMUxNvdqVBouPDe5y5dBuHmpup59WfwPMD/HgTfm35//Ruuv9+BPFGfBP+D2qIc6TwkLmubv0Q4Ac+QWOcWDzGf2176Bm9gX0wgt3cxAN8wG5sYO9e5Y/bVyh3Z4Uzns/L+VypqCJpJpWWRkdUHTqlmcxBrUuquLmVo1LHQVUvn5Ye39Kro8dU9xIDDCAEy+/wfmtBGDxCMoQMtVkzrLwHY2B8YkJO1VpZhUrte6Vrf0nXBzTT1q5IKd0ujVyQbl5UuedPAT3ki0VtZ25fRro1qHJHpyLlzH7pzrDK2WPhMmAej439k0gkTloJpPAzNjSg31s5fGkQbJXX9+/hHB4axiYSdJX+zQKzAAbIAK38mllCfAF+aBt61/+9iAAAAABJRU5ErkJggg=='},
                {name: 'user.js',path:'\\user.js', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACI0lEQVR4XpXQTWsTQRgH8P8zO5tXio1IomeLX8CIGHw5FOxJLVVBg1RPIniQasEGhOILXr16FCnJoU02MdaKjfhGKAj9BgWTFokkBQVtbTS7jzNbR1IbBH/wZ/eZ2XlmZqlULn/uuG4/ex4Y3XRFEEQgotbI8HAcPVDecVhN4l+azSbeVau5MyMjafxFMDO0D7W6yjJq9WX99GttKptFPB7H4VTq/Izj5LY3wCYpLdj2n/i1RkKgtbqKRCKBI6nUuUKxOIMuEmBoQkgVguF5DG3fwABeVCrQ/+hCOg1mPr21AZsTCBARDMtirK2v4UAy6ccgMLpJUwhhmQYQBEghYLsdtL9+wUbHg7YjthN9Er0b6DubxQFLIBy0QBMVaHx/EGCAxsuQ4RC6ie4TWCoh20Y4HFSL5/H22nFAkooN2CoWUL0yiNjkM97WQPq7SgQjAdDNOTwaPYrJVyuAywDRZjouMpU6Hp49hF23fzeZzudZa298Z/Z+MMYKfO/NJz6ZXWI5UWI1yPyzrbLBmh47lVviBwst3nP3OW/5iSAV5eO3NiJBAhEUAtScQSrRgPC/8YvpQoE1z3X93TSMOzxaqvHFUp1xw2ED1x2+9KTOl2dXOHFnjgHsR75Y5F4o85SvzjfYypTZkOp97GWDd5vFCj2emnodjUaPecyAiiBCSBJiQYGhhRBcD5g9uA7txPsI+mygcWsoCWDRXGmvSj/+z6IpfgFmOhcVEgMdKgAAAABJRU5ErkJggg=='},
                {name: '一键备份',path:'\\chrome\\local\\BackupProfile.bat', subdir:'文件目录', image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACsElEQVR4Xn2TS2hVRxzGf/+ZOffOPefemIbGt31cbLZqSx8ujKYJ7rJRUkpKEVy56UZaiuKiK8Gt4CILF0rBBDGBipKNS9FFoqklbZGSNNUS8Xqbt9eYe2acc1RcBPvBd2bO95/Hbw5z5MKVqzjnPvHen3HedeNZLwEl6oaI/KiUGgeQV1Zh8kAURWMdH3V07/30C7r2d3Gg88Br5+9ZntWzcdl4AYwCqz1yfmjE79n1MXgIBPj1BMhLAhCYuHcHa7QkBvrvxpiAzoc7tjK3uMT8wiIuTXmDCAhordmwoUJb8OS9cRLt+XYiocV4jCjh9tg4O6sfsHVzO0nJIkBRC0YJCKw2VsPiS0xO3KFs4Juwc5JPJliEjOLvmYcUoiLWFmlNYk7d/JfLv82CJzcioBSYIrFZ800RjKh5IwhaKYzWaB1ao7HBlycfcev7Xp43HZ3bDG8EN2dT4oLm4LnRVjX3X/3a73/e51GtxvLKCkoElaMLRUnp+nma+twCg8NXM+f9zotTaNfEOY+JosJqf18ff01NMzv7mJmZf1iKiwDUGo5NZU265vh87z6ArJ9ntWcpCJikXD40NvFr/hGr1fcplyxWA9d/Yb6RsjE2jM6ssn+zAWD0YTPPFhoOBRgE0jRlavoBxUKBkrVsbEkQYLHpabOagftNzv7RxOOxWkKmWAgkOYEgIILRCq00KrRKMgsrzx0tRUV/1fDV7nbAMXi3xqVpF2oeAdRcvT78pP6E5cZTUucw2gRrRAnPnFApRfS8Zzlx8icePF7my20FKtaEGghgjh87evzrI0dH9nX1fFeK488En9+0SJcQ0Wwp23ADC2x5t8ymVov2ayEzIDqnzP/GI4d7Y2A7UOGVKj8MnS5VWg4672l6hRfBO494h1EQKcEIS8LbVQXe4f+VvgDxAgJThZVz8QAAAABJRU5ErkJggg=='},
            ],
            //定义firefox的功能
            configs: [
                //常用功能
                {name: '打开文件',subdir: '常用功能',command: "BrowserOpenFileWindow();",image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAv0lEQVQ4jc2TIQ7CQBBFe6iKymaDrOglSLCEO1TUIZpWrMVxAVA1YDE4ktWtILRd9tuPAQJhW9gqJnlu5s2I+R4AGmMOWuvQG1MAuFjPqWpFAM54ABikPifLkHmZEQCllBRCfOVN8CAuIu5PO+pOs7m0vfQKgtTnbDWlMYZt07kJ4iLi9rih1tfB7VZBXmasztXg1l6BqhW79rdBqyBJEqfhD4EQ4g8EY3gKbNiara/8mgkXgTVUTqfbBE4pvNcNewXq3i7Rq+4AAAAASUVORK5CYII='},
                {name: '保存网页',subdir: '常用功能',command: "saveBrowser(gBrowser.selectedBrowser);", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH3gQGCSkYbPAS0QAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAALRJREFUOE/Nk8sKwjAURAsFwY0rEXz8lL/uH7hz1w8QH3NiplwvzcLqwoHTm2TCJE3TTurFQWzFrkLb0I/+RizEKMyLeIh75ZbAo54E/lEsRRHJTECuWdH3AoSUnRDAALrWmpV9KmFrOnMCEGN7GjEgbjHiMapFn/N7C/hEYwCPnwXwCoM4N8DzF5kMaB1ilOf8UQD3+6uAfJFWr2ZTMYDFSwon60s0dZFM9JlfduDfeQZd/wS3sV44I2/dIQAAAABJRU5ErkJggg==" },               
                {name: '隐私浏览', subdir: '常用功能',command: "OpenBrowserWindow({private: true});",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAyUlEQVQ4je3RIUzDQBjF8V9CMotEoTCYufopBBqLx1ZOYiZn0JVIVC0WXTuJm6mqmpmY6Dt2CYIESXjJ9a7/vn7fvTv+hJ6wRocPTNhnfg+fcMCA1/gfsIIjtmgLiC5SfIPrsCZsiz6F58cvNcInbgJKhBHPlXEd3xgPLLGTnPeBh2T7qh7tMz/GI76+VH+p4JBd1NHK+1A16Mzn5iod7n4KXGmVfy4LaALawAVus7s260W+tYn3reHS+Wom8wF1Gbtkn/AW77+iE6SaONczlmqVAAAAAElFTkSuQmCC" },
                {name: '安全模式',subdir: '常用功能',command: "safeModeRestart();", image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAiElEQVQ4je3SwQ3CMAxA0SfEBgwRdsiJVboIXDtVOdAdGILOEA5YqAVUlJYjX4rkyPm2E4UHHUrl6owo6imwWSBO2K6c4qt8xGnOWX2Ff4EfFjijqfCacJ4FDsi4IM2IKc7kcN7IuKKN/fgjtZHLY+H1DXrsMeAWHVPEQ+T6mQkn7GLcPuKP3AFx9yRXZKxe2QAAAABJRU5ErkJggg=='},           
                {name: 'Cookie',subdir: '常用功能',command: "window.open('chrome://browser/content/preferences/siteDataSettings.xul', 'Browser:Cookies', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAlUlEQVQ4jcWSQQrDIBBFJ6EnKC7iokjdiTcOzAmCB8iiniL3+d2IMSagqQU/KA7634yjRL01EBFaIS0AjGnEzkNqC6kt2PlqcDwolEGIEdZF7+NukkTDaZOdh1AGQpnaKyBO7Dymt42mrA+4GEdAMIPXDbxuICJIbUtV7IDny5yyJI0sVzAvH+SvUNGHHfCj8Jev3FdfBE9YlSEhiGUAAAAASUVORK5CYII=" },
                {name: '证书管理',subdir: '常用功能',command: "window.open('chrome://pippki/content/certManager.xul', 'mozilla:certmanager', 'chrome,resizable=yes,all,width=830,height=400');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNqnn4iUAAAFJSURBVDhPrZOxSsRAFEUzmxmIwhrBNewXqNWCxWJKhf0Ev0C0E8HWRqwtRPBLrP0UG3GxtFMWXYjnZmdHJ4lWXjhM8t59b14mSfJfqmDexBgT6MirJii6mUz2DazAql+NT/1UdwPMPWvtDKYiTdNnQWpn4QhqN1Ax9AeDjXGWZaeMfkL42LMtjyQfihtoTHacw7tg17dfeNUmrK0GetZcSej5eCTFfT6PJmBUNdCBdRUfwC2es+Gw2FKxfMRaDTRBs/gcZlBZm1bO2UffRL5Wg+arcvAEdTHnUq941VSKzwDKBhZ4nd/F3Is7GPnroE+IvjR2unLOPTSKP2APpqCabukZoV8UmyM1ISTzC1wo/6eWxZCX5XidSS4J78IhHMkjkW9/3gpC+AfyfE0HqXGv4R5uIPh0HeSDFpxftYNIa8NCdXzpS5Ik+QIDqX6cveUBEAAAAABJRU5ErkJggg==" },
                {name: '密码管理',subdir: '常用功能',command: "window.open('chrome://passwordmgr/content/passwordManager.xul', 'Toolkit:PasswordManager', 'chrome,resizable=yes');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAz1BMVEUAAAAAAAAAAAAAAAAAAABEREBEREBEREAAAAAAAABEREBEREBEREBEREBEREAABwcBGiMEHCQHHyk4ODQAAAAAERgEW3sAFyABAQEEaY0AWHgAGiMJCQkEQVYAGiMGExgEhbMAHSgHGCAEWXgANUkANEYAZYsAEBYACAgAAAAAAAAAAAAAAAAKLz4EWHcFBQUDFRwAJjMAFh4ADxQAAAAEBAMEBAQBAQEEeKMEXHsEtPQEXHwAXoAEtfUAuv4AXX8As/QAu/8Ad6ICAgIAhbR1ngrjAAAANHRSTlMAPsTFOwEEBXk9CQoCDQ8jw9ubCxHu/tp2+P2MX/LWqvXAmfDo9/rxHx5MbAdp8ITd76zPMd9xLAAAAKNJREFUGFdFzLtuwlAQhOF/9gKNJShMRRMJyV2ak7z/E1iipkibCiqiCAnZh+LYyVb7aXZWUuF/zpLNAClVE/VhVgAy0ysARZ8AUm3Gg5FOqvUHoJvfrfUXSwSZi3eSNAVr3uukL43Geh9hNvjRqM/Wj3D3wYP6bP9ccuTB4oOO35K2wZ9/U9JFNkOnN+39PkIqjMLuqv62BzInIDfbTRY+2vYCMAwteRZBCIsAAAAASUVORK5CYII=" },
                {name: '清除痕迹',subdir: '常用功能',command: "window.open('chrome://browser/content/sanitize.xul', 'Toolkit:SanitizeDialog', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAb1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt6r1GAAAAJHRSTlMAzVQUwp9BDPLTp3dwPDUsGPvn39vHtauPh35sZlxMJB736yg/5R5gAAAAhklEQVQY01WPVxLDMAhEJatb1b07TsL9z5goGmckPoB5DAuL7InKoE1VAkLBlESMsKKD8QzVMDagLpITaB3u/mIPCdJRExg+Eqjgyac1Tli/RRDaap5jcxIv02k9/WoY6J6WNPsmvyGLb92BI4H2HrsbvJWovegyF2a5XrhwpTS2hSW+pNc/dQcGVNn7bGYAAAAASUVORK5CYII=" },
                {name: '更新历史',subdir: '常用功能',command: "window.open('chrome://mozapps/content/update/history.xul', 'Update:History', 'chrome,resizable=yes');",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABNVBMVEUAAAAAAAA2Rks4R0o3SEo2R0s/Pz8Af382R0k1Rkg3Rko2SEo2SEguRUU3R0o3SEo3SEg3REk3RkU3R0s3SEk3SEo3R0g3REtEREA5Rko3SEo2SEtEREBEREBEREA3Rko1SEo8S0pEREAfZGI1R0c1Rkg4SEhEREA3R0g4Rkg6RkVEREAajZYbjpkZmZk4RUg3RkkbjZkbjJUcipIdiZEajZYbjpcZjZcajppHR0Q3Rkg3SEoci5MajpcbjJdPT003SEo2R0kajZgajpgcjY03SEg3R0o3R0k2RkovT08zMzM2Rkk3SEg1SEo1Rkk3Rks1SEk2RkozREQzTEw1Rko4SEg4R0k7RUQ6Skk2SEg3R0o1SEo3Rko0S0skJCI4SEo4R0g1SEo3SEo1SEs4Rks3SEobjplNLMNvAAAAZXRSTlMAAS9WXD0IAmvg8YwOC7mzVichQZj63SUBOvRWDQ8C498SBAQr9pwFjvkWCaaDCjlTU8HDw8Dr41YQ/XfCwOEF/naifwkuUov4EAWVPPdaM+XcDwq1vF8vIEad+9kiAmve7YVRNgFv0LsAAADHSURBVBhXY2QAAUYw+AVmAjE7I2MMkFrKyPgFLMDLGL6KEQpeSgAFJEGs/0yPGJhkQSygWuWfYD4DgwpEQIIFymeQ4wIJSAh/+i/AyHgJyP8nbHaa0RBsmMFFxhNy/xhlgExDRq6fHD8Nbnx++4/xvzJIi9K3FwxOjIy3gHwmdYWHQDNegM0D8R+5Q6z12gbluzIzbwUK+DAyXgDz/YHyx4ACwYyCH2BO380F0hLHyMgKpP4wruYW/gNyKRfrbyb7BYnPtoFYANlFO1r+sFJfAAAAAElFTkSuQmCC" },
  
                //选项设置
                {name: '火狐设置',subdir: '选项设置',command: "openPreferences();",image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABwklEQVQ4jZ1UwUoDQQxd6B8IQr/BUie5ePUkFHryUPwbwZMgVIplJxEE7z0LfkNB8FoQCoLgtaVFWHeSeqiz7M7OWjWQy2TzkrxkX5JEDDk7ABJrSC7DmCG5BBKLnB3EcutgN6t9YM2QdQOsGdr8uIjZ/LgSu1nt/woUSKfIuvEOrM/A+lx5I53+CiwZTFpA+lZOjjmQviWDSSuK0ble7hVjsZzXklkzP2rZjZWLGgZwfoKsCyCdIulLFUhuu+Os65O646wLLLcVYNKXb4oWwPlJAqwPsZEMudMmVgy50ygNrA8JkNwjq6tWlfHuxckoAHRAcr+tmLqzcqDMaZN1rpd75UZM6s6CijrznOwC8+Y5B9JZfQTW+b8BWeeVQEDy/0b2SwQSG94YkIx2AYZLAdYMSGyCrI+RE3BgXb8RzLp+7TK2/pgcpnkPSFdI+oSsr9UPZNhJ1+1izHTdRpZh0NkcSZ+AdHWY5r0tuV41BpNW5L4234Vew3cgGfn/uVl5BpMWkr7vEgckfW8UhzrhgXyRzoo7/at8ddJ1G0k/is2VlgPW9YuLIP0o8/ujGfo8MlbukGVY657lyli5M/R5FMv9AqdiOHRwiFTLAAAAAElFTkSuQmCC"},
                {name: '系统参数',subdir: '选项设置',command: "openTrustedLinkIn('about:config', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACJklEQVQ4jY2TPWtUQRSGZ/Z+7lfiEtFiwSBoYeUPEAt/gIVIKgkiKUJYZEkhIkEsJO7unTlf9+5mXUKQrURFJFUqkSDBIqRIkSqFpZVVsBCLsdm7CWRDUgw8MDPPnPdwRjnn9HkrsNgMO3Rr0p4677IPtKIMOpXAr1xSZr56YYFnsa8MOmXwqEh0xzN4Xxk8CoEfXkig5j56PhD5iHeLiHWV4J9RRX9j250dC1SaRjPYr89gv35tba02idVgEAQoT1QC/wLDi+MKLnc61chyzwfajYmHEconH2g3RmnFJK88oGEAAhWQe845PSVyc/zwjTSNyiytIqVfqpKZIvIzz9K70OLrEslLZeC3Muh8izsFoIZqt6dja2fHgsDSvLa0qS1tliklz+KOMug8S9+LIJ2TggB4USfwQyX4MzbmunNOK9/y6qjLrsLSOymocLrqW/rmW96pUPY0BNnIz3qGPjvntIosL2sDh9rAYS3tLsXAwxDlQ5WzhTKnz0skGyWSlQhlEFhsFgy+1wb3qm+6M845rWKUx57BLc/gVonSpZyrkhmV4O7oxa8h8DAEnlODQVBrt6fHPTgZIULOjuNkmTa4lwumJGuGlh6dmpPISrNg8KBg8KBEspLzJenOxyDrMaXDmnQbEch6AahxShAgL2hD29rQdhGlecy8PGaWVh7hlOCsCJHlXs5lllZVug8mjnoA1NAJ7usE92OQF5P4Svr29ll/5T/rXhzDBSBwAgAAAABJRU5ErkJggg=='},
                {name: '命令列表', subdir: '选项设置',command:"openTrustedLinkIn('about:about', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAzUlEQVQ4jaXSIU7EQBSA4S8j+sIFVpD0HIi9wC6CM+0FMFUILA7DDRAIVB0KheoFMKuK2OlmSLZTGl4ymWTe+/95M3lUIqV0SCkdajVVuGmaD/SrJQW8yWtRsouIISLGiBgLeIoN+ikfEQN252w+2K5ocpuZs2CcKbxChx53ZeIXUxF0OOIFDW7XCnq84QnPeF8jaDFkyWvupPuroMUnvgrJvdOfLAomeMh7e+ltNcEjvmvwkuAGD7iegy8J/jdI2JejvLScPne/4sL5+AHddkk+mzKKaQAAAABJRU5ErkJggg=="},
                {name: '内存占用',subdir: '选项设置',command:"openTrustedLinkIn('about:memory', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image :"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH3gweFgQ6Kx3ZJgAAABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAAAVZJREFUOE+FkztLw1AYhjNY/0DBuhjxUq2ggqNihVaJxg5ODv4J/S2Ks4MgREFF0EaqOAjt3mo2hQyS0YKXpRaO71tP9ORgkg8eaHK+5+25xVDr2stmgA0cEICnujtU+FwrH36slxxggX7ZHi0058AeaAMh8etVBNilO4gCtMG2VP4KjZQvFFEPuJUB/nulXBypieKkKwZDmdPmP+uyGsAZvHWt+Y3hG7EMOQC7oI8BXLM67UhA49Kcwh5cdVYXdyDMAg8I8AosBnDD/pOJ38AMOitLlc2Dx8KEK+6lHHLCgBdNUvFrD1mTSx11xVbeFefgVHIG9hnQ1SQVhi9UvQHzqDk37rRmxo5b07/wOS3gCzDEj+E5bQlpBGmbmIbDgKRjTIKOzYCki5QEnUx4G+OuchzszfXksPgC6B+TDsfYE5XDwoD6OfN0eMSEv/mOYz/T7pVhfAMlNSjBzVUmcwAAAABJRU5ErkJggg=="},
                {name: '插件信息',subdir: '选项设置',command: "openTrustedLinkIn('about:plugins', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAR0lEQVQ4jWP49u3bf0oww7dv3/47OTlhxfjkYPL0MwDZ2XgNIMbfBA3A5yKKDSAYBjQ3gGA6GBxeICYKiUpIxLhokBhACQYASZecRxjAXUYAAAAASUVORK5CYII="},
                {name: '缓存信息',subdir: '选项设置',command: "openTrustedLinkIn('about:cache', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABs0lEQVQ4jaWTP2sUURTFXxGSzi+Q+BHUQnSZ95SkHdh2miyMe+9JYZPNksZiTQimFCz8RzJ3ujBPsJ2vIGyRIrFM8ZgupU0iDhn02rgblt11BQ+c8v4e591zjTHGbByYpY601rrH0b1n0nqYSut+R1prGwdmySwSZdEbFnvDudMpi2soc+/+DhB7QmIHlLt9lmivm9kXLNEe5W6fxA5I7EnnbevOXMDMl3OnLE+UD9uK/qYy8zWAKwBDIuolSbJ8CxDXTA1/XFf0Ouq91xCC1nWtdV1rCEG99wrgLE3TVWOMMd3M7rJE/W5mdymzL+no6Ws8Ty/LstR5KstSmfk8juOV2whib1jcN37V/l4UxcQAgClIURTKzNtTf4D+poYQFgJCCApgaEjsgHP3mcQNWdwFg341TbMQ0DSNAqgN5e4HiRtybj+R2GNs8c9ZgJFHqutaAVz9U4RZGkdgcV8mVnnYVu/9QoD3XomoZ0a3QB8e3eWjxw/S9+sRtroXi9YI4Gscxysz25mm6SqAM++9VlU1LlJVVeq9V2Y+HxdpnpIkWQaww8ynzHz9x6cAdiaq/L/6DbRoFO5cdXo+AAAAAElFTkSuQmCC"},
                {name: '故障排除', subdir: '选项设置',command: "openTrustedLinkIn('about:support', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACHklEQVQ4jZWTv2siQRTH34zZrPtDd7JRg8IiyB7YmCZVqitTWoUUIlcGsU5xhYRDLFIEi/wpB4EjXWTezC52V6aUFEcIxxUSgsi7xt1MTHNXfJvhfT+89533gIiYFqKfCjFKKpWLf5EWYqSC4IyIGGgh+ijEZyJimdJGI1KuO0DbnqJlTdF1z+fNZt2sScLwJAmCU0iFGGWPPw4PPeU4NxJghQC0pVflONe3cWznECEuIalULnKzZc0QgLBQWCDAOjNLgJXk/BEBCC3rLoO8AyjHuUEAwp2dn7pWO9C+P0SAtQRYqXK5l4ZhhJw/IAApx7l6B0gbjUgCrLBQWOha7SBrUfv+UJXLvTybMIwk50+SsZf7OK7mAOW6g027a+37QzNMMzwslb7mY3lePwegZU2NsNbK9wdpoxEhY0vJ2O9Zp7NnmhGAVLE4eQPY9tQMTJXLvXmzWUfG/kjOf81brSDLxACM3wCue26as5Znnc7evNUKzEwyiDZHmDebdQR4lZw/pmEYmTMr3x/kgGr1E3L+jIwtk3Z7f/sbrxGAkPOHNAwjY+a18v3BxrxAAFKuO/6wB3h87KBl3SEASc6ftrZwjZw/IwDh7u73+dGRlQO0scq3cWwrx7mSAC8fVpmxpXLdcWbeHOE3UEFwloThiXko93FcVZ73RRaLE1UsTrTn9ZN2e9+s0UJ0danUBSJiSRCcJkJc/o+0EF0iYn8BuVi9441UyUkAAAAASUVORK5CYII="},
                {name: '附件调试',subdir: '选项设置',command: "openTrustedLinkIn('about:debugging', gBrowser.selectedTab.isEmpty ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4T6XTvUpDQRDF8d/trSImrxDwQcQ+BoQUamPsLWwCKVKksUtAGy0UG59AfA4Lq9QKCqlSKhtGuNwkFzZuM/vB+bNzOFP45ypK+n7sb2ruOhjF+wDPZcAwHv5qOlbv3nCJBabYzwW8o4s9TNDOBRzgEUl3jNdcwEpbdYAj3IUvZ8mwikdLf+oAX2iE6Bu7uYAPNEP0iVYuILVwH6LTbVpYl4ONJh7iAT/o4WXdd+tamOEEO7hOAckFpIheYI6nFNFcwMqQBOA86m1pwK5iP67mYKvB/gVnkjkRXyf00gAAAABJRU5ErkJggg=="},
                //火狐功能
                {name: '管理书签', command: "PlacesCommandHook.showPlacesOrganizer('AllBookmarks');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAATElEQVQ4jWNgGGzgPxZMkmZSxAnaTAzGsOEomoKjxLj6P5oAKWEwXA04ysDAYMWACFCSDJjFwMDADmWzQ/kkGUAqoI4BMAbZKZEiAAA7FFJDJW1v5AAAAABJRU5ErkJggg==" },
                {name: '历史记录', command: "PlacesCommandHook.showPlacesOrganizer('History');", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVQ4jbXTLVYDMRQF4E9VdANdQA1mXN0sg0VgkcgxyJpqloDCsodYJA5ThRqDQORNG6bJ8HMO95yIebm5k3vfC/+ADe6RMMZKGGJvEdc44oAe61h91I7BaR5+wy6+E65mnC44FyKbUO+K2hNuKj/qgvvFzoD9jHiHh8Zt93JOJyTZZ4kerw2BPs6cMGI1I62ivq0ITHuLAmRrI55x65zRGu8lsWZhwlYO87G49oWFQe7zT3EwC7HWxhaqbeQ8SEsizUEqRf48yhOmx/SCDzntFLVvH9Ov8QntGzLFRkqKRgAAAABJRU5ErkJggg==" },
                {name: '下载管理',command: "BrowserDownloadsUI();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAbklEQVQ4jWNgoDH4PzQNkMVhgCy6QmxAmYGB4TUDA4M9mgH2UHFlYgyBKbaHGoDMJxrANP0nRzMMBEMNCCZHMwyYEKvQk4GB4RnURkL4GVQ9CnjGwMBgTaRl1lD1KIBQgvmPpgZDPcUuoDgMyAYA/mQv97JO38EAAAAASUVORK5CYII="},
                {name: '附加组件',command: "BrowserOpenAddonsMgr();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAOVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAVDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADMzdu6AAAAEnRSTlMAfzpDTCEK38+9s6iFeGqNVjKYYQrKAAAAcElEQVQY02WOWw6FIAxEp7wRQe3+F3t7sUUTz8cknNBOMUmNS8SLURNtb7ETfLGH5z84JPwU7KA4vgUWKpiWKDXKx5iDii30rB1Gkqk++LKRozbJ5mGCRtLVbj+flnkcZVrCyfoTke2wwELHJSn1X34e5wRDvcBIqAAAAABJRU5ErkJggg==" },               
                {name: '重新启动',command: "Services.appinfo.invalidateCachesOnRestart() || BrowserUtils.restartApplication();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAq0lEQVQ4ja2SvQ3DIBCFv44qXXrXbrMDK2QFhqD2FhmAFbyD9/AILknBU2TH/FnJkxDScd9xBw/aGoFXR15RBlgA3wsMwCRo1T4BEbAt2AMb4FTIaPcq4FrwfIfbV3wU/KzBD2DLwAiswgCh1V5LkTTrTwXMhfzTSFc6GEhfe9BM/xs4ki8OspR/4SOdrxS6DeR9sIdnKpY2KpJzolP81HpOVjfF3Qoks/1fb/8xJcvKSjYUAAAAAElFTkSuQmCC" },
                {name: '关于火狐',command: "openAboutDialog();", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABCklEQVQ4ja2TPVICQRCFO9KADnFmZ/vNO4IQEOw98ERYRcxyJTe2EI9AtpBpsJpgslgr7I+FvrCn3tfzeqZF/ltpmo5jjEsAW5IVyQrAxswWaZqOe80A5gBKkrn3PhMRFRH13mckcwB7APM+887Mpl0NzGwKYHcBUdU7APtzM8kixvjUrDnnJgBKVXVN8oLk+rwjyYJk0VJfxxiXzetv6sy/kvc+A7BtEisRuWnpdCR5bGHckvz4C0ABvA1G6ALUEV6+Cz1DbAWQzH8MUVUdgNI5NxkCALi/eMb64PqPdFKSJA8ADma2CiHMRGQkIqMQwszMVgAOneaTGsv0SvITwDvJZzN7HFyma/QFJdZSMcjINRYAAAAASUVORK5CYII=" },
            ]
        },
    _externalAppPopup: null,
    _isready: false,
  
    init: function() {
        this.handleRelativePath(this.toolbar.apps);
        const XULNS = 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul';
        try {
          CustomizableUI.createWidget({
            id: "AppMenuButton",
            type: "custom",
            defaultArea: CustomizableUI.AREA_TABSTRIP,
            onBuild: function(aDocument) {
              let toolbarbutton = aDocument.createElementNS(XULNS, "toolbarbutton");
              let attributes = {
                id: "AppMenuButton",
                class: "chromeclass-toolbar-additional",
                type: "menu",
                onclick: "event.preventDefault();event.stopPropagation();",
                label: "AppButton",
                tooltiptext: "Firefox Menü",
                image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAABUElEQVQ4y83Vv0vWURQG8M/RFwmEytaiwdFVEOzHEEQ0SE01uAoNYvQH1FiDNDS3FPQvNEUYTkFUQ+Bgg7UILSbvpEHU03JdwuH7zVfoTJd7D885z7nPfS5IMpnkbJJyxKgkC3iMIXZxq6r2WqE7uNgRK1irJJu4WlXbSVbxpaqeJjmJD1juCDiG5wNMYKdtfsPpth7HD7xr1bvEzwGe4WWSj7iBa+1wiE+ty66UX2mzmk+ymOSM/zKSnE9yIcnEKGSzhLvYxDSuV9VuK/QQl3vM8HUl2cJsVQ2T3MdeVT1JcgpvcbOHbN6MNeQDWdQhSV1fz2/kgPIKPh9C+REu9aE88ks5NtmMTNiV5AGu4D0W2gy3m5W9wFwPvPVK8hUzVbWf5B5OVNVqkims97CvwsagOcoU9nEOWy3hFyYx38Ntxv822O+4/Y8GC2tG/QX8ARvjteeHEO4UAAAAAElFTkSuQmCC"
              };
              for (let a in attributes)
                toolbarbutton.setAttribute(a, attributes[a]);
              return toolbarbutton;
            }
          });
        } catch(e) { };
  
        var ExternalAppBtn = document.getElementById("AppMenuButton");
        var ExternalAppPopup = document.createElementNS(XULNS, 'menupopup');
        ExternalAppPopup.setAttribute('onpopupshowing', 'event.stopPropagation();Appmenu.onpopupshowing();');
        this._externalAppPopup = ExternalAppPopup;
        ExternalAppBtn.appendChild(ExternalAppPopup);
    },
  
    onpopupshowing: function() {
        if (this._isready) return;
        if (this._externalAppPopup === null) return;
        var ExternalAppPopup = this._externalAppPopup;
        for (var i = 0; i < this.toolbar.subdirs.length; i++) {
            if (this.toolbar.subdirs[i].name == 'separator') {
                ExternalAppPopup.appendChild(document.createXULElement('menuseparator'));
            } else {
                var subDirItem = document.createXULElement('menu');
                var subDirItemPopup = subDirItem.appendChild(document.createXULElement('menupopup'));
                subDirItem.setAttribute('class', 'menu-iconic');
                subDirItem.setAttribute('label', this.toolbar.subdirs[i].name);
                subDirItem.setAttribute('image', this.toolbar.subdirs[i].image);
                Appmenu.subdirPopupHash[this.toolbar.subdirs[i].name] = subDirItemPopup;
                Appmenu.subdirMenuHash[this.toolbar.subdirs[i].name] = subDirItem;
                ExternalAppPopup.appendChild(subDirItem);
            }
        }
  
        for (var i = 0; i < this.toolbar.apps.length; i++) {
            var appsItems;
            if (this.toolbar.apps[i].name == 'separator') {
                appsItems = document.createXULElement('menuseparator');
            } else {
                appsItems = document.createXULElement('menuitem');
                appsItems.setAttribute('class', 'menuitem-iconic');
                appsItems.setAttribute('label', this.toolbar.apps[i].name);
                appsItems.setAttribute('image', this.toolbar.apps[i].image);
                appsItems.setAttribute('oncommand', "Appmenu.exec(this.path, this.args);");
                appsItems.setAttribute('tooltiptext', this.toolbar.apps[i].name);
                appsItems.path = this.toolbar.apps[i].path;
                appsItems.args = this.toolbar.apps[i].args;
            }
            if (this.toolbar.apps[i].subdir && Appmenu.subdirPopupHash[this.toolbar.apps[i].subdir]) Appmenu.subdirPopupHash[this.toolbar.apps[i].subdir].appendChild(appsItems);
            else ExternalAppPopup.appendChild(appsItems);
        }
  
        for (var i = 0; i < this.toolbar.configs.length; i++) {
            var configItems;
            if (this.toolbar.configs[i].name == 'separator') {
                configItems = document.createXULElement('menuseparator');
            } else {
                configItems = document.createXULElement('menuitem');
                configItems.setAttribute('class', 'menuitem-iconic');
                configItems.setAttribute('label', this.toolbar.configs[i].name);
                configItems.setAttribute('image', this.toolbar.configs[i].image);
                configItems.setAttribute('oncommand', this.toolbar.configs[i].command);
                configItems.setAttribute('tooltiptext', this.toolbar.configs[i].name);
            }
            if (this.toolbar.configs[i].subdir && Appmenu.subdirPopupHash[this.toolbar.configs[i].subdir]) Appmenu.subdirPopupHash[this.toolbar.configs[i].subdir].appendChild(configItems);
            else ExternalAppPopup.appendChild(configItems);
        }
  
        if (this.autohideEmptySubDirs) {
            for (let i = 0; i < Appmenu.subdirPopupHash.length; i++) {
                if (Appmenu.subdirPopupHash[i].hasChildNodes()) {
                    continue;
                } else {
                    Appmenu.subdirMenuHash[i].setAttribute("hidden", "true");
                }
            }
        }
  
        if (this.moveSubDirstoBottom) {
            let i = ExternalAppPopup.childNodes.length;
            while (ExternalAppPopup.firstChild.getAttribute('class') != 'menuitem-iconic' && i--!==0) {
                ExternalAppPopup.appendChild(ExternalAppPopup.firstChild);
            }
        }
        this._isready = true;
    },
  
    handleRelativePath: function(apps) {
        for (var i = 0; i < apps.length; i++) {
            if (apps[i].path) {
                apps[i].path = apps[i].path.replace(/\//g, '\\').toLocaleLowerCase();
                var ffdir = Components.classes['@mozilla.org/file/directory_service;1'].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path;
                if (/^(\\)/.test(apps[i].path)) {
                    apps[i].path = ffdir + apps[i].path;
                }
            }
        }
    },
  
    exec: function(path, args) {
        args = args || [];
        var args_t = args.slice(0);
        for (var i = 0; i < args_t.length; i++) {
            args_t[i] = args_t[i].replace(/%u/g, gBrowser.currentURI.spec);
        }
  
        var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile);
        file.initWithPath(path);
        if (!file.exists()) {
            Cu.reportError('Datei nicht gefunden: ' + path);
            return;
        }
  
        if (!file.isExecutable()) {
            file.launch();
        } else {
            var process = Cc['@mozilla.org/process/util;1'].createInstance(Ci.nsIProcess);
            process.init(file);
            process.run(false, args_t, args_t.length);
        }
    },
};
  
if (location.href.startsWith('chrome://browser/content/browser.x'))
  Appmenu.init();

这个是修改好的脚本,如果还是失败,说明可能是你的引导脚本没成功加载。
验证方法:
1、在 about:config 中设置 devtools.chrome.enabled 为 true
2、ctrl+shift+j 打开浏览器控制台
3、在输入中输入
userChrome_js.BROWSERCHROME
并回车。
4、如果出现 `ReferenceError: userChrome_js is not defined` 的错误提示说明引导脚本没正确加载。
如果出现 chrome://browser/content/browser.xhtml 说明引导脚本成功修改并加载。
lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-08-20
  • 发帖数471
  • 经验235枚
  • 威望0点
  • 贡献值72点
  • 好评度71点
  • 社区居民
13楼#
发布于:2019-05-22 15:13
333ywb:这个我没有改的,我都是改像'menu''menuitem'  'menuseparator' "AppMenuButton"  等前面的 createXULElement



下面是我自己改的2楼的,试了下还是不行
// ==UserSc...
回到原帖
223行错了。是 if (location.href.startsWith('chrome://browser/content/browser.x'))
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-08-17
  • 发帖数90
  • 经验98枚
  • 威望0点
  • 贡献值96点
  • 好评度0点
  • 社区居民
  • 忠实会员
14楼#
发布于:2019-05-22 15:21
lonely_8:// ==UserScript==
// @name           Appmenu.uc.js
// @namespace      Appmenu@gmail.com
// @description    Basiert au...
回到原帖
按照你改的脚本试了下,还是加载不了,在控制台也出现chrome://browser/content/browser.xhtml 说明成功了,但是浏览器还是不出现脚本操作界面
上一页
游客

返回顶部