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-04-23 提交的版本。查看 最新版本

// ==UserScript==
// @name         zoro autofocus
// @namespace    https://greasyfork.org/en/users/10118-drhouse
// @version      5.35
// @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://zoro.to/watch/*
// @match        https://rapid-cloud.co/*
// @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)').focus()
                    clearInterval(myInterval);

    }
})(jQuery);