Greasy Fork is available in English.
用于提取和生成百度网盘秒传链接
自行解决了。
---
+++
@@ -199,15 +199,27 @@
ele1.appendChild(text1);
ele2.appendChild(text2);
content.appendChild(ele1);
content.appendChild(ele2);
}
}
-
+ const _dir = (dir || '').replace(/\/$/, '');
+ if(_dir){
+ const cBtn = Swal.getConfirmButton();
+ const btn = cBtn.cloneNode();
+ btn.textContent = '打开目录';
+ btn.style.backgroundColor = '#ecae3c';
+ btn.onclick = () => {
+ location.href = `${location.origin}/disk/home?#/all?vmode=list&path=${encodeURIComponent(_dir)}`;
+ Swal.close();
+ }
+ cBtn.before(btn);
+ }
}
- }).then(() => {
+ }).then((e) => {
+ if(!e.isConfirmed) return;
require('system-core:system/baseService/message/message.js').trigger('system-refresh');
});
failed = 0;
return;
}
var first_404 = false;