silverboy_sbyahoo.com / Facebook Autolike

// ==UserScript==
// @name          Facebook Autolike
// @namespace     http://silverboy.ir
// @description   this script like first 30 post in your wall in facebook, its liking post with random time , so facebook cant detect you as spam
// @include     /^https?://www\.facebook\.com/.*$/
// @require       http://code.jquery.com/jquery-1.8.0.min.js
// @grant       none
// @version 0.0.1.20150111150301
// ==/UserScript==
	jQuery.noConflict();
	var autolikeLiked = 0;
	var autolikeTimeout = false;
	var autolikeArray = Array(3000, 2000, 4000, 1500,3000, 2000, 4000, 1500,3000, 2000, 4000, 1500);
	function autolikeFunc(){
		if(autolikeLiked == 30)
			return false;
		if(jQuery('.UFILikeLink').length > 0 && jQuery('button[name="like"]').length == 0)
			{
				jQuery('.UFILikeLink').each(function(){
					if(jQuery(this).html() == 'Like')
						{
							jQuery(this).removeAttr('href');
							jQuery(this)[0].click();
							var num =  Math.floor((Math.random()*10)+1);
							clearTimeout(autolikeTimeout);
							var autolikeArray = Array(3000, 2000, 4000, 1500,3000, 2000, 4000, 1500,3000, 2000, 4000, 1500);
							setTimeout(autolikeFunc, autolikeArray[num])
							autolikeLiked++;
							return false;
						}
					else
						{
							if(autolikeTimeout != false)
								clearTimeout(autolikeTimeout);
							autolikeTimeout = setTimeout(autolikeFunc, 15000);
						}
				})
			}
		else {
			if(jQuery('button[name="like"]').length == 0)
			{
				if(autolikeTimeout != false)
					clearTimeout(autolikeTimeout);
				autolikeTimeout = setTimeout(autolikeFunc, 15000);
				return false;
			}
			jQuery('button[name="like"]').each(function(){
				jQuery(this).click();
				var num =  Math.floor((Math.random()*10)+1);
				clearTimeout(autolikeTimeout);

				setTimeout(autolikeFunc, autolikeArray[num])
				autolikeLiked++;
				return false;
			})
		}
	}
	if(location.href == 'http://facebook.com' || location.href == 'https://facebook.com'
		|| location.href == 'http://www.facebook.com' || location.href == 'https://www.facebook.com'
		|| location.href == 'http://www.facebook.com/' || location.href == 'https://www.facebook.com/')
		autolikeFunc();
	else {
		var div = document.createElement('div');
		jQuery(div).html('Do you Want To Like All Post In This Page?').css({
			width : '290px',
			height : '16px',
			position : 'absolute',
			top : '0px',
			left : '600px',
			border : '1px dotted silver',
			padding : '15px 5px 5px',
			background : 'rgba(255, 255, 255, 0.6)',
			textAlign : 'center'
		}).appendTo('#blueBar');
		var yes = document.createElement('a');
		var no = document.createElement('a');
		jQuery(yes).html(' Yes ').attr('href', 'javascript:void(0)').appendTo(div).click(function(){
			autolikeFunc()
			jQuery(div).hide();
		}).addClass('uiButton').css('border-radius', '3px');
		jQuery(no).html(' No ').attr('href', 'javascript:void(0)').appendTo(div).click(function(){
			jQuery(div).hide();
		}).addClass('uiButton').css('border-radius', '3px');
	}
	//autolikeFunc();