Bili 4x

Bilibili player speed up to 4x

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         Bili 4x
// @version      0.1
// @description  Bilibili player speed up to 4x
// @author       vj
// @match        *://www.bilibili.com/blackboard/html5player.html*
// @match        *://www.bilibili.com/bangumi/play/ep*
// @match        *://www.bilibili.com/video/av*
// @match        *://www.bilibili.com/bangumi/play/ss*
// @grant        none
// @namespace https://greasyfork.org/users/6696
// ==/UserScript==

(function() {
    'use strict';

    function go(){
        var tar=$('#bilibiliPlayer > div.bilibili-player-context-menu-container.black.bilibili-player-context-menu-origin.active > ul > li:nth-child(1) > a > div');
        if(tar.length==1){
            var items=tar.find("span");
            if(items.length==6)
            {
                tar.append('<span data-rate="2.5">2.5</span>');
                tar.append('<span data-rate="2.8">2.8</span>');
                tar.append('<span data-rate="3">3</span>');
                tar.append('<span data-rate="3.5">3.5</span>');
                tar.append('<span data-rate="4">4</span>');
            }
        }
        setTimeout(go,500);
    }
    go();

})();