ad研究所

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

As of 28/07/2024. See the latest version.

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