MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins /

Class

subinfo/subinfo.ts:297–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 const urlMatch = url.match(/(https?:\/\/)([^/]+)/);
296 if (!urlMatch) return { website: null, websiteName: null };
297 const baseUrl = urlMatch[1] + urlMatch[2];
298
299 const headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' };
300

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected