Last active
January 13, 2016 17:41
-
-
Save maagmirror/54652dff87def0602c47 to your computer and use it in GitHub Desktop.
Limpier perfil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LimpiarActividad | |
// @namespace Naoo- edit Maag | |
// @version 0.4 | |
// @description Limpia la actividad del perfil | |
// @author Yo | |
// @match *://www.taringa.net/* | |
// @grant none | |
// ==/UserScript== | |
/* Fixed para Firebug*/ | |
var nick=(document.getElementsByClassName('user-name')[0].innerText||document.getElementsByClassName('nick').innerText||$('.user-name').text().trim()||$('.nick.floatL').text().trim()); | |
var str="http://www.taringa.net/"+nick; | |
if (str==document.location.href){ | |
$('.btn.g.require-login').last().after('<a class="btn g bact" href="#"><div class="btn-text">Quitar actividad</div></a>'); | |
$('.bact').click(function(){ | |
$('.icon.remove').children('a').click(); | |
window.location="http://www.taringa.net/"+nick; | |
//$javascript:window.location.reload(); | |
}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment