// ==UserScript== // @name aniSearch Enhancer // @namespace http://github.com/marvinlehmann/ani-search-enhancer // @version 1.4 // @description Adds buttons to the info site of an anime on aniSearch which links you directly to various streaming portals. // @author Marvin Lehmann // @grant none // @include /^https?://www.anisearch.de/anime/.*$/ // @require http://code.jquery.com/jquery-latest.js // @downloadURL http://raw.githubusercontent.com/marvinlehmann/ani-search-enhancer/master/ani-search-enhancer.user.js // @supportURL http://github.com/marvinlehmann/ani-search-enhancer/issues // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); $(document).ready(function() { $('head').append(''); var animeTitleElem = document.getElementById('htitle'); if (animeTitleElem !== null) { var animeTitle = animeTitleElem.innerText; if (animeTitle) { var encodedTitle = encodeURI(animeTitle).replace(/'/g, "%27"); if (document.getElementById('page-action') === null) $('#infodetails').before('
'); $('#page-action').append('