【CSS】Mozilla広告ブロック【Adblock】at SOFTWARE
【CSS】Mozilla広告ブロック【Adblock】 - 暇つぶし2ch951:名無しさん@お腹いっぱい。
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