Voe.sx video redirector

Redirect to link for Voe.sx videos

当前为 2021-01-11 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Voe.sx video redirector
  3. // @namespace https://tribbe.de
  4. // @version 1.1.1
  5. // @description Redirect to link for Voe.sx videos
  6. // @author Tribbe
  7. // @match https://voe.sx/*
  8. // @match https://*.voe-network.net/*
  9. // @require https://greasyfork.org/scripts/6250-waitforkeyelements/code/waitForKeyElements.js?version=23756
  10. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
  11. // @grant GM.xmlHttpRequest
  12. // ==/UserScript==
  13.  
  14. window.addEventListener("load", function() {
  15. var content = document.body.textContent;
  16. var videos = content.match(/(https?.*?\.mp4)/);
  17. window.location.href = videos[0];
  18. });
  19.  
  20.  
  21. // Stop Autoplay
  22. waitForKeyElements ("video[name*='media']", function(jNode) { jNode[0].autoplay = false; });