|
阅读:1928回复:5
原始碼裡的尋找欄 擴展或腳本?
原始碼 Ctrl+U 裡的尋找欄,
能 自動關閉尋找欄.smartlyCloseFindbar.uc.js 嗎? 能 尋找自動高亮.enableFindbarHighlight.uc.js 嗎? 能 尋找欄滾動條增強.findbarMarker.uc.js 嗎? 能 顯示尋找結果數.FindNumber.uc.js 嗎? |
|
|
|
1楼#
发布于:2012-08-15 12:55
|
|
|
|
2楼#
发布于:2012-08-15 12:55
自带的不好用,用外部编辑器吧。
about:config里设置。 view_source.editor.path |
|
|
3楼#
发布于:2012-08-15 12:55
白左:载入地址包含chrome://global/content/viewSource.xul 试试? 怎用...?! // ==UserScript==
// @name enable Findbar Highlighting
// @id enableFindbarHighlighting@zbinlin
// @namespace http://script.bitcp.com/enablefindbarhighlighting
// @description 默认启用查找栏“全部高亮显示”
// @author zbinlin
// @homepage http://bitcp.com
// @version 0.0.1
// ==/UserScript==
(function () {
"use strict"
let gFindBar = window.gFindBar || document.getElementById("FindToolbar");
if (!gFindBar) return;
gFindBar.watch("hidden", function (prop, oldV, newV) {
if (!newV) {
highlighting();
}
return newV;
});
function highlighting() {
let highlightBtn = gFindBar.getElement('highlight');
highlightBtn.setAttribute("checked", "true");
highlightBtn.setAttribute("checkState", "1");
}
function handleEvent(e) {
gFindBar.unwatch("hidden");
window.removeEventListener("unload", handleEvent, false);
}
window.addEventListener("unload", handleEvent, false);
})(); |
|
|
|
4楼#
发布于:2012-08-15 12:55
载入地址包含chrome://global/content/viewSource.xul 试试?
不过好像不可以的样子…… |
|
|
|
5楼#
发布于:2012-08-15 12:55
求腳本
|
|
|