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

Function packLink

DownloadAllContent/DownloadAllContent.user.js:1074–1085  ·  view source on GitHub ↗
(doc, item)

Source from the content-addressed store, hash-verified

1072 }
1073 }
1074 function packLink(doc, item) {
1075 if (customTitle) {
1076 try {
1077 let title = doc.querySelector(customTitle);
1078 if (title && title.innerText) {
1079 item.innerText = title.innerText;
1080 }
1081 } catch(e) {
1082 console.warn(e);
1083 }
1084 }
1085 }
1086 function getIframe() {
1087 if (iframePool && iframePool.length) return iframePool.shift();
1088 let iframe = document.createElement('iframe');

Callers 1

cbFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected