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

Function getBody

Picviewer CE+/dist.user.js:12773–12775  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

12771 let canPolicySetHTML = true;
12772
12773 function getBody(doc){
12774 return doc.body || doc.querySelector('body') || doc;
12775 }
12776 function createHTML(html){
12777 const fragment = document.createDocumentFragment();
12778 if (html === null || html === undefined || html === '') return fragment;

Callers 6

visualLengthFunction · 0.70
getWindowSizeFunction · 0.70
getScrolledFunction · 0.70
initFunction · 0.70
popupImgWinFunction · 0.70
handleMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected