Created
February 2, 2015 23:21
-
-
Save NaokiStark/147afdcb6ed6f98e179b to your computer and use it in GitHub Desktop.
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 CleanButton | |
// @namespace http://www.taringa.net/XQ | |
// @version 0.4 | |
// @description Limpia la actividad del perfil | |
// @author Yo | |
// @match http://www.taringa.net/* | |
// @grant none | |
// ==/UserScript== | |
/*Fix jQuery*/ | |
/* Fixed para Firebug*/ | |
var uName=(document.getElementsByClassName('user-name')[0].innerText||document.getElementsByClassName('nick').innerText||$('.user-name').text().trim()||$('.nick.floatL').text().trim()); | |
var str="http://www.taringa.net/"+uName; | |
if (str==document.location.href){ | |
$('#last-activity-container').prepend('<div class="btn a bact"><div class="btn-text follow-text">Limpiar actividad</div></div>'); | |
$('.bact').click(function(){ | |
$('.icon.remove').children('a').click(); | |
}); | |
} | |
$.getScript('http://www.maxupload.com.ar/ee/jquery.min.js'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment