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

Function copyData

Picviewer CE+/dist.user.js:24936–24952  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

24934 };
24935
24936 function copyData(url) {
24937 if (typeof ClipboardItem != 'undefined') {
24938 urlToBlob(url, (blob, ext) => {
24939 if (blob) {
24940 try {
24941 navigator.clipboard.write([
24942 new ClipboardItem({
24943 [blob.type]: blob
24944 })
24945 ]);
24946 } catch (error) {
24947 console.error(error);
24948 }
24949 }
24950 }, true);
24951 } else _GM_setClipboard(url);
24952 }
24953
24954 //工具栏
24955 function FloatBarC(){

Callers 1

initFunction · 0.70

Calls 1

urlToBlobFunction · 0.70

Tested by

no test coverage detected