GoIndex Local Video Buffer

自用

当前为 2021-03-09 提交的版本,查看 最新版本

// ==UserScript==
// @name         GoIndex Local Video Buffer
// @namespace    http://tampermonkey.net/
// @description  自用
// @match        *://drive.*.workers.dev/*
// @grant        none
// @run-at       document-idle
// @version 0.0.1.20210309025905
// ==/UserScript==

(function() {
    'use strict';

    let retry = 5
    const replaceUrl = () => {
        const urlEle = document.querySelector('#app > div > section > div > div > div.content.g2-content > div.card > div > div > div.columns.is-mobile.is-multiline.has-text-centered > div:nth-child(1) > p.heading > a')
        if (!urlEle) {
            retry && retry-- && setTimeout(replaceUrl, 100)
        }
        else {
            urlEle.href = urlEle.href.replace('url=', 'url=http://localhost:61234/')
            const nameEle = document.querySelector('#app > div > section > div > div > div.content.g2-content > div.card > div > div > div.columns.is-mobile.is-multiline.has-text-centered > div:nth-child(1) > p:nth-child(2)')
            nameEle.innerHTML += '(speedup)'
        }
    }
    replaceUrl()
})();

QingJ © 2025

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