MCPcopy Create free account
hub / github.com/XIU2/UserScript / getFolders

Function getFolders

Lanzou-Enhanced.user.js:758–772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

756 }
757
758 function getFolders() {
759 const list = frameDoc.querySelector('#sub_folder_list');
760 const folders = list.childNodes;
761 const foldersInfo = [];
762 for (const folder of folders) {
763 const name = folder.querySelector('.f_tb > .f_name2 > span.follink > span').textContent;
764 foldersInfo.push({
765 info: {
766 name: name,
767 },
768 node: folder
769 })
770 }
771 return foldersInfo;
772 }
773 // 转换文件大小
774 function parseByteSize(text) {
775 const unit = ['B', 'K', 'M', 'G', 'T'];

Callers 1

sortFolderListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected