diff --git a/ani-search-enhancer.user.js b/ani-search-enhancer.user.js index 867418a..6f193a3 100644 --- a/ani-search-enhancer.user.js +++ b/ani-search-enhancer.user.js @@ -1,11 +1,12 @@ // ==UserScript== // @name aniSearch Enhancer // @namespace http://github.com/marvinlehmann/ani-search-enhancer -// @version 1.5 +// @version 1.6 // @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 +// @grant GM_xmlhttpRequest // @include /^https?://www.anisearch.de/anime/.*$/ +// @connect masterani.me // @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 @@ -13,13 +14,36 @@ this.$ = this.jQuery = jQuery.noConflict(true); $(function() { - $('head').append(''); + $('head').append(''); const animeTitle = $('#htitle > span[itemprop=name]').text(); + const animeReleaseYear = $('#htitle > span.release_year').text().replace(/\(|\)/g, ''); if (animeTitle) { const encodedTitle = encodeURI(animeTitle).replace(/'/g, "%27"); if ($('#page-action').length === 0) $('#htitle').after('