【CSS】Mozilla広告ブロック【Adblock】
at SOFTWARE
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