自用视频播放
当前为
// ==UserScript==
// @name 视频播放
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 自用视频播放
// @author rubysiu
// @match *v.qq.com/x/*
// @match *v.youku.com/v_show/*
// @match *www.iqiyi.com/*
// @match *www.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...
let dom = document.createElement("ruby");
dom.style.background = "rgb(84 220 140 / 34%)";
dom.style.position = "fixed";
dom.style.width = "20px";
dom.style.height = "35px";
dom.style.top = "50%";
dom.style.zIndex = "9999";
dom.style.borderRadius = "0 5px 5px 0";
document.body.appendChild(dom);
dom.addEventListener("click",linkTo);
function linkTo(){
let videoUrl = "https://okjx.cc/?url="+location.href
window.open(videoUrl,"_blank");
}
})();