Skip to content

Instantly share code, notes, and snippets.

@maagmirror
Created January 3, 2019 01:52
Show Gist options
  • Save maagmirror/03e1468ebafcfe3498ae6db88d0bf844 to your computer and use it in GitHub Desktop.
Save maagmirror/03e1468ebafcfe3498ae6db88d0bf844 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name CleanButton
// @namespace http://www.taringa.net/XQ
// @version 0.4
// @description Limpia la actividad del perfil
// @author Yo
// @match https://www.taringa.net/*
// @grant none
// ==/UserScript==
/*Fix jQuery*/
$.getScript('https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js');
/* 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="https://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();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment