Greasy Fork

来自缓存

Greasy Fork is available in English.

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

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴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          *://mooc*.chaoxing.com/*
// @run-at           document-end
// @version          0.1.3
// ==/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('load', init, false);
    init();
})();