Greasy Fork

tetew njiir samehadaku.tv

redirect website dari samehadaku.tv

目前为 2019-06-10 提交的版本。查看 最新版本

// ==UserScript==
// @name         tetew njiir samehadaku.tv
// @namespace    njiir
// @version      1.1
// @description  redirect website dari samehadaku.tv
// @author       Reissfeld
// @match        https://www.tetew.info/*
// @match        https://www.njiir.com/*
// @require      http://code.jquery.com/jquery-latest.js
// @grant        none
// ==/UserScript==

 $(document).ready(function() {
    'use strict';
     if (location.hostname == "www.tetew.info") {
         var tetew = $("a[rel='nofollow']").attr('href');
         document.location = tetew;
     }
     else if (location.hostname == "www.njiir.com") {
         setTimeout(function() {
             var njiir = document.getElementsByTagName('a')[4].getAttribute("href");
             document.location = njiir;
         },2000);
     }
})();