【CSS】Mozilla広告ブロック【Adblock】
レス数が950を超えています。1000を超えると書き込みができなくなります。
0951名無しさん@お腹いっぱい。
2007/04/19(木) 12:42:26ID:iENILnjJ0オプションのチェックが正規表現検索より前に行われるようにしたやつを上げてみた
オプションが一致しなければ正規表現検索は行われないようになってるはず(>>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))
にしただけ
レス数が950を超えています。1000を超えると書き込みができなくなります。