我有 Firefox 时尚插件。
我想知道搜索时仅显示 images.google.com 中的图像的 css 规则。
从萤火虫我发现img标签的css选择器是
html body#gsr.srp div#main div#cnt.mdm div#rcnt div.col div#center_col div#res.med div#search div#ires ol#rso li div#rg div#rg_s div.rg_di a.rg_l img.rg_i
我试过了
*:not(html body#gsr.srp div#main div#cnt.mdm div#rcnt div.col div#center_col div#res.med div#search div#ires ol#rso li div#rg div#rg_s div.rg_di a.rg_l img.rg_i){display: none;}
但这不起作用,我发现 :not(...) 只能采用简单的选择器。
另一种方法是
html{display: none;}
html body#gsr.srp div#main div#cnt.mdm div#rcnt div.col div#center_col div#res.med div#search div#ires ol#rso li div#rg div#rg_s div.rg_di a.rg_l img.rg_i{display: block;}
但这隐藏了一切,什么也不显示。