您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirect to link for Voe.sx videos
当前为
// ==UserScript== // @name Voe.sx video redirector // @namespace https://tribbe.de // @version 1.0.4 // @description Redirect to link for Voe.sx videos // @author Tribbe // @match https://voe.sx/* // @match https://*.voe-network.net/* // @require https://greasyfork.org/scripts/6250-waitforkeyelements/code/waitForKeyElements.js?version=23756 // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js // @grant GM.xmlHttpRequest // ==/UserScript== waitForKeyElements ( "#voe-player_html5_api", tribbe ); waitForKeyElements ( ".plyr__video-wrapper", tribbe_wrapper ); waitForKeyElements ( "video[name*='media']", tribbe_autostop ); function tribbe (jNode) { if(jNode[0].src && jNode[0].src.includes(".mp4")) { window.location.href = jNode[0].src; } else if (jNode[0].currentSrc && jNode[0].currentSrc.includes(".mp4")) { window.location.href = jNode[0].currentSrc; } } function tribbe_wrapper (jNode) { if(jNode[0].childNodes.length > 0) { var video = jNode[0].childNodes[0]; if(video.localName == "video" && video.currentSrc.includes(".mp4")) { window.location.href = video.currentSrc; } } } function tribbe_autostop (jNode) { jNode[0].autoplay = false; }