brave / cookiemonster

Automatically gobble up cookie consent notices
Mozilla Public License 2.0
4 stars 0 forks source link

Use window innerWidth/Height instead of documentElement bounding box #97

Closed antonok-edm closed 1 week ago

antonok-edm commented 1 week ago

apparently, document.documentElement.getBoundingClientRect can have a height of 0 despite having a sensible clientHeight. However, the clientHeight property has its own quirks. window.innerHeight may be the best option available.

observed on www.france24.com (although not added as a testcase yet since there is a false positive for the keyword check)