获得徽章 6
- 一行代码给网页元素加边框,用于调试布局 [].forEach.call($$('*'), function (a) {
a.style.outline = '1px solid #' + (~~(Math.random() * (1 << 24))).toString(16);
});等人赞过评论9 - 自动化爬虫检测
function botCheckMate() {
const iframe = document.createElement("iframe");
iframe.src = "data:text/html,<body></body>";
document.body.appendChild(iframe);
iframe.contentWindow.open("", "", "top=9999");
return false;
}
let isBot = botCheckMate();展开评论点赞 - 2点赞