Te muestra si un user esta ban o no.
当前为
// ==UserScript==
// @name Coso para ver si un user esta ban
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Te muestra si un user esta ban o no.
// @author Wixie
// @match http*://www.taringa.net/*
// @match https://www.taringa.net/*
// @grant none
// ==/UserScript==
var ban = function(user){
var state;
var style;
$.get('https://api.taringa.net/user/nick/view/' + nick, function(data){
if (data.status === 10) {
state = "No está baneado.";
style = "color: #357ADD;";
}
else if (data.status === 5) {
state = "Está baneado.";
style = "color: #e64f64;";
}
$('.perfil-info').append('<div style="position: absolute; top: 15%; right: 1%;"><span style="font-size: 13px; font-weight: bold; ' + style + '">' + state + '</span></div>');
});
};
var nick = $('.nickname').html();
if (nick == null) {
nick = $('.fn').html(); // Esto es para poder obtener el nick de los que la bugean como http://www.taringa.net/OverJT
}
nick = nick.replace("@", "");
ban(nick);