Created
January 10, 2016 18:37
-
-
Save maagmirror/0821e5b4491f35f0237b 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){ | |
$('.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