阅读:1881回复:9
[求助]有没有重启浏览器的按钮的脚本?(按钮添加在工具栏的)想在工具栏添加一个重启浏览器按钮,找来找去找不到这样的脚本。 有个叫personal menu(应该没拼错吧- -)的扩展能实现这个功能,但是如果有这样的叫脚本,不需要添加扩展就好了........ |
|
最新喜欢:![]() |
1楼#
发布于:2015-05-18 12:12
用 restartless restart 很简单的一个扩展,和脚本差不多
|
|
|
2楼#
发布于:2015-05-18 16:00
|
|
3楼#
发布于:2015-05-18 16:10
dyangrxxxx:想要是能在工具栏直接显示图标按钮的。 restartless restart是要点火狐橙图标后才出现的吧回到原帖“定制”可以拖动的,可以放在工具栏。怎么还火狐橙,新版是“菜单”键才对。 |
|
4楼#
发布于:2015-05-21 22:35
这个我也很需要,楼主找到后请@我一下
|
|
5楼#
发布于:2015-05-21 23:26
(function(clearCache) { if (typeof clearCache == 'undefined') clearCache = false; const appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"] .getService(Components.interfaces.nsIAppStartup); // Notify all windows that an application quit has been requested. var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); var cancelQuit = Components.classes["@mozilla.org/supports-PRBool;1"] .createInstance(Components.interfaces.nsISupportsPRBool); os.notifyObservers(cancelQuit, "quit-application-requested", null); // Something aborted the quit process. if (cancelQuit.data) return; // Notify all windows that an application quit has been granted. os.notifyObservers(null, "quit-application-granted", null); // Enumerate all windows and call shutdown handlers var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var windows = wm.getEnumerator(null); var win; while (windows.hasMoreElements()) { win = windows.getNext(); if (("tryToClose" in win) && !win.tryToClose()) return; } if (clearCache) { let XRE = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime); XRE.invalidateCachesOnRestart(); } appStartup.quit(appStartup.eRestart | appStartup.eAttemptQuit); })(true)这段代码用了几年了。忘记在哪里扒出来的。 |
|
6楼#
发布于:2015-05-21 23:56
FireGestures可以设置
|
|
7楼#
发布于:2015-05-22 09:30
|
|
8楼#
发布于:2015-05-22 19:27
|
|
9楼#
发布于:2015-05-27 17:47
|
|