Peer Review Automate (IMVU)

Realiza el Peer Review automaticamente. Recuerda cambiar el link de @include a tu link del Peer Review (Si es diferente a este)

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           	Peer Review Automate (IMVU)
// @description    	Realiza el Peer Review automaticamente. Recuerda cambiar el link de @include a tu link del Peer Review (Si es diferente a este)
// @include        	https://es.imvu.com/peer_review/
// @version        	1.2
// @namespace 		https://greasyfork.org/users/471262
// ==/UserScript==

//El script NO salta los Captchas de IMVU. ¡Debes estar pendiente!
function sleep(milliseconds) {
	const date = Date.now();
	let currentDate = null;
	do {
		currentDate = Date.now();
	} while (currentDate - date < milliseconds);
}

///Ejecutar al cargar pag. ¿Saltar productos AP? true = si, false = no
window.onload = CheckRate(true);

//Verificacion
function CheckRate(SkipAP) {
	var CurrentRate = document.getElementById("rating").getElementsByTagName("p")[0].getElementsByTagName("strong")[0].textContent;

	if (CurrentRate == "Access Pass Only" && SkipAP) {
		console.log("This product is: ["+CurrentRate+"] Skipping...");
		sleep(5000);
		skip(skipReview());
	}else{
		console.log("This product is: ["+CurrentRate+"] Reviewing...");
		Review();
	}
}

function skip(fn) {
	var script = document.createElement('script');
	script.setAttribute("type", "application/javascript");
	script.textContent = '(' + fn + ')();';
	document.body.appendChild(script); // run the script
	document.body.removeChild(script); // clean up
}

function Review() {
	document.getElementById("view_in_3d").click();
	sleep(2000);
	document.getElementById("cb_no_issues").click();
	sleep(30000); //Retraso entre revisión de productos, Minimo 25 segundos, recomiendo 30 segundos.
	document.getElementById("yui-main").getElementsByTagName("form")[0].submit();
}