智慧树/知到|共享课课程十倍速

将1.5倍速调整为10倍速,切换视频后需要点击右上角按钮

  1. // ==UserScript==
  2. // @name 智慧树/知到|共享课课程十倍速
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description 将1.5倍速调整为10倍速,切换视频后需要点击右上角按钮
  6. // @author ChatGPT
  7. // @match *://studyvideoh5.zhihuishu.com/*
  8. // @grant none
  9. // @icon https://www.zhihuishu.com/favicon.ico
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. function updateSpeedElement() {
  17. var speedElement = document.querySelector('div.speedTab.speedTab15[rate="1.5"]');
  18. if (speedElement) {
  19. speedElement.setAttribute('rate', '10');
  20. speedElement.textContent = 'X 10';
  21. }
  22. }
  23.  
  24. function addButton() {
  25. var button = document.createElement('button');
  26. button.textContent = '执行脚本';
  27. button.style.position = 'fixed';
  28. button.style.top = '10px';
  29. button.style.right = '10px';
  30. button.style.zIndex = '9999';
  31. button.addEventListener('click', updateSpeedElement);
  32. document.body.appendChild(button);
  33. }
  34. // 修改速度元素
  35. setTimeout(updateSpeedElement, 3000); // 3秒延迟
  36.  
  37. // 添加按钮
  38. addButton();
  39. })();

QingJ © 2025

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