MCPcopy Index your code
hub / github.com/MALSync/MALSync / zoro

Function zoro

webpackConfig/autoUrls.mjs:35–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33// pages
34
35async function zoro() {
36 const response = await fetch('https://hianime.tv');
37 const body = await response.text();
38
39 const $ = cheerio.load(body);
40
41 const urls = $('ul.site-opt > li > a')
42 .map((i, el) => new URL($(el).attr('href')))
43 .get();
44
45 let formattedUrls = [];
46 for (const url of urls) {
47 formattedUrls.push('*://' + url.hostname + '/*');
48 }
49 addPageUrls('Zoro', formattedUrls);
50}
51
52async function kickassanime() {
53 const response = await fetch('https://watchanime.io');

Callers

nothing calls this directly

Calls 3

fetchFunction · 0.85
addPageUrlsFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected