Fixed text color of buttons
.. and reformatted the code.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name aniSearch Enhancer
|
// @name aniSearch Enhancer
|
||||||
// @namespace http://github.com/marvinl97/ani-search-enhancer
|
// @namespace http://github.com/marvinl97/ani-search-enhancer
|
||||||
// @version 1.0
|
// @version 1.01
|
||||||
// @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 (marvinl97)
|
// @author Marvin Lehmann (marvinl97)
|
||||||
// @grant none
|
// @grant none
|
||||||
@@ -19,10 +19,12 @@ $(document).ready(function()
|
|||||||
if (animeTitleElem !== null)
|
if (animeTitleElem !== null)
|
||||||
{
|
{
|
||||||
var animeTitle = animeTitleElem.innerText;
|
var animeTitle = animeTitleElem.innerText;
|
||||||
if(animeTitle) {
|
if (animeTitle)
|
||||||
|
{
|
||||||
$('#page-action').append('<li id="page-action-search"><a href="http://kissanime.ru/Search/Anime?keyword=' + animeTitle + '" target="_blank">KissAnime</a></li>');
|
$('#page-action').append('<li id="page-action-search"><a href="http://kissanime.ru/Search/Anime?keyword=' + animeTitle + '" target="_blank">KissAnime</a></li>');
|
||||||
$('#page-action').append('<li id="page-action-search"><a href="https://proxer.me/search?s=search&name=' + animeTitle + '&typ=all-anime#top" target="_blank">Proxer</a></li>');
|
$('#page-action').append('<li id="page-action-search"><a href="https://proxer.me/search?s=search&name=' + animeTitle + '&typ=all-anime#top" target="_blank">Proxer</a></li>');
|
||||||
$('#page-action').append('<li id="page-action-search"><a href="http://9anime.to/search?keyword=' + animeTitle + '&typ=all-anime#top" target="_blank">9Anime</a></li>');
|
$('#page-action').append('<li id="page-action-search"><a href="http://9anime.to/search?keyword=' + animeTitle + '" target="_blank">9Anime</a></li>');
|
||||||
|
$('li#page-action-search a').css("color", $('li#page-action-search').css("color"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user