333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-06-19
  • 发帖数83
  • 经验88枚
  • 威望0点
  • 贡献值84点
  • 好评度0点
  • 社区居民
  • 忠实会员
阅读:581回复:8

【已解决】Firefox65版Appmenu.uc有些项目不可用。麻烦修复下。谢谢!

楼主#
更多 发布于:2018-12-14 09:30
//选项设置
                {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', isTabEmpty(gBrowser.selectedTab) ? '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', isTabEmpty(gBrowser.selectedTab) ? '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', isTabEmpty(gBrowser.selectedTab) ? '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', isTabEmpty(gBrowser.selectedTab) ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAR0lEQVQ4jWP49u3bf0oww7dv3/47OTlhxfjkYPL0MwDZ2XgNIMbfBA3A5yKKDSAYBjQ3gGA6GBxeICYKiUpIxLhokBhACQYASZecRxjAXUYAAAAASUVORK5CYII="},
                {name: '缓存信息',subdir: '选项设置',command: "openTrustedLinkIn('about:cache', isTabEmpty(gBrowser.selectedTab) ? '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', isTabEmpty(gBrowser.selectedTab) ? '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', isTabEmpty(gBrowser.selectedTab) ? 'current' : 'tab')", image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAR0lEQVQ4jWP49u3bf0oww7dv3/47OTlhxfjkYPL0MwDZ2XgNIMbfBA3A5yKKDSAYBjQ3gGA6GBxeICYKiUpIxLhokBhACQYASZecRxjAXUYAAAAASUVORK5CYII="},
办法:删除isTabEmpty后可以解决
lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-06-13
  • 发帖数455
  • 经验221枚
  • 威望0点
  • 贡献值72点
  • 好评度63点
  • 社区居民
1楼#
发布于:2018-12-14 20:02
Bug 1502069 - isTabEmpty should be a property on the tab rather than a global function
isTabEmpty(gBrowser.selectedTab)

gBrowser.selectedTab.isEmpty
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-06-19
  • 发帖数83
  • 经验88枚
  • 威望0点
  • 贡献值84点
  • 好评度0点
  • 社区居民
  • 忠实会员
2楼#
发布于:2018-12-14 21:20
lonely_8:Bug 1502069 - isTabEmpty should be a property on the tab rather than a global function
isTabEmpty(gBrowser.selectedTab)...
回到原帖
谢谢大神的办法,还是你的办法好,解决问题,万分感谢!
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-06-19
  • 发帖数83
  • 经验88枚
  • 威望0点
  • 贡献值84点
  • 好评度0点
  • 社区居民
  • 忠实会员
3楼#
发布于:2018-12-15 00:28
lonely_8:Bug 1502069 - isTabEmpty should be a property on the tab rather than a global function
isTabEmpty(gBrowser.selectedTab)...
回到原帖
大佬,麻烦你下!升级到64和65版本后标签页右键的#context_reloadAllTabs,/*重新载入全部标签页*/功能好像被去掉了,这个有办法重新添加上吗?
lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-06-13
  • 发帖数455
  • 经验221枚
  • 威望0点
  • 贡献值72点
  • 好评度63点
  • 社区居民
4楼#
发布于:2018-12-15 14:28
333ywb:大佬,麻烦你下!升级到64和65版本后标签页右键的#context_reloadAllTabs,/*重新载入全部标签页*/功能好像被去掉了,这个有办法重新添加上吗?回到原帖
// ==UserScript==
// @name    Reload All Tabs
// @include    main
// ==/UserScript==
 
location == 'chrome://browser/content/browser.xul' && (() => {
    const reloadTab = document.getElementById('context_reloadTab');
    if(!reloadTab) return;
    const menuitem = document.createXULElement('menuitem');
    menuitem.setAttribute('accesskey', 'A');
    menuitem.setAttribute('label', reloadTab.getAttribute('label')
        .startsWith('Reload') ? 'Reload All Tabs' : '重载所有标签'
    );
    menuitem.addEventListener('command', () => {
        gBrowser.visibleTabs.forEach(tab => {
            try {
                gBrowser.getBrowserForTab(tab).reload();
            } catch (e) {}
        });
    });
    reloadTab.after(menuitem);
})();
333ywb
小狐狸
小狐狸
  • UID27284
  • 注册日期2008-12-03
  • 最后登录2019-06-19
  • 发帖数83
  • 经验88枚
  • 威望0点
  • 贡献值84点
  • 好评度0点
  • 社区居民
  • 忠实会员
5楼#
发布于:2018-12-15 15:05
lonely_8:// ==UserScript==
// @name    Reload All Tabs
// @include    main
// ==/UserScript==
 
location == 'chrome://browse...
回到原帖
感谢大神的脚本,问题已经得到解决,64和65版本下可以正常使用
aunsen
小狐狸
小狐狸
  • UID34416
  • 注册日期2010-11-03
  • 最后登录2019-06-11
  • 发帖数42
  • 经验47枚
  • 威望0点
  • 贡献值26点
  • 好评度3点
  • 社区居民
  • 忠实会员
6楼#
发布于:2018-12-25 19:56
lonely_8:// ==UserScript==
// @name    Reload All Tabs
// @include    main
// ==/UserScript==
 
location == 'chrome://browse...
回到原帖
大佬,又来求助你了,addmenu配置文件,求适配下64+



{
 label: "搜索所选文本",
 url: "https://www.google.com/search?q=%s",
 image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAWlBMVEUAAADYHQXZHwDYHQbYHgbYHgbYHgbYHQbVKgDYHgbYHgbYHgbZHgbYHQXZHQXZHgfZHQTZHgXXHQfYHgbYHwbXHgbXHgXYHQbZHgXaHQTWHwrTIQvVFQDYHgbO83NiAAAAHXRSTlMAwBCCs2tUTgbs5cyflIxJODIi3tnVu6VePhkXDAKjH1UAAABwSURBVBjTZY/ZEoAgCEURK20ztX3x/38zxpKp8b7AHJYLkAulYEkkIMNHkoCg2KpT25US8YAizuo2gfqAam5MwR0lDHEBgwqo6BBxZ2BC8JS6/0gP6gXNBeVYdwhLsu109N34jjApj7aPLtnp2XOZbtl7CuszpE98AAAAAElFTkSuQmCC",
 where: 'tab'
 },
lonely_8
狐狸大王
狐狸大王
  • UID30273
  • 注册日期2009-09-03
  • 最后登录2019-06-13
  • 发帖数455
  • 经验221枚
  • 威望0点
  • 贡献值72点
  • 好评度63点
  • 社区居民
7楼#
发布于:2018-12-25 21:33
aunsen:大佬,又来求助你了,addmenu配置文件,求适配下64+



{
 label: "搜索所选文本",
 url: "https://www.google.com/search?q=%s",
 image: "data:image/png...
回到原帖
https://www.firefox.net.cn/read-78835-2#read_366836
参考这帖的20楼和跟帖。
aunsen
小狐狸
小狐狸
  • UID34416
  • 注册日期2010-11-03
  • 最后登录2019-06-11
  • 发帖数42
  • 经验47枚
  • 威望0点
  • 贡献值26点
  • 好评度3点
  • 社区居民
  • 忠实会员
8楼#
发布于:2018-12-25 22:58
lonely_8:https://www.firefox.net.cn/read-78835-2#read_366836
参考这帖的20楼和跟帖。
回到原帖
真是太感谢你了,解决问题
游客

返回顶部