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

Function getLastFolderID

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

Source from the content-addressed store, hash-verified

557
558 // 获取上个文件夹 ID(用于浏览器后退事件)
559 function getLastFolderID() {
560 lastFolderID = null
561 let f_tpspan = mainframe.document.querySelectorAll('span.f_tpspan');
562 if (f_tpspan.length > 1) {
563 lastFolderID = /-?\d+/.exec(f_tpspan[f_tpspan.length - 2].getAttribute('onclick'))[0];
564 }
565 }
566
567
568 // 输入密码后回车确认

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected