需要借助uBlock Origin,这是适用规则:
! Block CSDN domains in DuckDuckGo search resultsduckduckgo.com##article[data-nrn~="result"]:has(a[href*="csdn.net"])duckduckgo.com##article[data-nrn~="result"]:has(a[href*="csdn.com"])duckduckgo.com##article[data-nrn~="result"]:has(a[href*="csdnimg.cn"])duckduckgo.com##article[data-nrn~="result"]:has(a[href*="gitcode.com"])duckduckgo.com##article[data-nrn~="result"]:has(a[href*="gitcode.net"])duckduckgo.com##article[data-nrn~="result"]:has(a[href*="gitcode.host"])! Block CSDN domains in Google search resultsgoogle.*##div[class='MjjYud']:has(a[href*="csdn.net"])google.*##div[class='MjjYud']:has(a[href*="csdn.com"])google.*##div[class='MjjYud']:has(a[href*="csdnimg.cn"])google.*##div[class='MjjYud']:has(a[href*="gitcode.com"])google.*##div[class='MjjYud']:has(a[href*="gitcode.net"])google.*##div[class='MjjYud']:has(a[href*="gitcode.host"])! Network filters to block the domains entirely*://*.csdn.net/*$important*://*.csdn.com/*$important*://*.csdnimg.cn/*$important*://*.gitcode.com/*$important*://*.gitcode.net/*$important*://*.gitcode.host/*$important
什么?Chrome用不了吗,Firefox欢迎您。