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

Function TM_outerHTML

src/environment.js:41–45  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

39};
40
41var TM_outerHTML = function(elem){
42 var div = document.createElement('div');
43 div.appendChild(elem.cloneNode(true));
44 return div.innerHTML;
45};
46
47var TM_isPartOfDOM = function(elem, cnt){
48 if (cnt == undefined) cnt = 100; // just to be sure!

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…