Rename to hkt.sh

This commit is contained in:
mango
2026-03-21 01:10:53 +08:00
parent 76a263d0f9
commit 8f1171fe99
6676 changed files with 1724268 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
'use strict'
const puppeteer = require('puppeteer-extra')
puppeteer.use(require('puppeteer-extra-plugin-stealth')())
const detectHeadless = require('./detect-headless')
;(async () => {
const browser = await puppeteer.launch({ args: ['--no-sandbox'] })
const page = await browser.newPage()
page.on('console', msg => {
console.log('Page console: ', msg.text())
})
await page.goto('about:blank')
const detectionResults = await page.evaluate(detectHeadless)
console.assert(
Object.keys(detectionResults).length,
'No detection results returned.'
)
await browser.close()
})()