您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button with which you can watch anime.The original author of the script BoberMod.
// ==UserScript== // @name Watch online button on shikimori.one // @name:ru Кнопка "смотреть онлайн" на сайте shikimori.one // @description Adds a button with which you can watch anime.The original author of the script BoberMod. // @description:ru Добавляет кнопку, с помощью которой можно смотреть аниме. Оригинальный автор скрипта BoberMod. // @namespace https://shikimori.one/ // @match https://shikimori.one/* // @author Batora / edit OsuDesu // @grant none // @version 0.3 // ==/UserScript== function add() { "use strict"; let block = document.createElement("div"); let watchButton = document.createElement("A"); block.setAttribute("class", "block"); watchButton.text = "Смотреть"; watchButton.setAttribute("class", "b-link_button dark watch-online"); watchButton.setAttribute('href', "https://shikimori.online" + window.location.pathname); document.getElementsByClassName("c-info-right")[0].appendChild(block).append(watchButton); } function onload(fn) { document.addEventListener('page:load', fn); document.addEventListener('turbolinks:load', fn); document.addEventListener('DOMContentLoaded', fn); } onload(add);