Video buttons allower

Allow all buttons in video

  1. // ==UserScript==
  2. // @name Video buttons allower
  3. // @description Allow all buttons in video
  4. // @match *://*/*
  5. // @version 1.0.1
  6. // @namespace Video buttons allower
  7. // ==/UserScript==
  8.  
  9. function cleanControlsList() {
  10. document.querySelectorAll("video").forEach(video => {
  11. if (video.controlsList) {
  12. video.controlsList.value = video.controlsList.value
  13. .split(" ")
  14. .filter(attr => !attr.startsWith("no"))
  15. .join(" ");
  16. }
  17. });
  18. }
  19. setInterval(cleanControlsList, 1000);

QingJ © 2025

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