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

Function getDocEle

DownloadAllContent/DownloadAllContent.user.js:1390–1400  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

1388 return result;
1389 };
1390 function getDocEle(str){
1391 var doc = null;
1392 try {
1393 doc = document.implementation.createHTMLDocument('');
1394 doc.documentElement.innerHTML = str;
1395 }
1396 catch (e) {
1397 console.log('parse error');
1398 }
1399 return doc;
1400 }
1401 function sortInnerPage(){
1402 var pageArrs=[],maxIndex=0,i,j;
1403 for(i=0;i<insertSigns.length;i++){

Callers 1

requestDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected