FollowAll (La Polla)

A partir de un perfil de un usuario sigue a los seguidos y seguidores de este

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name FollowAll (La Polla)
// @namespace https://greasyfork.org/en/users/243179-kchamat
// @version 0.11
// @description A partir de un perfil de un usuario sigue a los seguidos y seguidores de este
// @author Autofollow by @kchamat based on @Cazador4ever CazaTools
// @match http://lapolladesertora.net/perfil/*
// @grant none
// ==/UserScript==

(function($) {
'use strict';
    //--ocultar un objeto
function ocultar(objeto){
var styles = objeto+'{display:none; margin-top:5000px; }';
var styleSheet = document.createElement("style");
styleSheet.type = "text/css";
styleSheet.innerText = styles;
document.head.appendChild(styleSheet)
}
//--seguir
function seguir(){
    if ($(".btn_g.follow_user_post").length ) {
        $(".btn_g.follow_user_post").click();
        }
    else {window.history.go(-2)}
}
    setTimeout(function() {
    var direccion=Math.floor(Math.random() *2);
    if (direccion=0){$("#seguidores").click();}
    else {$("#siguiendo").click();}
}, 1000);
    //--random
function random(){
 if ($(".list-element").length ) {
    var cuantos=$(".list-element").length
    var dado=Math.floor((Math.random() * cuantos) + 1);
    var ichus=0;
    for (ichus = 0; ichus < dado-1 ; ichus++) {
        $(".list-element:first").removeClass("list-element");
}
 $(".list-element:first").children().children(".listado-avatar").children("a").click();
$(".list-element:first").children().children(".listado-avatar").children("a").addClass("selected");
$(".selected").children().click();
        }
    else {window.history.go(-2)}
}
//--empieza
    seguir();
setTimeout(function() {
random();
seguir();

}, 5000);
//ocultar("div#mydialog");
//ocultar("div#mask");
})(jQuery);