NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Smotret Anime Online // @namespace https://openuserjs.org/users/OhSenpai1337 // @version 0.1.6 // @description Добавление кнопки Smotret Anime Online для Shikimori // @author Oh, Senpai // @match https://shikimori.me/* // @match http://shikimori.me/* // @grant none // @copyright 2023, OhSenpai1337 (https://openuserjs.org/users/OhSenpai1337) // @updateURL https://openuserjs.org/meta/OhSenpai1337/Shikimori_Online.meta.js // @downloadURL https://openuserjs.org/install/OhSenpai1337/Shikimori_Online.user.js // @license MIT // ==/UserScript== function start(){ if (window.location.href.indexOf("https://shikimori.me/animes/") !== -1) { setTimeout(function () { if (!$(".watch-online-placeholer").length) { $(".c-info-right").append("<div class='watch-online-placeholer'></div>"); } if ($(".watch-online-placeholer .block:last-child")) { $(".watch-online-placeholer .block:last-child").remove(); } if (!$(".watch_link").length) { if (!$(".watch-365").length) { let name = $('.head > h1').text().split("/")[1]; $(".watch-online-placeholer").append( "<div class='block watch-365'><a href='https://smotret-anime.online/catalog/search?q=" + name + "' class='b-link_button dark watch_link watch-online'>Найти на smotret-anime.online</a></div>" ); } } }, 200); } } $(document).ready(start); $(document).on('page:load', start); $(document).on('turbolinks:load', start);