Initial release
This commit is contained in:
28
ani-search-enhancer.user.js
Normal file
28
ani-search-enhancer.user.js
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
// ==UserScript==
|
||||||
|
// @name aniSearch Enhancer
|
||||||
|
// @namespace http://github.com/marvinl97/ani-search-enhancer
|
||||||
|
// @version 1.0
|
||||||
|
// @description Adds buttons to the info site of an anime on aniSearch which links you directly to various streaming portals.
|
||||||
|
// @author Marvin Lehmann (marvinl97)
|
||||||
|
// @grant none
|
||||||
|
// @include http://www.anisearch.de/anime/*
|
||||||
|
// @require http://code.jquery.com/jquery-latest.js
|
||||||
|
// @downloadURL http://raw.githubusercontent.com/marvinl97/ani-search-enhancer/master/ani-search-enhancer.user.js
|
||||||
|
// @supportURL http://github.com/marvinl97/ani-search-enhancer/issues
|
||||||
|
// ==/UserScript==
|
||||||
|
this.$ = this.jQuery = jQuery.noConflict(true);
|
||||||
|
|
||||||
|
$(document).ready(function()
|
||||||
|
{
|
||||||
|
$('head').append('<style>#page-action #page-action-search:before{content:"\\f002";}</style>');
|
||||||
|
var animeTitleElem = document.getElementById('htitle');
|
||||||
|
if(animeTitleElem !== null)
|
||||||
|
{
|
||||||
|
var animeTitle = animeTitleElem.innerText;
|
||||||
|
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="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>');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user