您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Скрипт для автоматического пропуска опенингов и эндингов
// ==UserScript== // @name Jutsu helper // @description Скрипт для автоматического пропуска опенингов и эндингов // @author Murka // @version 0.3 // @icon https://gen.jut.su/safari_152.png // @match *://jut.su/* // @run-at document-end // @grant none // @license MIT // @namespace https://greasyfork.runtimutd.eu.org/users/919633 // ==/UserScript== /* jshint esversion:6 */ (function() { function isVisible(elem) { return elem && elem.offsetParent !== null; } (function loop() { const opening = document.querySelector("div[title='Нажмите, если лень смотреть опенинг']"); const ending = document.querySelector("div[title='Перейти к следующему эпизоду']"); const playButton = document.querySelector("button[title='Воспроизвести видео']"); const fullButton = document.getElementById("my-player_html5_api"); if (isVisible(opening)) opening.click(); if (isVisible(ending)) ending.click(); if (isVisible(playButton)) { playButton.click(); //fullButton.style=' width: 1960px; position: fixed; height: 1080px; z-index: 9999; top: -150px; left: 0px;'; } setTimeout(loop, isVisible(opening) || isVisible(ending) ? 5000 : 250); })(); })();