本帖最后由 一颗心一个名 于 2021-9-14 19:14 编辑
[backcolor=rgba(211, 211, 211, 0.86)][size=1.2em]Text.
解决方案https://bbs.kafan.cn/thread-2104467-1-1.html
找到了关键词
设定 无效 特意求助大家 谢谢
/*选择所有标签页*/
#context_SelectAllTabs {
display:none!important;
}
/*为标签页添加书签*/
#context_BookmarkTab {
display:none!important;
}
历史从新标签页打开也无效
// ==UserScript==
// @name newtabfromhistory.uc.js
// @namespace https://www.camp-firefox.de/foru ... ?p=1090093#p1090093
// @description Links aus Chronik in neuem Tab ??ffnen
// @author aborix
// @compatibility 62+
// @version 0.0.2
// ==/UserScript==
(function() {
if (location != 'chrome://browser/content/browser.xul')
return;
eval('PlacesUIUtils.openNodeWithEvent = ' + PlacesUIUtils.openNodeWithEvent.toString()
.replace(' && PlacesUtils.nodeIsBookmark(aNode)', '')
.replace('getBrowserWindow(window)',
'(window && window.document.documentElement.getAttribute("windowtype") == "navigator:browser") ? window : BrowserWindowTracker.getTopWindow()')
);
let onPopupshowing = function() {
let historyMenu = document.getElementById('history-menu');
if (!historyMenu._placesView) {
new HistoryMenu(event);
historyMenu._placesView._onCommand = function HM__onCommand(aEvent) {
let placesNode = aEvent.target._placesNode;
if (placesNode) {
PlacesUIUtils.openNodeWithEvent(placesNode, aEvent);
};
};
};
};
let historyPopup = document.getElementById('goPopup');
historyPopup.setAttribute('onpopupshowing', '(' + onPopupshowing.toString() + ')()');
})();
|