Bypass Rojadirecta redirection

Bypasses rojadirecta redirection page and load the stream websites directly

目前为 2018-10-07 提交的版本。查看 最新版本

// ==UserScript==
// @name         Bypass Rojadirecta redirection
// @version      1.2
// @license      LGPLv3
// @homepage https://github.com/bahhax404/rojadirecta
// @description  Bypasses rojadirecta  redirection page  and load the stream  websites directly
// @include      *.rojadirecta.*
// @icon http://www.rojadirecta.me/static/roja.jpg
// @run-at       document-body
// @author       Bahha 
// @namespace https://gf.qytechs.cn/users/186498
// ==/UserScript==

  
    //retreive all the urls
    var goto = "goto"
    //retreive all the urls on the page
    var links = document.getElementsByTagName("a");
    // retrieve urls with goto word and replace them with the actual stream link. 
    var testlink = links[4].href = links[4].href.slice(links[4].href.indexOf("goto/") + 5);

    for (var i = 0; i < links.length; i++) {

      if (links[i].href.match(goto)) {
      link = links[i].href.slice(links[i].href.indexOf("goto/") + 5);
      links[i].href = "http://" + link;
    
      }

    }
//that's it :)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址