()
| 33 | // pages |
| 34 | |
| 35 | async 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 | |
| 52 | async function kickassanime() { |
| 53 | const response = await fetch('https://watchanime.io'); |
nothing calls this directly
no test coverage detected