View difference between Paste ID: SmYzySHF and ufK9xWEf
SHOW: | | - or go back to the newest paste.
1
// ==UserScript==
2
// @name        Auto Otohits
3
// @namespace   Th3-822.tk/AutoOtohits
4
// @include     http://otohits.net/*
5
// @include     http://www.otohits.net/*
6
// @version     1
7
// @grant       none
8
// ==/UserScript==
9
 
10
// Ingles
11
document.cookie = 'WW=lang=en';
12
 
13
function emularClick(elemento) {
14
    var ret = true, eventos = ['mousedown', 'click', 'mouseup'];
15
    for (var i = 0; i < 3; i++) ret = elemento.dispatchEvent(new MouseEvent(eventos[i], {'view': unsafeWindow, 'bubbles': true, 'cancelable': true})) && ret;
16
    return ret;
17
}
18
 
19
if (document.location.pathname.toLowerCase() == '/account/login') {
20
    var fEmail = document.getElementById('Email'), fPassword = document.getElementById('Password'), fReturnUrl = document.getElementById('ReturnUrl');
21
    if (fEmail && fPassword && !document.querySelector('.validation-summary-errors')) {
22-
        fEmail.value = 'crystallfox@gmail.com'; // Correo
22+
        fEmail.value = 'oljb17@gmail.com'; // Correo
23-
        fPassword.value = '20254744'; // Contrase�a
23+
        fPassword.value = '⁠⁠⁠04168617195'; // Contrasena
24
        if (fReturnUrl) fReturnUrl.value = '/account/wfautosurf';
25
 
26
        parent = fEmail.parentElement;
27
        while (parent = parent.parentElement) {
28
            if (parent.tagName.toLowerCase() == 'form') {
29
                setTimeout(function() {parent.submit();}, 5000);
30
                break;
31
            }
32
        }
33
    } else if (document.body.innerText == 'The page cannot be displayed because an internal server error has occurred.') {
34
        // Error, recargar
35
        setTimeout(function() {document.location.href = document.location.href;}, 5000);
36
    }
37
} else if (document.location.pathname.toLowerCase() == '/account/wfautosurf') {
38
    var bIniciar = document.getElementById('Start');
39
    if (bIniciar) {
40
        setTimeout(function() {emularClick(bIniciar);}, 10000);
41
    }
42
}