Spamma amici facebook

Plugin per invitare tutti gli amici su facebook

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Spamma amici facebook
// @description Plugin per invitare tutti gli amici su facebook
// @author Maxeo | maxeo.net
// @include     https://www.facebook.com/*
// @version     1.1.3
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js
// @icon        https://www.maxeo.net/imgs/icon/android-chrome-192x192.png
// @grant       none
// @namespace https://greasyfork.org/users/88678
// ==/UserScript==

$(document).ready(function () {
  var dataTimeSpam=1000;
  var intervalloAmici = setInterval(function () {
    if ($('.fbProfileBrowserResult').length) {
      clearInterval(intervalloAmici);
      $('.uiOverlayFooter').last().append('<input type="text" class="spammaTime" value="1000"><button type="button" class="spammaAmici">Spamma Amici</button>')
    }
  }, 500)
  
  
  function invitaAmico() {
    setTimeout(function () {
      $('.uiButtonText').eq(0).click()
      $('.uiButtonText').eq(0).remove()
      invitaAmico()
    }, dataTimeSpam);
  }
  $('body').on('click', '.spammaAmici', function () {
    dataTimeSpam=$('.spammaTime').val();
    invitaAmico();
  })
})//