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

Function customFileSha

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

Source from the content-addressed store, hash-verified

513
514 // 自定义分享链接域名
515 function customFileSha() {
516 let newDomain = prompt('请输入 [自定义分享链接域名],点击确定后立即生效\n蓝奏云分享链接末尾的 ID 是唯一的,而前面的域名用谁的都一样\n示例:pan.lanzoui.com 或 wwe.lanzoui.com 或 xiu.lanzoui.com', GM_getValue('menu_customFileSha'));
517 if (newDomain === '') {
518 GM_setValue('menu_customFileSha', '');
519 registerMenuCommand(); // 重新注册脚本菜单
520 } else if (newDomain != null) {
521 GM_setValue('menu_customFileSha', newDomain);
522 registerMenuCommand(); // 重新注册脚本菜单
523 }
524 }
525
526
527 // 隐藏分享链接窗口(这样自动打开/复制分享链接时,不会一闪而过)

Callers 1

registerMenuCommandFunction · 0.85

Calls 1

registerMenuCommandFunction · 0.70

Tested by

no test coverage detected