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

Function getSource

src/content.js:11–17  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

9 window.location.href.search('gimmeSource=1') != -1) {
10
11 var getSource = function(elem) {
12 if (elem.childNodes.length > 0) {
13 return getSource(elem.childNodes[elem.childNodes.length - 1]);
14 } else {
15 return elem.innerText;
16 }
17 };
18
19 var sendResp = function(event) {
20 var data = JSON.parse(event.data);

Callers 1

sendRespFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…