REtoTEST

Show Random Enconter link after clicking

Tính đến 23-06-2017. Xem phiên bản mới nhất.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        REtoTEST
// @namespace   HVASRE
// @author      yooooki
// @description Show Random Enconter link after clicking
// @version     1
// @match       https://e-hentai.org/*
// @grant       none
// ==/UserScript==

//fight in alt.hentaiverse.org
var alt=true;

var test=true;





function displayTime(){
    var t=new Date();
    if (t.getMinutes()<10) {
        return t.getHours()+':0'+t.getMinutes();
    }
    else {
        return t.getHours()+':'+t.getMinutes();
    }
}


if(document.getElementById('eventpane')!=null){

    //Add timeout alert
    //If you don't want to refresh the window after the dialog, please delete "window.location.reload();" below
    var c=setTimeout("document.title='Refresh Request';alert('Time to refresh!');window.location.reload();",1830000);
    document.getElementById('eventpane').appendChild(document.createElement("div"));
    document.getElementById('eventpane').children[2].textContent='Encountered time  '+displayTime();
    //Change onClick
    var content=document.getElementById('eventpane').children[1].children[0].onclick.toString().split("document.getElementById('eventpane').style.display='none';");
    var formar=content[0].split("{")[1].split("hentaiverse.");
    if(!test){
        if(alt){
            document.getElementById('eventpane').children[1].children[0].onclick=Function("document.getElementById('eventpane').children[1].children[0].textContent='Clicked, Retry?';"+formar[0]+"alt.hentaiverse."+formar[1]+content[1].split("}")[0]);
        }
        else {
            formar[0]=formar[0].replace('http','https');
            document.getElementById('eventpane').children[1].children[0].onclick=Function("document.getElementById('eventpane').children[1].children[0].textContent='Clicked, Retry?';"+content[0].split("{")[1]+content[1].split("}")[0]);
        }
    }
    else {
        document.getElementById('eventpane').children[1].children[0].onclick=Function("document.getElementById('eventpane').children[1].children[0].textContent='Clicked, Retry?';"+formar[0]+"hvtestlive.e-hentai."+formar[1]+content[1].split("}")[0]);
    }
}