Last active
January 13, 2016 17:43
-
-
Save maagmirror/fe7ec0877de3a2a18311 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 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){ | |
$('.btn.g.require-login').last().after('<a class="btn g bact" href="#"><div class="btn-text">Recargar</div></a>'); | |
$('.bact').click(function(){ | |
window.location="http://www.taringa.net/"+nick; | |
}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment