diff --git a/ani-search-enhancer.user.js b/ani-search-enhancer.user.js index 34fc52d..5f66435 100644 --- a/ani-search-enhancer.user.js +++ b/ani-search-enhancer.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name aniSearch Enhancer // @namespace http://git.nivram.io/marvinlehmann/ani-search-enhancer -// @version 1.80 +// @version 1.81 // @description Adds buttons to the info site of an anime on aniSearch which links you directly to various streaming portals. // @author Marvin Lehmann // @grant GM_xmlhttpRequest @@ -68,9 +68,9 @@ $(function () { $stream_links.append(new Option("> Stream List", "https://www.reddit.com/r/animepiracy/wiki/animestreamlist")); $stream_links.append(new Option("@ 9anime", "https://9anime.to/search?keyword=" + encodedTitle)); $stream_links.append(new Option("@ AnimeVibe", "https://animevibe.xyz/?s=" + encodedTitle)); - $stream_links.append(new Option("@ KissAnime", "http://kissanime.ru/Search/Anime?keyword=" + encodedTitle)); $stream_links.append(new Option("@ Proxer", "https://proxer.me/search?s=search&name=" + encodedTitle + "&typ=all-anime#top")); $stream_links.append(new Option("@ AnimeUltima", "https://www16.animeultima.eu/search?search=" + encodedTitle)); + $stream_links.append(new Option("@ Twist.moe (?)", "http://twist.moe")); GM_xmlhttpRequest({ method: 'GET', @@ -87,20 +87,8 @@ $(function () { // $masteraniButton.prop('title', 'Target page may be incorrect.'); // $masteraniButton.css('opacity', 0.5); // } - } - } - }); - - GM_xmlhttpRequest({ - method: 'GET', - url: 'https://twist.moe/', - onload: function (resp) { - if (resp) { - let parser = new DOMParser(); - let htmlDoc = parser.parseFromString(resp.responseText, 'text/html'); - let animeList = Array.from(htmlDoc.querySelectorAll('nav.series > ul > li'), x => [x.querySelector('span').innerText.trim(), x.querySelector('a').pathname]); - let target = animeList.find(x => x[0].startsWith(animeTitle)) - $stream_links.append(new Option("@ Twist.moe", "http://twist.moe" + target[1])); + } else { + $stream_links.append(new Option("@ AnimePahe (?)", "https://animepahe.com")); } } });