Remover IP Auto

Remover seu ip de todos os logs

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

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

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         Remover IP Auto
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Remover seu ip de todos os logs
// @match        http://*.hackerexperience.com/*
// @match        http://hackerexperience.com/*
// @match        https://*.hackerexperience.com/*
// @match        https://hackerexperience.com/*
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_addStyle
// ==/UserScript==
if (window.self !== window.top) return;

Array.prototype.contains = function(s) {
    return this.indexOf(s) !== -1;
};
String.prototype.contains = function(it) {
    return this.indexOf(it) != -1;
};
var g_IP = "";
function PegarIP()
{
    var IPTeste = document.getElementsByClassName("header-ip-show")[0].innerText.trim();
    if (IPTeste !== null && IPTeste !== undefined && IPTeste !== "" && IPTeste !== " " && IPTeste !== g_IP) {
        g_IP = IPTeste;
    }
}

function Editar()
{
    var Log = document.getElementsByClassName("logarea")[0];
    if( Log === null  || Log === undefined || Log === "" || Log === " ")
    {
        return;
    }
    if($(".logarea").text() === ""){
        return;
    }
    var Linhas = $( ".logarea" ).text().split("\n");
    var StrDepois = "";
    var MeuIP = g_IP;
    if($( ".logarea" ).text().contains(MeuIP) === false)
    {
        return;
    }
    for(var i = 0; i < Linhas.length; i++ )
    {
        if(Linhas[i].contains(MeuIP))
        {
            continue;            
        }else{
            if(i === Linhas.length - 1){
                StrDepois += Linhas[i];
            }else{
                StrDepois += Linhas[i] + "\n";
            }
            
        }
    }
    
    $( ".logarea" ).val( StrDepois );
    $( "form.log" ).submit();
}

setTimeout(function() {
    PegarIP();
    Editar();
}, 500);