Greasy Fork

Greasy Fork is available in English.

视频播放

自用视频播放

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        视频播放
// @namespace    http://tampermonkey.net/
// @version      0.7
// @description  自用视频播放
// @author       rubysiu
// @match        *://*.v.qq.com/x/*
// @match        *://*.v.youku.com/v_show/*
// @match        *://*.iqiyi.com/*
// @match        *://*.mgtv.com/*
// @exclude      *://www.iqiyi.com/
// @exclude      *://www.mgtv.com/
// @icon         https://s3.bmp.ovh/imgs/2021/12/ab22ca08387d82f2.jpg
// @grant        none
// @license      rubysiu
// ==/UserScript==

(function() {
    'use strict';
    // Your code here...
     function toNext(api){
        let videoUrl = location.href;
         console.log(api)
        window.open(`${api}${videoUrl}`,'_blank');
    }
    let dom = document.createElement("ruby");
    let apiList = [{"name":"解析啦","url":"https://api.jiexi.la/?url="},{"name":"OK解析","url":"https://okjx.cc/?url="}]
    dom.style.background = "rgb(84 220 140 / 100%)";
    dom.style.position = "fixed";
    dom.style.padding = "5px";
    dom.style.color = "#fff";
    dom.style.top = "50%";
    dom.style.zIndex = "9999";
    dom.style.borderRadius = "0 5px 5px 0";
    document.body.appendChild(dom);
    let apiListDoma = "";
    for (const key in apiList) {
        let domDv = document.createElement("div");
        domDv.innerText = apiList[key].name
        domDv.addEventListener("click",function(){
          toNext(`${apiList[key].url}`)
        })
        dom.appendChild(domDv)
    }
})();