Greasy Fork

zoro autofocus

Auto focuses on the video player when you open an anime and when it auto nexts to new episode (you can use keyboard shortcuts without clicking on the video player).

目前为 2023-05-07 提交的版本。查看 最新版本

// ==UserScript==
// @name         zoro autofocus
// @namespace    https://greasyfork.org/en/users/10118-drhouse
// @version      5.37
// @description  Auto focuses on the video player when you open an anime and when it auto nexts to new episode (you can use keyboard shortcuts without clicking on the video player).
// @match        https://embed.vodstream.xyz/*
// @match        https://rapid-cloud.co/*
// @match        https://filemoon.sx/*
// @match        https://zoro.to/watch/*
// @match        https://animeheaven.ru/watch/*
// @match        https://animedao.to/watch/*
// @match        https://allanime.to/watch/*
// @match        https://animixplay.tube/*
// @include      https://*.123animes.*/anime/*
// @match        https://animehub.ac/watch/*
// @match        https://anihdplay.com/*
// @include      https://gogoanime.*
// @include      https://*.animeshow.*/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant        GM_getValue
// @author       agent-324
// @license      CC-BY-NC-SA-4.0
// @icon         https://www.google.com/s2/favicons?domain=zoro.to
// ==/UserScript==


(function($){

        const myInterval = setInterval(myTimer, 1000);

        function myTimer() {

                    $('div.jw-icon:nth-child(1)')[0].click()
                    clearInterval(myInterval);

    }
})(jQuery);