MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / showDorkList

Function showDorkList

Script/FastDork.js:2218–2246  ·  view source on GitHub ↗
({ focusTextarea = true } = {})

Source from the content-addressed store, hash-verified

2216 return true;
2217 }
2218 function showDorkList({ focusTextarea = true } = {}) {
2219 console.log(`[FastDork.js] showDorkList() called.`);
2220
2221 const tabs = document.querySelectorAll("#icetab-container > .icetab");
2222 const tabContents = document.querySelectorAll(
2223 "#icetab-content > .tabcontent"
2224 );
2225 const targetIndex = 1;
2226 if (
2227 !tabs ||
2228 !tabContents ||
2229 tabs.length <= targetIndex ||
2230 tabContents.length <= targetIndex
2231 ) {
2232 return;
2233 }
2234
2235 console.log(`[showDorkList] Switching UI to Tab ${targetIndex + 1}.`);
2236 tabs.forEach((tab) => tab.classList.remove("current-tab"));
2237 tabContents.forEach((content) => content.classList.remove("tab-active"));
2238 tabs[targetIndex]?.classList.add("current-tab");
2239 tabContents[targetIndex]?.classList.add("tab-active");
2240 syncActiveTabHeight();
2241 if (focusTextarea) {
2242 setTimeout(() => {
2243 UI.payloadInput?.focus();
2244 }, 50);
2245 }
2246 }
2247 async function loadAndDisplayUserSiteSelectors() {
2248 if (!UI.siteSettingsListContainer) {
2249 console.error("Site settings list container not found.");

Callers 5

initializeFunction · 0.85

Calls 1

syncActiveTabHeightFunction · 0.85

Tested by

no test coverage detected