您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
some keybindings for edx: next, previous, play/pause
// ==UserScript== // @name edx helper // @namespace http://andreabisognin.it // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js // @version 0.37 // @description some keybindings for edx: next, previous, play/pause // @match https://courses.edx.org/courses/* // @copyright 2014+, Andrea Bisognin // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); $(document).ready(function() { jQuery(document).keydown(function(e){ if(e.keyCode == 78) { unsafeWindow.$("li[class='next']")[1].children[0].click(); } if(e.keyCode == 80) { unsafeWindow.$("li[class='prev']")[1].children[0].click(); } if (e.keyCode == 84) { unsafeWindow.$("a[class^='video_control']").click(); } if (e.keyCode == 72) { unsafeWindow.$("a[class^='quality-control']").click(); } if (e.keyCode == 67) { unsafeWindow.$("a[class$='subtitles']").click(); } if (e.keyCode == 77) { unsafeWindow.$("a[class$='fullscreen']").click(); } }); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址