MCPcopy Index your code
hub / github.com/hoothin/UserScripts / copyLink

Function copyLink

True URL downloads/True URL downloads.user.js:433–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432 initLang(i18n);
433 function copyLink() {
434 showLinkFrame(function(r){
435 if(r){
436 _GM_setClipboard(r);
437 _GM_notification("复制成功!");
438 }else{
439 _GM_notification("当前页面没有资源!");
440 }
441 });
442 }
443 _GM_registerMenuCommand("Toggle url decode on this page", ()=>{
444 storage.setItem("dontDecode", !dontDecode);
445 location.reload();

Callers 1

YuFunction · 0.70

Calls 1

showLinkFrameFunction · 0.85

Tested by

no test coverage detected