MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / has

Function has

scripts/table_addNumberColumn.js:14–17  ·  view source on GitHub ↗
(par, ctag)

Source from the content-addressed store, hash-verified

12 contentScript: {
13 onClick: function () {
14 function has(par, ctag) {
15 for (var k = 0; k < par.childNodes.length; ++k)
16 if (par.childNodes[k].tagName == ctag) return true;
17 }
18
19 function add(par, ctag, text) {
20 var c = document.createElement(ctag);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected