ad研究所

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

Pada tanggal 27 Juli 2024. Lihat %(latest_version_link).

// ==UserScript==
// @name         ad研究所
// @namespace    http://tampermonkey.net/
// @version      10.0
// @description  针对视频的优化脚本,此脚本可以让用户观看全站视频
// @author       总是怕来不及
// @match        https://*.aidou.pro/*
// @match        https://*.aidou.art/*
// @match        https://*.aido2.cc/*
// @match        https://*.aidoo.info/*
// @icon         https://www6.aidou.pro/static/img/logo.png
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    //=========The code is generated by Coze==================

     // 创建按钮元素
    var button = document.createElement('button');
    button.innerHTML = '解析视频';

    // 设置样式
    button.style.position = 'fixed';
    button.style.right = '10px';
    button.style.top = '200px';
    button.style.width = '60px';
    button.style.height = '60px';

    // 添加点击事件
    button.addEventListener('click', function() {
        var url = location.href
        var id = url.split('/').pop().split('.')[0];
        var giturl = "https://knciik123.gitlab.io/-/test_aido/-/jobs/7443374469/artifacts/public/index.html?id="+id
        window.open(giturl, '_blank');
    });

    // 将按钮添加到 body 中
    document.body.appendChild(button);
})();