MCPcopy
hub / github.com/hoothin/UserScripts / getBody

Function getBody

Pagetual/pagetual.user.js:4528–4530  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

4526 var tryTimes = 0, showedLastPageTips = false, rate = 1, author = '';
4527
4528 function getBody(doc) {
4529 return doc.body || doc.querySelector('body') || doc;
4530 }
4531
4532 function getElementByXpath(xpath, doc, contextNode) {
4533 if (doc && doc.ownerDocument) doc = doc.ownerDocument;

Callers 15

scrollToShowMethod · 0.70
waitElementMethod · 0.70
getPageElementMethod · 0.70
checkElementMethod · 0.70
changeVisibilityMethod · 0.70
getPageMethod · 0.70
verifyNextMethod · 0.70
getNextLinkMethod · 0.70
preloadMethod · 0.70
beginLoadingMethod · 0.70
setPageTopMethod · 0.70
initMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected