LiveChart.me Enhancement's

Adds few featues to enchance LiveChart

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         LiveChart.me Enhancement's
// @namespace    https://github.com/as280093/LCE
// @version      0.2
// @description  Adds few featues to enchance LiveChart
// @author       as280093
// @match        https://www.livechart.me/*
// @supportURL   https://github.com/as280093/LCE/issues
// @icon         https://raw.githubusercontent.com/as280093/LCE/master/icon.png
// ==/UserScript==

(function () {
    'use strict';

//adds kissanime search
var text = '';
var aniname = '';
$('div.anime-card').each(function() {
    aniname = $('h3.main-title', this).text();
    text = '<ul class="anime-studios"><li><a href="https://kissanime.ru/Search/Anime?keyword=' + encodeURI(aniname).replace("&", "%26").replace("=", "%3D").replace("?", "%3F") + '" target="_blank" rel="noopener nofollow">Search on KissAnime</a></li></ul>';
    $('.anime-info', this).append(text);
});

//compact KA button
var text_compact = '';
var aniname_compact = '';
$('.schedule-card__overlay-container').each(function() {
    aniname_compact = $('.schedule-card__title', this).text();
    text_compact = '<a href="https://kissanime.ru/Search/Anime?keyword=' + encodeURI(aniname_compact).replace("&", "%26").replace("=", "%3D").replace("?", "%3F") + '" target="_blank" rel="noopener nofollow"><div class="" title="Kissanime"></div>KA</a>';
    $('.schedule-card__actionbar', this).prepend(text_compact);
});

})();