Skip to content

Commit

Permalink
Fix: 自动化工具检测页面
Browse files Browse the repository at this point in the history
  • Loading branch information
TRHX committed Dec 6, 2023
1 parent 1fceb81 commit a911b24
Showing 1 changed file with 81 additions and 87 deletions.
168 changes: 81 additions & 87 deletions docs/05.辅助查询/03.指纹信息/03.自动化工具检测.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,90 +4,84 @@ date: 2023-12-06 11:37:28
permalink: /pages/bot-test/
article: false
---
<!DOCTYPE html>
<html lang="zh">
<head>
<script src="https://lib.baomitu.com/modernizr/latest/modernizr.min.js"></script>
<script type="application/javascript" src="https://cdn.itbob.cn/spiderapi/detect_headless.js"></script>
<style>
#headless-table, #headless-table th, #headless-table td {
border: 2px solid black;
border-collapse: collapse;
padding: 10px;
text-align: center;
}
#headless-table th {
font-size: large;
}
#headless-table td:nth-child(1) {
max-width: 150px;
}
#headless-table td:nth-child(2) {
max-width: 300px;
}
#headless-table td:nth-child(3) {
max-width: 150px;
}
.headful {
background-color: #00ff00 !important;
}
.headless {
background-color: #ff0000 !important;
}
.undefined {
background-color: #ffff00 !important;
}
.explain-box {
height: 15px;
width: 15px;
margin-right: 3px;
margin-left: 3px;
border: 1px solid black;
display: inline-block;
}
.target-box {
text-align: center;
font-size: 10px;
color: white;
background-color: #0078D7;
}
.headless-div {
text-align: center;
}
</style>
</head>
<body>
<h1 class="headless-div">Automated/Headless browser detection</h1>
<div class="headless-div">
颜色状态:
<div class="explain-box headful"></div> normal 正常
<div class="explain-box headless"></div> abnormal 异常
<div class="explain-box undefined"></div> suspicious 可疑
</div>
<br>
<div class="headless-div">
检测对象:
<div class="explain-box target-box">SE</div> selenium
<div class="explain-box target-box">PH</div> phantomjs
<div class="explain-box target-box">PL</div> playwright
<div class="explain-box target-box">PP</div> puppeteer / pyppeteer
</div>
<br>
<table id="headless-table">
<tr>
<th>测试项目</th>
<th>测试结果</th>
<th>正确参考</th>
<th>检测对象</th>
</tr>
</table>
<script>
setTimeout(function() {
headlessTests.forEach(function(test) {
generateTableRow(test);
testBrowser(test).then(function(res) {});
});
}, 500)
</script>
</body>
</html>
<style>
#headless-table, #headless-table th, #headless-table td {
border: 2px solid black;
border-collapse: collapse;
padding: 10px;
text-align: center;
}
#headless-table th {
font-size: large;
}
#headless-table td:nth-child(1) {
max-width: 150px;
}
#headless-table td:nth-child(2) {
max-width: 300px;
}
#headless-table td:nth-child(3) {
max-width: 150px;
}
.headful {
background-color: #00ff00 !important;
}
.headless {
background-color: #ff0000 !important;
}
.undefined {
background-color: #ffff00 !important;
}
.explain-box {
height: 15px;
width: 15px;
margin-right: 3px;
margin-left: 3px;
border: 1px solid black;
display: inline-block;
}
.target-box {
text-align: center;
font-size: 10px;
color: white;
background-color: #0078D7;
}
.headless-div {
text-align: center;
}
</style>
<h1 class="headless-div">Automated/Headless browser detection</h1>
<div class="headless-div">
颜色状态:
<div class="explain-box headful"></div> normal 正常
<div class="explain-box headless"></div> abnormal 异常
<div class="explain-box undefined"></div> suspicious 可疑
</div>
<br>
<div class="headless-div">
检测对象:
<div class="explain-box target-box">SE</div> selenium
<div class="explain-box target-box">PH</div> phantomjs
<div class="explain-box target-box">PL</div> playwright
<div class="explain-box target-box">PP</div> puppeteer / pyppeteer
</div>
<br>
<table id="headless-table">
<tr>
<th>测试项目</th>
<th>测试结果</th>
<th>正确参考</th>
<th>检测对象</th>
</tr>
</table>
<script src='https://lib.baomitu.com/modernizr/latest/modernizr.min.js'></script>
<script src='https://cdn.itbob.cn/spiderapi/detect_headless.js'></script>
<script>
setTimeout(function() {
headlessTests.forEach(function(test) {
generateTableRow(test);
testBrowser(test).then(function(res) {});
});
}, 500)
</script>

0 comments on commit a911b24

Please sign in to comment.