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

Function checkChallenge

DarkMode.user.js:494–496  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

492
493 // Cloudflare CDN 的人机验证界面特殊处理
494 function checkChallenge() {
495 return (window.matchMedia('(prefers-color-scheme: dark)').matches && document.querySelector('head>meta[content*="https://challenges.cloudflare.com"]') && document.querySelector('body>script[nonce]'))
496 }
497
498 // 获取背景颜色值
499 function getColorValue(e) {

Callers 1

addStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected