Skip to content

Instantly share code, notes, and snippets.

@maagmirror
Created January 10, 2016 18:37
Show Gist options
  • Save maagmirror/0821e5b4491f35f0237b to your computer and use it in GitHub Desktop.
Save maagmirror/0821e5b4491f35f0237b to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Recargar perfil
// @namespace Maag
// @version 0.4
// @description recargar perfil
// @author Maag
// @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){
$('.perfil-info').append('<div class="follow-buttons" style="display:inline-block"><a original-title="reload" $javascript:window.location.reload();" class="btn g"><div class="following-text">Recargar</div></a></div>');
$('.bact').click(function(){
// $javascript:window.location.reload();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment