【CSS】Mozilla広告ブロック【Adblock】 at SOFTWARE
[2ch|▼Menu]
951:名無しさん@お腹いっぱい。
07/04/19 12:42:26 iENILnjJ0
URLリンク(kasamatusan.sakura.ne.jp)
オプションのチェックが正規表現検索より前に行われるようにしたやつを上げてみた
オプションが一致しなければ正規表現検索は行われないようになってるはず(>>936の挙動)

変更してるのはprefs.jsのmatchesAnyInternalの部分

if (typeof pattern != "undefined" && pattern.regexp.test(location) &&
(!("contentType" in pattern) || typeMap[contentType] & pattern.contentType))

if (typeof pattern != "undefined" && (!("contentType" in pattern) || typeMap[contentType] & pattern.contentType) &&
pattern.regexp.test(location))
に、
if (list[i].regexp.test(location) && (!("contentType" in list[i]) || typeMap[contentType] & list[i].contentType))

if ((!("contentType" in list[i]) || typeMap[contentType] & list[i].contentType) && list[i].regexp.test(location))
にしただけ


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

4414日前に更新/308 KB
担当:undef