MCPcopy Create free account
hub / github.com/hoothin/UserScripts / getTarget

Method getTarget

Pagetual/pagetual.user.js:9227–9232  ·  view source on GitHub ↗
(ele)

Source from the content-addressed store, hash-verified

9225 }
9226
9227 getTarget(ele) {
9228 while (ele.parentNode && (ele.offsetWidth === 0 || ele.offsetHeight === 0)) {
9229 ele = ele.parentNode;
9230 }
9231 return ele;
9232 }
9233
9234 close() {
9235 this.clearSigns();

Callers 1

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected