Fixed layout
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name aniSearch Enhancer
|
// @name aniSearch Enhancer
|
||||||
// @namespace http://github.com/marvinlehmann/ani-search-enhancer
|
// @namespace http://github.com/marvinlehmann/ani-search-enhancer
|
||||||
// @version 1.3
|
// @version 1.4
|
||||||
// @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 none
|
// @grant none
|
||||||
@@ -14,7 +14,7 @@ this.$ = this.jQuery = jQuery.noConflict(true);
|
|||||||
|
|
||||||
$(document).ready(function()
|
$(document).ready(function()
|
||||||
{
|
{
|
||||||
$('head').append('<style>#page-action li{font-size:xx-small;text-overflow:clip;} #page-action-search:before{content:"\\f002";}</style>');
|
$('head').append('<style>#page-action-search:before{content:"\\f002";}</style>');
|
||||||
var animeTitleElem = document.getElementById('htitle');
|
var animeTitleElem = document.getElementById('htitle');
|
||||||
if (animeTitleElem !== null)
|
if (animeTitleElem !== null)
|
||||||
{
|
{
|
||||||
@@ -23,9 +23,9 @@ $(document).ready(function()
|
|||||||
{
|
{
|
||||||
var encodedTitle = encodeURI(animeTitle).replace(/'/g, "%27");
|
var encodedTitle = encodeURI(animeTitle).replace(/'/g, "%27");
|
||||||
if (document.getElementById('page-action') === null) $('#infodetails').before('<div><nav><ul id="page-action"></ul></nav></div>');
|
if (document.getElementById('page-action') === null) $('#infodetails').before('<div><nav><ul id="page-action"></ul></nav></div>');
|
||||||
$('#page-action').append('<li id="page-action-search" onclick="window.open(\'http://kissanime.ru/Search/Anime?keyword=' + encodedTitle + '\', \'_blank\');">KissAnime</li>');
|
$('#page-action').append('<li id="page-action-search" onclick="window.open(\'http://kissanime.ru/Search/Anime?keyword=' + encodedTitle + '\', \'_blank\');"><span>KissAnime</span></li>');
|
||||||
$('#page-action').append('<li id="page-action-search" onclick="window.open(\'https://proxer.me/search?s=search&name=' + encodedTitle + '&typ=all-anime#top\', \'_blank\');">Proxer</li>');
|
$('#page-action').append('<li id="page-action-search" onclick="window.open(\'https://proxer.me/search?s=search&name=' + encodedTitle + '&typ=all-anime#top\', \'_blank\');"><span>Proxer</span></li>');
|
||||||
$('#page-action').append('<li id="page-action-search" onclick="window.open(\'https://9anime.to/search?keyword=' + encodedTitle + '\', \'_blank\');">9Anime</li>');
|
$('#page-action').append('<li id="page-action-search" onclick="window.open(\'https://9anime.to/search?keyword=' + encodedTitle + '\', \'_blank\');"><span>9Anime</span></li>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user