Hiding violations in Chrome Dev Console

前端 未结 3 1320
时光取名叫无心
时光取名叫无心 2020-12-24 13:35

Starting a few versions ago, Google Chrome has started showing JS violations in the developer console. While that can be useful sometimes, more often it is just cluttering t

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-24 14:01

    In latest Chrome (64.0.3282.167), add the following to your "Filter" box with "All levels" selected:

    -[Violation]
    

    Not sure if any sort of Regex is supported any longer (previous versions of Chrome had a checkbox that allowed you to filter by expression), but the - seems to be a "don't match".

提交回复
热议问题