您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This will almost perfectly play the crab rave rave when it hits the new year
// ==UserScript== // @name Crab Rave for New Years // @namespace http://tampermonkey.net/ // @version 0.2 // @description This will almost perfectly play the crab rave rave when it hits the new year // @author You // @match https://www.youtube.com/watch?v=cE0wfjsybIQ // @grant none // ==/UserScript== (function() { 'use strict'; setInterval(function(){ var d = new Date(); var mo = d.getMonth(); var da = d.getDate() var h = d.getHours(); var m = d.getMinutes(); var s = d.getSeconds(); if (mo == 11 && da == 31 && h == 23 && m == 58 && s == 45) { var e = new KeyboardEvent('keydown',{'keyCode':32,'which':32}); document.dispatchEvent(e); } }, 1000); })();