每夜版ABP貌似查找不能用。。。
firefox吧
全部回复
仅看楼主
level 14
dsyo2008 楼主
@文科980195412 帮我召唤。。你懂的!我忘了没加@好友保存。。。[乖]
——我喂自己袋盐
>>Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0I
2013年09月16日 12点09分 1
吧务
level 15
@狐吧好螃蟹
2013年09月16日 12点09分 2
@好好吃的螃蟹
2013年09月16日 12点09分
回复 幽理之刻 :幽理妹纸快来给我咬一口
2013年09月16日 12点09分
回复 文科980195412 :不ˋ不可以咬啦
2013年09月16日 12点09分
回复 文科980195412 :在ˋ在大庭广众之下咬实在[害羞]
2013年09月16日 12点09分
吧务
level 15
2013年09月16日 12点09分 4
[狂汗]终于召唤了吗?
2013年09月16日 12点09分
level 14
dsyo2008 楼主
——我喂自己袋盐
>>Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0I
2013年09月16日 12点09分 5
level 15
貌似除了主窗体包含查找栏(findbar)的都不可视。例如stylish编辑窗口的查找栏
@-moz-document url("chrome://adblockplus/content/ui/filters.xul"){
findbar{
visibility:visible!important;
opacity:1!important;
transform:none!important;
}
}
2013年09月16日 13点09分 6
可以显示 但是输入任何文字不会自动找到。。。[狂汗]
2013年09月16日 13点09分
回复 dsyo2008 :那没办法了,等官方修复吧。应该是这个bug引起的https://bugzilla.mozilla.org/show_bug.cgi?id=666816
2013年09月16日 14点09分
回复 黒仪大螃蟹 :[乖]理解。。。
2013年09月16日 14点09分
level 15
[无效] http://pan.baidu.com/share/link?shareid=26144415&uk=2467242534
修改版a
bp
,aup,stylish修复查找栏的问题。
虽然错误控制抬还报错,但应该影响不大。
没有文档说明只能做到这样了。I
2013年09月17日 10点09分 7
[太开心]厉害。。。。
2013年09月17日 11点09分
回复 dsyo2008 :忘记说了,这3个修改都是只兼容9.13以后的nightly
2013年09月17日 11点09分
回复 黒仪大螃蟹 :哦。。。
2013年09月17日 11点09分
求diff
2013年09月17日 12点09分
level 15
引用 @patwonder (7楼,楼中楼)
求diff
———————————————————————————
--- {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}\chrome\content\ui\filters-search.js Mon Sep 9 13:20:32 2013
+++ {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}\chrome\content\ui\filters-search.js Tue Sep 17 20:23:12 2013
@@ -27,7 +27,7 @@
init: function()
{
let findbar = E("findbar");
- findbar.browser = FilterSearch.fakeBrowser;
+ findbar._browser = FilterSearch.fakeBrowser;
findbar.addEventListener("keypress", function(event)
{
@@ -134,7 +134,7 @@
*/
FilterSearch.fakeBrowser =
{
- fastFind:
+ finder:
{
searchString: null,
foundLink: null,
@@ -142,7 +142,7 @@
caseSensitive: false,
get currentWindow() FilterSearch.fakeBrowser.contentWindow,
- find: function(searchString, linksOnly)
+ fastFind: function(searchString, linksOnly)
{
this.searchString = searchString;
return FilterSearch.search(this.searchString, 0, this.caseSensitive);
@@ -157,7 +157,12 @@
init: function() {},
setDocShell: function() {},
setSelectionModeAndRepaint: function() {},
- collapseSelection: function() {}
+ collapseSelection: function() {},
+ addResultListener: function() {},
+ removeResultListener: function() {},
+ highlight: function() {},
+ focusContent: function () {},
+ removeSelection: function () {}
},
currentURI: Utils.makeURI("http://example.com/"),
contentWindow:I
2013年09月17日 12点09分 8
abp的
2013年09月17日 12点09分
回复 黒仪大螃蟹 :谢啦 要的就是这个
2013年09月17日 12点09分
level 15
@黑仪大螃蟹
附上不报错的改法,理论上各版本通用(代码来自解雇IE,原始代码是abp老版本的):
diff --git a/extension/chrome/content/rules-search.js b/extension/chrome/content/rules-search.js
index 34daef3..8282afa 100644
--- a/extension/chrome/content/rules-search.js
+++ b/extension/chrome/content/rules-search.js
@@ -4,6 +4,8 @@
* http://mozilla.org/MPL/2.0/.
*/
+ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
+
/**
* Implementation of the rule search functionality.
* @class
@@ -16,7 +18,7 @@ var RuleSearch =
init: function()
{
let findbar = E("findbar");
- findbar.browser = RuleSearch.fakeBrowser;
+ findbar.browser = findbar._browser = RuleSearch.fakeBrowser;
findbar.addEventListener("keypress", function(event)
{
@@ -146,7 +148,13 @@ RuleSearch.fakeBrowser =
init: function() {},
setDocShell: function() {},
setSelectionModeAndRepaint: function() {},
- collapseSelection: function() {}
+ collapseSelection: function() {},
+ // compatibility with Nightly 26+
+ addResultListener: function() {},
+ removeResultListener: function() {},
+ highlight: function() {},
+ focusContent: function () {},
+ removeSelection: function () {}
},
currentURI: Utils.makeURI("http://example.com/"),
contentWindow:
@@ -163,6 +171,15 @@ RuleSearch.fakeBrowser =
{
E("rulesTree").boxObject.scrollByPages(num);
},
+ QueryInterface: XPCOMUtils.generateQI([Ci.nsIInterfaceRequestor]),
+ getInterface: function(aIID) {
+ if (aIID.equals(Ci.nsIDOMWindowUtils))
+ return this;
+ throw Cr.NS_NOINTERFACE;
+ },
+ get screenPixelsPerCSSPixel() {
+ return 1.0;
+ }
},
addEventListener: function(event, handler, capture)
@@ -175,6 +192,10 @@ RuleSearch.fakeBrowser =
},
};
+// compatibility with Nightly 26+
+RuleSearch.fakeBrowser.finder = RuleSearch.fakeBrowser.fastFind;
+RuleSearch.fakeBrowser.finder.fastFind = RuleSearch.fakeBrowser.fastFind.find;
+
window.addEventListener("load", function()
{
RuleSearch.init();
I
2013年09月17日 13点09分 9
@黒仪大螃蟹 我一直以为第一个字是黑。。I
2013年09月17日 13点09分
回复 patwonder :[真棒]
2013年09月17日 13点09分
回复 patwonder :[滑稽]小学生暴露了吧
2013年09月17日 13点09分
回复 patwonder :哪个文件。。。我要改下
2013年09月17日 13点09分
1