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

Function hideSha

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

Source from the content-addressed store, hash-verified

526
527 // 隐藏分享链接窗口(这样自动打开/复制分享链接时,不会一闪而过)
528 function hideSha(){
529 if (menu_value('menu_open_fileSha') || menu_value('menu_copy_fileSha')) { // [自动复制分享链接] 或 [自动打开分享链接] 任意一个功能开启时才继续
530 mainframe.document.lastElementChild.appendChild(document.createElement('style')).textContent = '#f_sha {display: none !important;}';
531 }
532 }
533
534
535 // 禁止浏览器返回(并绑定新的返回事件)

Callers

nothing calls this directly

Calls 1

menu_valueFunction · 0.70

Tested by

no test coverage detected