解决网页视频进度条禁止拖动 Posted on 2022-06-17 In Other Views: 刷课的时候很无聊,网页又限制视频不能拖动,下面是找到的一个解决方案。 本文转载自 网页视频禁止拖动进度条 按键盘F12 进入开发者模式 发现标志,html5播放器,属于原生支持最方便实现加速的 在开发者模式中找到 Console 调式窗口,输入以下代码进行设置 设置视频播放速度 12345678/* play video twice as fast */document.querySelector('video').defaultPlaybackRate = 1.0;//默认一倍速播放document.querySelector('video').play();/* now play three times as fast just for the heck of it */document.querySelector('video').playbackRate = 10.0; //修改此值设置当前的播放倍数 直接跳过视频 1234567function skip() { let video = document.getElementsByTagName('video') for (let i=0; i<video.length; i++) { video[i].currentTime = video[i].duration }}setInterval(skip,200)