MCPcopy Index your code
hub / github.com/hoothin/UserScripts / adjustSignDiv

Method adjustSignDiv

Pagetual/pagetual.user.js:9260–9266  ·  view source on GitHub ↗
(div, target)

Source from the content-addressed store, hash-verified

9258 }
9259
9260 adjustSignDiv(div, target) {
9261 let rect = target.getBoundingClientRect();
9262 this.setImportant(div, "width", rect.width + "px");
9263 this.setImportant(div, "height", rect.height + "px");
9264 this.setImportant(div, "left", rect.left + window.scrollX + "px");
9265 this.setImportant(div, "top", rect.top + window.scrollY + "px");
9266 }
9267
9268 getSelectorFromEle(ele) {
9269 return this.xpath.checked ? createXPathFromElement(ele) : geneSelector(ele, true);

Callers 2

initMethod · 0.80
checkInputSelectorMethod · 0.80

Calls 1

setImportantMethod · 0.95

Tested by

no test coverage detected