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

Function openGallery

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

Source from the content-addressed store, hash-verified

27346 }
27347
27348 async function openGallery(){
27349 if(!gallery){
27350 gallery=new GalleryC();
27351 gallery.data=[];
27352 }
27353 var allData=await gallery.getAllValidImgs();
27354 if(allData.length<1)return;
27355 gallery.data=allData;
27356 gallery.load(gallery.data);
27357 return gallery;
27358 }
27359
27360 function getActiveElement(root) {
27361 const activeEl = root.activeElement;

Callers 2

keydownFunction · 0.70
initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected