Voe.sx video redirector

Redirect to link for Voe.sx videos

目前为 2021-01-11 提交的版本。查看 最新版本

// ==UserScript==
// @name         Voe.sx video redirector
// @namespace    https://tribbe.de
// @version      1.1.1
// @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==

window.addEventListener("load", function() {
    var content = document.body.textContent;
    var videos = content.match(/(https?.*?\.mp4)/);
    window.location.href = videos[0];
});


// Stop Autoplay
waitForKeyElements ("video[name*='media']", function(jNode) { jNode[0].autoplay = false; });