Skip to content

Commit

Permalink
Merge pull request #87 from kingname/patch-1
Browse files Browse the repository at this point in the history
正确隐藏window.navigator.webdriver
  • Loading branch information
tikazyq authored Mar 9, 2020
2 parents d907a68 + f708633 commit 4a8de77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spiders/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class BaseSpider {
this.editorSel = this.config.editorSel

// 隐藏navigator
await this.page.evaluate(() => {
await this.page.evaluateOnNewDocument(() => {
Object.defineProperty(navigator, 'webdriver', {
get: () => false
})
Expand Down

0 comments on commit 4a8de77

Please sign in to comment.