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

Method getSelectorFromEle

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

Source from the content-addressed store, hash-verified

9266 }
9267
9268 getSelectorFromEle(ele) {
9269 return this.xpath.checked ? createXPathFromElement(ele) : geneSelector(ele, true);
9270 }
9271
9272 fillTempRuleTextarea() {
9273 if (!this.frame.classList.contains("showDetail") || !this.editTemp || !this.editTemp.pageElement) this.tempRule.value = JSON.stringify(this.getTempRule(), null, 4);

Callers 1

initMethod · 0.80

Calls 2

createXPathFromElementFunction · 0.85
geneSelectorFunction · 0.85

Tested by

no test coverage detected