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)

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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();
}