阅读:1356回复:1
有没有添加"全部刷新"按钮的Chromejs脚本?
同题.
|
|
|
1楼#
发布于:2010-04-12 17:18
http://board.mozest.com/thread-26773-1-1
右击刷新、停止钮执行全部刷新、停止_power_reload_stop.uc.rar 或者以下代码保存为uc.js // right-click to reload or stop all tabs, middle-click to stop all animation-gif images in current tab var reload = document.getElementById("reload-button"); if (reload) { reload.addEventListener("click", function(event){ if (event.button==2) for (var i = 0; i < gBrowser.mPanelContainer.childNodes.length; i++) gBrowser.getBrowserAtIndex(i).reloadWithFlags(nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY | nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE); }, true); reload.setAttribute("context", ""); } var stop = document.getElementById("stop-button"); if (stop) { stop.addEventListener("click", function(event){ if (event.button==1) BrowserStop(); else if (event.button==2) for (var i = 0; i < getBrowser().mTabContainer.childNodes.length; i++) getBrowser().getBrowserForTab(getBrowser().mTabContainer.childNodes).stop(); }, true); stop.setAttribute("context", ""); } |
|