Greasy Fork is available in English.
主要是手机kiwi浏览器用
// ==UserScript==
// @name 视频长按快进,主要是手机用
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 主要是手机kiwi浏览器用
// @author You
// @require https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js
// @match http*://*/*
// @grant none
// @license MIT
// ==/UserScript==
(function () {
'use strict';
let eventbind = false
$(document).ready(function () {
$(document).bind("DOMNodeInserted", function () {
speedup()
})
});
function speedup(){
let pressTimer
let videoclass = "video.player"
if(!eventbind){
$("video").parent().on('mousedown touchstart', function() {
eventbind = true
pressTimer = window.setTimeout(function() {
// 长按事件处理
$("video")[0].playbackRate = 3
}, 1000);
}).on('mouseup touchend', function() {
$("video")[0].playbackRate = 1
window.clearTimeout(pressTimer);
});
}
}
})();