Fixed AnimePahe
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name aniSearch Enhancer
|
// @name aniSearch Enhancer
|
||||||
// @namespace http://git.nivram.io/marvinlehmann/ani-search-enhancer
|
// @namespace http://git.nivram.io/marvinlehmann/ani-search-enhancer
|
||||||
// @version 1.81
|
// @version 1.82
|
||||||
// @description Adds buttons to the info site of an anime on aniSearch which links you directly to various streaming portals.
|
// @description Adds buttons to the info site of an anime on aniSearch which links you directly to various streaming portals.
|
||||||
// @author Marvin Lehmann
|
// @author Marvin Lehmann
|
||||||
// @grant GM_xmlhttpRequest
|
// @grant GM_xmlhttpRequest
|
||||||
@@ -79,7 +79,7 @@ $(function () {
|
|||||||
onload: function (resp) {
|
onload: function (resp) {
|
||||||
if (resp.response.total > 0) {
|
if (resp.response.total > 0) {
|
||||||
const firstResult = resp.response.data[0];
|
const firstResult = resp.response.data[0];
|
||||||
const targetPage = 'https://animepahe.com/anime/' + firstResult.slug;
|
const targetPage = 'https://animepahe.com/anime/' + firstResult.session;
|
||||||
$stream_links.append(new Option("@ AnimePahe", targetPage));
|
$stream_links.append(new Option("@ AnimePahe", targetPage));
|
||||||
|
|
||||||
// Did we possibly get the wrong one?
|
// Did we possibly get the wrong one?
|
||||||
|
|||||||
Reference in New Issue
Block a user