视频倍速

视频倍速播放,支持0.5,1,1.5,2,4,8,16倍速播放

  1. // ==UserScript==
  2. // @name 视频倍速
  3. // @namespace https://viayoo.com/
  4. // @version 0.2
  5. // @description 视频倍速播放,支持0.5,1,1.5,2,4,8,16倍速播放
  6. // @author 呆毛飘啊飘
  7. // @run-at document-start
  8. // @match https://*/*
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. var bfq = document.createElement('div');
  15. bfq.id = "bfq";
  16. bfq.style.position="fixed"
  17. bfq.style.left="20px"
  18. bfq.style.top="20px"
  19. bfq.style['z-index']="999999"
  20. bfq.innerHTML =`<select id="engine" onchange="javascript:funcspbf()">
  21. <option value= "0.5">0.5倍速</option>
  22. <option value= "1">1倍速</option>
  23. <option value= "1.5">1.5倍速</option>
  24. <option value= "2">2倍速</option>
  25. <option value= "4">4倍速</option>
  26. <option value= "8">8倍速</option>
  27. <option value= "16">16倍速</option>
  28. </select>`
  29. var jss = document.createElement("script");
  30. jss.type = "text/javascript";
  31. jss.innerHTML = "function funcspbf(){var engine = document.getElementById('engine');document.querySelector('video').playbackRate = engine.options[engine.selectedIndex].value;}";
  32. document.body.appendChild(jss);
  33. document.body.appendChild(bfq);
  34. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址