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

Function endEle

DownloadAllContent/DownloadAllContent.user.js:1565–1567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1563 }
1564 });
1565 var endEle = ele => {
1566 return /^(I|STRONG|B|FONT|P|DL|DD|H\d)$/.test(ele.nodeName) && ele.children.length <= 1;
1567 };
1568 var largestContent,contents=pageData.querySelectorAll("span,div,article,p,td,pre"),largestNum=0;
1569 for(i=0;i<contents.length;i++){
1570 let content=contents[i],hasText=false,allSingle=true,item,curNum=0;

Callers 1

getPageContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected