Last active
February 7, 2016 20:00
-
-
Save maagmirror/732d897112cb1863adc2 to your computer and use it in GitHub Desktop.
This file contains 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 Naoko- edit Maag | |
// @version 0.4 | |
// @description Limpia la actividad del perfil | |
// @author Yo | |
// @match *://www.taringa.net/* | |
// @match http://www.taringa.net/* | |
// @match https://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