// ==UserScript== // @name 全网视频去水印-VIP视频解析 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 本脚本支持去除 腾讯视频 爱奇艺 优酷 西瓜 视频平台的非内嵌水印,并且支持解析视频网站VIP蓝光视频 // @author 晚枫QQ237832960 // @match https://v.qq.com/* // @match https://v.youku.com/* // @match https://www.iqiyi.com/* // @match https://www.bilibili.com/* // @match https://www.ixigua.com/* // @match https://www.mgtv.com/* // @match https://api.sigujx.com/* // @grant 授权非商业使用,未经允许,禁止复制粘贴相关源码 // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Your code here... var div = document.createElement("a") div.innerHTML = "点击解析视频" div.style.cssText="color: white;\n" + " text-decoration: none;\n" + " width: 150px;\n" + " height: 40px;\n" + " line-height: 40px;\n" + " text-align: center;\n" + " background-color: coral;\n" + " position: fixed;\n" + " top: 50%;\n" + " z-index:99999;\n" + " left: 0px;\n" + " cursor: pointer;" div.setAttribute("href","https://api.sigujx.com/?url="+location.href) document.body.appendChild(div) var url = location.href; var check = setInterval(function () { var ele = document.getElementsByClassName("txp_waterMark_pic")[0] if (ele != null){ console.log(ele) ele.remove() return } ele =document.getElementsByClassName("logo-new")[0] if (ele != null){ console.log(ele) ele.remove() return } ele =document.getElementsByClassName("iqp-logo-box")[0] if (ele != null){ console.log(ele) ele.remove() return } ele =document.getElementsByClassName("common-xgplayer__Logo")[0] if (ele != null){ console.log(ele) ele.remove() return } ele =document.getElementsByClassName("el-button el-button--primary")[0] if (ele != null){ div.remove() console.log(ele) var input = document.getElementById("url") input.value = url.substring('https://api.sigujx.com/?url='.length,url.length) return } },1000) })();