MCPcopy Create free account
hub / github.com/hoothin/UserScripts / defaultDl

Function defaultDl

Picviewer CE+/dist.user.js:16921–16927  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16919 });
16920 let curSrc=curNode.dataset.src;
16921 let defaultDl=()=>{
16922 self.addDlSpan(img, imgSpan, curNode, e=>{
16923 e.stopPropagation();
16924 downloadImg(curNode.dataset.src, curNode.title, prefs.saveName);
16925 return true;
16926 });
16927 };
16928 if(curSrc.indexOf("data")===0){
16929 defaultDl();
16930 }else{

Callers 1

initFunction · 0.70

Calls 1

downloadImgFunction · 0.70

Tested by

no test coverage detected