Skip to content

Commit

Permalink
fix: chrome.hairline.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattwmaster58 committed Oct 26, 2024
1 parent 54ac346 commit 59a7e3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playwright_stealth/js/evasions/chrome.hairline.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
log("loading chrome.hairline.js");
// inspired by: https://intoli.com/blog/making-chrome-headless-undetectable/
const elementDescriptor = Object.getOwnPropertyDescriptor(HTMLElement.prototype, "offsetHeight");

utils.replaceProperty(HTMLDivElement.prototype, "offsetHeight", {
get: function () {
// hmmm not sure about this
Expand Down

0 comments on commit 59a7e3b

Please sign in to comment.