MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / process

Function process

src/action.js:160–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159 if (i.tamperfire) {
160 var process = function() {
161 var elem = span;
162 var img = image;
163 var nImg = i.doneImage;
164 var done = function(cnt, update) {
165 if (elem) {
166 if (update) {
167 elem.textContent = update;
168 } else {
169 elem.textContent = elem.textContent.replace('\?', Number(cnt));
170 }
171 }
172 if (img) img.setAttribute("src", nImg);
173 };
174 if (i.tabid) {
175 getFireItems(i.tabid, done);
176 } else {
177 td1 = null;
178 td2 = null;
179 }
180 };
181 process();
182 }
183 if (td1) tr.appendChild(td1);

Callers 1

createActionsMenuFunction · 0.85

Calls 1

getFireItemsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…