您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Take back the control to forward and rewind video playback on OTT platforms like Jiocinema, SonyLiv, etc with keyboard arrow keys
// ==UserScript== // @name OTT Platforms Video Forward/Rewind with Arrow Keys // @version 1.2 // @description Take back the control to forward and rewind video playback on OTT platforms like Jiocinema, SonyLiv, etc with keyboard arrow keys // @author pb // @grant none // @match https://www.jiocinema.com/* // @match https://www.sonyliv.com/* // @namespace https://gist.github.com/prashantbaid/314139311b151964f81bceb2c48fec50 // @license MIT // ==/UserScript== (function() { document.body.onkeydown = e => { //do not interfere with navigating jio in-video slider if (isJioSlickSlider(e)) { return; } const videos = document.getElementsByTagName('video'); if (videos.length > 0) { const video = videos[0]; const seek = time => { e.stopImmediatePropagation(); video.currentTime += time; } switch (e.key) { case 'ArrowRight': seek(10); break; case 'ArrowLeft': seek(-10); break; default: break; } } } })(); const isJioSlickSlider = e => { return e.target.className.toLowerCase().includes('slick-'); }