您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto refresh Twitch and press F after 10 seconds
// ==UserScript== // @name Twitch Auto Refresh and Key F // @namespace http://tampermonkey.net/ // @version 0.1 // @description Auto refresh Twitch and press F after 10 seconds // @author You // @match https://www.twitch.tv/* // @grant none // ==/UserScript== (function() { 'use strict'; // Wait for 10 minutes then refresh the page setTimeout(function() { location.reload(); }, 600000); // 600000 milliseconds = 10 minutes // After refresh, wait for 10 seconds then press F window.onload = function() { setTimeout(function() { var e = new KeyboardEvent('keydown', { key: 'F', code: 'KeyF', keyCode: 70, which: 70 }); document.dispatchEvent(e); }, 10000); // 10000 milliseconds = 10 seconds }; })();