先把歷史按鈕(時(shí)鐘)從右上角三條線拉出來,沒看到,在自訂裡找。
userChromeJS Mix套件下載和使用方法請(qǐng)看上一篇
火狐套件:userChromeJS Mix
腳本:
// ==UserScript== // @Name UndoClosedTabs.uc.js // @author lyttmonkey // @version 0.1 // ==/UserScript== if (location == "chrome://browser/content/browser.xul") { (function () { var UndoClosedTabs = document.getElementById('history-panelmenu'); if (!UndoClosedTabs) return; UndoClosedTabs.addEventListener("click", function (event) { if (event.button == 2) { event.preventDefault(); undoCloseTab(); } }, false); })(); } 樣式: 歷史按鈕僅保留最近關(guān)閉的標(biāo)簽頁列表和查看歷史菜單,想留下的自己刪,例:#appMenuViewHistorySidebar, 若後面還有選項(xiàng)的要保留<,>只刪#appMenuViewHistorySidebar #appMenuViewHistorySidebar,#appMenuClearRecentHistory,#sync-tabs-menuitem2,#appMenuRestoreLastSession,#PanelUI-recentlyClosedTabs-separator,.restoreallitem.subviewbutton,#PanelUI-historyItems,#PanelUI-historyItems-separator {display:none!important;} 歷史按鈕圖示: #history-panelmenu .toolbarbutton-icon { -moz-image-region: rect(0px, 0px, 0px, 0px); list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAatJREFUeNpi/P//PwMlgImBQsACIrRNbMHOuHb2CCNMQsvYxgFIJQCxPRALAPFBIJ4AVHMApgbkerALWFhYwBgG9Mwd5gP5+4E4HogVgFgAiP1BYiA5ZBcwgkwxtnGFBYQgEK8HYgcCLl9w7uieRJBesLVMUNsZGZkP/v//Vw+mSkFZ7VWQv99NEHvHrj2K165ckIFKJZjYe2wE0hvAOpmZWeGuh4WrnYPTza7agiVA5nYQP9LP2T6roi373OkTSiA+v6BgPtwAFlYWFPclJCSdSInwmcbIyLgYSfjsyUs3OS5dONMK4vz6+cscHo0gFyDjxYsXW9h7hy+y8wpDSSQ37jxYCVPDw8v3Fx6NyDGAD6xevdYJplZJWeUx3IC9G5cux6WJkXEZnP3v378mZhZmMNvSzHg73ACgX6MI2e4ZljgfGEMSIBeoqmk+ifB1mgM3gBDwiUybD02VDHz8fF+r8lOmAy29Dk8H+EBgbOZ+WMLi5eP/mp2euFFcRHACA3J6xgeOnr06JbOs+R0Iv/vwaTpQvTyKXkIGgDS8+fCpD4SBbC40OQaAAAMAZs+cq1JeSBMAAAAASUVORK5CYII=") !important; } |