MCPcopy Create free account
hub / github.com/XIU2/UserScript / checkDomain

Function checkDomain

DuckDuckGo-Enhanced.user.js:118–124  ·  view source on GitHub ↗
(domain)

Source from the content-addressed store, hash-verified

116
117 // 检查域名是否存在黑名单中
118 function checkDomain(domain) {
119 let blockDomain = GM_getValue('menu_blockDomain');
120 for (let i=0; i<blockDomain.length; i++) {
121 if (domain === blockDomain[i]) return true
122 }
123 return false
124 }
125
126
127 // 添加 rel 属性

Callers 1

ProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected