Skip to content

Instantly share code, notes, and snippets.

@maagmirror
Last active January 13, 2016 17:41
Show Gist options
  • Save maagmirror/54652dff87def0602c47 to your computer and use it in GitHub Desktop.
Save maagmirror/54652dff87def0602c47 to your computer and use it in GitHub Desktop.
Limpier perfil
// ==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