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

Method updateNum

Pagetual/pagetual.user.js:9903–9908  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9901 configCon.insertBefore(this.item, ruleBarInsertPos);
9902 }
9903 updateNum() {
9904 if (ruleParser.rules) {
9905 let rulesLength = ruleParser.rules.reduce((acc, cur) => acc + (cur.from == this.item.dataset.id ? 1 : 0), 0);
9906 setHTML(this.idSpan, `[rules: ${rulesLength}]`);
9907 }
9908 }
9909 saveSort() {
9910 let sort = [];
9911 [].forEach.call(this.item.parentNode.querySelectorAll("p[data-id]"), i => {

Callers 1

initConfigFunction · 0.95

Calls 1

setHTMLFunction · 0.70

Tested by

no test coverage detected