| 
			 
					阅读:5371回复:9
				 
				[FF96]关于KeyChanger.uc及AnotherButton.uc的问题
					我是从FF93直接升级到96的,发现KeyChanger.uc及AnotherButton.uc分别存在这样的问题:
 
							(一)KeyChanger.uc 配置文件有一段是这样的,作用是按SHIFT+F1的时候,打开【浏览器工具箱】(CTRL+SHIFT+ALT+I),在93能用,在96却用不了了。 keys['Shift+F1'] =function() {var listenOpen = {
    observe: function(aSubject, aTopic, aData) {
        if (aTopic != 'domwindowopened') return;
        var newWin = aSubject;
        newWin.addEventListener('load', function onLoad() {
            setTimeout(function() {
                doNewWin(newWin);
                newWin.removeEventListener('load', onLoad);
            }, 0);
        });
    }
};
function doNewWin(newWin) {
    const dialogText = 'Eine eingehende Anfrage für eine externe Debugger-Verbindung wurde erkannt.'
    if (newWin.location == 'chrome://global/content/commonDialog.xul' && newWin.document.getElementById('info.body').textContent.startsWith(dialogText)) {
        var button = newWin.document.getAnonymousElementByAttribute(
        newWin.document.documentElement, 'dlgtype', 'accept');
        button.click();
        Services.ww.unregisterNotification(listenOpen);
        clearTimeout(tId);
    };
};
  
Services.ww.registerNotification(listenOpen);
if (!document.getElementById('menu_browserToolbox')) {
    let {
        require
    } = Cu.import("resource://devtools/shared/Loader.jsm", {});
    require("devtools/client/framework/devtools-browser");
};
document.getElementById('menu_browserToolbox').click();
var tId = setTimeout(function() {
    Services.ww.unregisterNotification(listenOpen);
}, 5000);}; //打开开发者工具箱
(二)AnotherButton.uc 在93的时候可以展开浏览器工具菜单,但在96的时候展不开。 ![]()  
具体脚本跟配置文件见附件。 链接:https://pan.baidu.com/s/1qAXZ19jI5GkQP7jlXe0vsw?pwd=oki7 不知当如何修改?谢谢!  | 
	|
| 
			 1楼# 
								发布于:2022-01-26 09:40				
			
					AnotherButton.uc的_anoBtn.js配置文件里的【webDeveloperMenu】改为【browserToolsMenu】。
 
							KeyChanger.uc按SHIFT+F1打开浏览器工具箱非常奇怪,如果点击三道杠菜单-更多工具,不点击浏览器工具箱而是关闭菜单,此时按SHIFT+F1可以唤出浏览器工具箱,但是如果不先点下菜单或是之前激活过浏览器工具箱的话,SHIFT+F1就无法唤出。  | 
	|
| 
			 2楼# 
								发布于:2022-02-22 23:23				
			 | 
	|
| 
			 3楼# 
								发布于:2022-02-22 23:26				
			
					请问菜单中右键调用编辑器编辑脚本会弹出一个“页面载入出错”窗口,应该是Firefox自带的编辑器地址变了,这个新地址应该怎么写呢?				 
							 | 
	|
| 
			 4楼# 
								发布于:2022-03-06 10:52				
			
					KeyChanger怎设置扩展的快捷键				 
							 | 
	|
| 
			 5楼# 
								发布于:2022-03-06 22:16				
			 | 
	|
| 
			 6楼# 
								发布于:2022-03-11 08:20				
			 | 
	|
| 
			 7楼# 
								发布于:2022-03-11 08:23				
			
					右键菜单扩展项,fireflomo
 
							晕,上个图还要flash……  | 
	|
| 
			 8楼# 
								发布于:2022-05-05 09:13				
			keys['Shift+F1'] = function () {
    var document = event.target.ownerDocument;
    if (!document.getElementById('menu_browserToolbox')) {
        let { require } = Cu.import("resource://devtools/shared/loader/Loader.jsm", {});
        require("devtools/client/framework/devtools-browser");
    };
    document.getElementById('menu_browserToolbox').click();
};试试这个?				 | 
	|
| 
			 9楼# 
								发布于:2022-05-05 18:14				
			 | 
	|
							
				