Greasy Fork

Greasy Fork is available in English.

所有视频2倍速度播放 / video speed 2x

这个世界的一切都太慢了啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊

当前为 2020-04-22 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name             所有视频2倍速度播放 / video speed 2x
// @name:en          Videos default at 2x speed
// @name:ja          2倍速でのデフォルトのビデオ再生
// @namespace        https://userscript.snomiao.com/
// @description      这个世界的一切都太慢了啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
// @description:en   Everything in this world is too sloooooooooooooooooooooooooow
// @description:ja   この世界のすべてが遅すぎるあああああああああああああああああああああああああああああああああああああああ
// @author           [email protected]
// @match            *://*.youtube.com/*
// @match            *://*/*
// @exclude          *://mooc1-2.chaoxing.com/*
// @run-at           document-end
// @version          0.1.2
// ==/UserScript==
// (20200422)Update: avoid chaoxing online courses (needs 1x speed to complete the task)

(() => {
    var rate = 2
    var init = () => [...document.querySelectorAll('video')].map(e => {
        if (!e.flag_speed_inited) {
            e.playbackRate = rate
            console.debug(e, "SPEED_X", rate)
            e.flag_speed_inited = 1
        }
    })
    setInterval(init, 10000)
    window.addEventListener("onload", init)
    document.addEventListener("onload", init)
    init()
})()