阅读:2514回复:6
fx29b5 如何去除书签菜单项目?(已解决)
原来已经隐藏了“未排序书签”菜单项,怎么再把“查看书签侧栏”和“订阅此页”两项以及它们下方的两根分割线隐藏呢?谢谢!
图片:图像 003.png ![]() 图片:图像 001.png ![]() |
|
1楼#
发布于:2014-04-06 13:35
|
|
|
2楼#
发布于:2014-04-06 10:34
用开发者工具里的Inspector查看 chrome://browser/content/browser.xul 页面就可以了,比dom inspector看起来顺眼些
|
|
3楼#
发布于:2014-04-05 14:27
|
|
4楼#
发布于:2014-04-05 13:59
haoever:用Dom Inspector找了半天还是没找着,哪位方便帮忙看一下丫回到原帖用风飘林的这个脚本,可以在任何菜单项上shift+右键直接定位 // ==UserScript== // @name inspectElement // @namespace inspectElement@zbinlin // @description shift + 右键 在 DOM Inspector 中查找并定位到相应的元素节点 // @author zbinlin // @homepage http://www.czcp.co.cc // @include * // @version 0.0.2 将 click 事件由冒泡型改为捕获型 // @version 0.0.1 // ==/UserScript== Components.utils.import("resource://gre/modules/AddonManager.jsm"); var inspectElement = { disabled: true, handleEvent: function (e) { if (!e.shiftKey || e.button != 2) return; e.stopPropagation(); e.preventDefault(); var elem = e.originalTarget; if (this.disabled) return alert("\u8BF7\u68C0\u67E5 DOM Inspector \u662F\u5426\u5B89\u88C5\u6216\u7981\u7528\u4E86\uFF01"); window.openDialog("chrome://inspector/content/", "_blank", "chrome, all, dialog=no", elem); this.closePopup(elem); }, closePopup: function (elem) { var parent = elem.parentNode; var list = []; while (parent != window && parent != null) { if (parent.localName == "menupopup") { list.push(parent); } parent = parent.parentNode; } var len = list.length; if (!len) return; list[len - 1].hidePopup(); } }; AddonManager.getAllAddons(function (addons) { for (i in addons) { if (addons<span style="font-style: italic;">.id == "inspector@mozilla.org" && addons<span style="font-style: italic;">.isActive) { inspectElement.disabled = false; break; } } }); window.addEventListener("click", inspectElement, true); window.addEventListener("unload", function (e) { window.removeEventListener("unload", arguments.callee, false); window.removeEventListener("click", inspectElement, true); }, false); |
|
|
5楼#
发布于:2014-04-05 13:30
用Dom Inspector找了半天还是没找着,哪位方便帮忙看一下丫
|
|
6楼#
发布于:2014-04-05 10:23
|
|
|