ad研究所

针对视频的优化脚本,此脚本可以让用户观看全站视频

Fra og med 27.07.2024. Se den nyeste version.

  1. // ==UserScript==
  2. // @name ad研究所
  3. // @namespace http://tampermonkey.net/
  4. // @version 3.2
  5. // @description 针对视频的优化脚本,此脚本可以让用户观看全站视频
  6. // @author 总是怕来不及
  7. // @match https://*.aidou.pro/*
  8. // @match https://*.aidou.art/*
  9. // @match https://*.aido2.cc/*
  10. // @icon https://www6.aidou.pro/static/img/logo.png
  11. // @grant none
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. //=========The code is generated by Coze==================
  18.  
  19. // 创建按钮元素
  20. var button = document.createElement('button');
  21. button.innerHTML = '解析视频';
  22.  
  23. // 设置样式
  24. button.style.position = 'fixed';
  25. button.style.right = '10px';
  26. button.style.top = '200px';
  27. button.style.width = '60px';
  28. button.style.height = '60px';
  29.  
  30. // 添加点击事件
  31. button.addEventListener('click', function() {
  32. var url = location.href
  33. var id = url.split('/').pop().split('.')[0];
  34. var giturl = "https://knciik123.gitlab.io/-/test_aido/-/jobs/7443374469/artifacts/public/index.html?id="+id
  35. window.open(giturl, '_blank');
  36. });
  37.  
  38. // 将按钮添加到 body 中
  39. document.body.appendChild(button);
  40. })();