Voe.sx video redirector

Redirect to link for Voe.sx videos

目前为 2020-11-15 提交的版本。查看 最新版本

// ==UserScript==
// @name         Voe.sx video redirector
// @namespace    https://tribbe.de
// @version      1.0.1
// @description  Redirect to link for Voe.sx videos
// @author       Tribbe
// @match        https://voe.sx/*
// @require      https://greasyfork.org/scripts/6250-waitforkeyelements/code/waitForKeyElements.js?version=23756
// @grant        GM.xmlHttpRequest
// ==/UserScript==

waitForKeyElements (
	"#voe-player_html5_api",
	tribbe
);

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;
    }
}