This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="content">123</div> |
本歌单由Listen1创建, 歌曲数:1,歌单数:1,点击查看更多
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg viewBox="0, 0, 91, 94" class="warm-face"> | |
<image xlink:href="//yun.duiba.com.cn/h5/millionaire-custom/top-180118/assets/faces.png" width="3458" height="94" /> | |
</svg> | |
.warm-face { | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from : https://github.com/chrisguttandin/standardized-audio-context/blob/master/test/integration/memory.js | |
const MemoryFileSystem = require('memory-fs'); // eslint-disable-line no-undef | |
const puppeteer = require('puppeteer'); // eslint-disable-line no-undef | |
const webpack = require('webpack'); // eslint-disable-line no-undef | |
// eslint-disable-next-line padding-line-between-statements | |
const compileBundle = () => { | |
return new Promise((resolve, reject) => { | |
const memoryFileSystem = new MemoryFileSystem(); |
if ('storage' in navigator && 'estimate' in navigator.storage) {
const {usage, quota} = await navigator.storage.estimate();
console.log(`Using ${usage} out of ${quota} bytes.`);
if(quota < 120000000){
console.log('Incognito')
} else {
console.log('Not Incognito')
}
It seems he's doing something with header detection. I used Puppeteer to play around with the site and various configurations I use when scraping. In headless Chrome, the "Accept-Language" header is not sent. In Puppeteer, one can force the header to be sent by doing:
page.setExtraHTTPHeaders({ 'Accept-Language': 'en-US,en;q=0.9' })
However, Puppeteer sends that header as lowercase: accept-language: en-US,en;q=0.9
So it seems the detection is as simply: if there is no 'Accept-Language' header (case-sensitive), then "Headless Chrome"; else, "Not Headless Chrome".
OlderNewer