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))
にしただけ