BuxP Script


SUBMITTED BY: Guest

DATE: May 13, 2013, 11:02 a.m.

FORMAT: Text only

SIZE: 5.3 kB

HITS: 4379

  1. // ==UserScript==
  2. // @name buxp
  3. // @namespace buxp
  4. // @include *://*buxp.org/ads.php
  5. // @include *://*buxp.org/view.php*
  6. // @require http://userscripts.org/scripts/source/156923.user.js?
  7. // @include *://*.*cks.com/
  8. // @include *://*cl.my/*
  9. // @include *://*link.com/*
  10. // @include *://*df.ly/*
  11. // @include *://*ysear.ch/*
  12. // @version 1
  13. // ==/UserScript==
  14. if(wparent.location.href.indexOf('ads.php') != -1 ){
  15. var winder;
  16. var xhr = $.ajaxSetup({
  17. complete: function(a,b,c,d){
  18. if(winder){winder.close()}
  19. var arr = [],ctr = 0;
  20. var div = $('<div>');
  21. var clickNum = ctr + 1 ;
  22. var loading = 0;
  23. console.log(a)
  24. console.log(b)
  25. console.log(c)
  26. console.log(d)
  27. div.css({zIndex:1000000,textAlign:'center',padding:5,position:'fixed',width:399,height:20,background:'#AFFFAF',border:'2px solid green',bottom:10,right:10})
  28. .text('clicking: '+clickNum+' loading : '+ loading);
  29. $('body').css({position:'relative'}).append(div);
  30. $.each($('.mtitle'),function(k,v){
  31. if($(v).text().indexOf('CHEAT DETECTOR') >=0){
  32. $(v).parents('#menu').remove()
  33. }
  34. if($(v).text().indexOf('EXPIRED ADVERTISEMENTS') >=0){
  35. $(v).parents('#menu').remove()
  36. }
  37. })
  38. $.each($('.visitext'),function(k,v){
  39. objj[k];
  40. if($(v).parent().attr('href')){
  41. if($(v).parent().attr('href').indexOf('view.php')>=0 ){
  42. var href = $(v).parent().attr('href')
  43. var obj = {
  44. href : href,
  45. jObj : $(v)
  46. }
  47. arr.push(obj);
  48. }
  49. }
  50. });
  51. console.log(arr.length);
  52. console.log(arr);
  53. function rec(ctr){
  54. loading = 0;
  55. if(arr[ctr]){
  56. winder = wparent.open(arr[ctr].href,"","width=100,height=100,top=1000,left=20000");
  57. div.text('clicking : '+clickNum+' / '+ arr.length +' - loading : '+ loading);
  58. }
  59. else{
  60. var timeReload=120000;
  61. var inters = setInterval(function(){
  62. timeReload-=1000;
  63. div.text("reloading :"+timeReload);
  64. if(timeReload == 0){
  65. clearInterval(inters)
  66. window.location.reload()
  67. }
  68. },1000);
  69. setTimeout(function(){window.open("http://fast2earn.com/-120033.htm","","width=100,height=100,top=1000,left=20000") ;},5000);
  70. }
  71. }
  72. rec(ctr);
  73. wparent.success = function(r){
  74. if(r == 'retry'){
  75. setTimeout(function(){rec(ctr);});
  76. }
  77. else if(r == 'fail'){
  78. arr[ctr].jObj.text('fail').css({background: 'red',color:'#FFF'});
  79. ctr++;
  80. clickNum = ctr + 1;
  81. setTimeout(function(){rec(ctr);});
  82. }
  83. else{
  84. arr[ctr].jObj.text('done').css({background: '#000',color:'#FFF'});
  85. ctr++;
  86. clickNum = ctr + 1;
  87. setTimeout(function(){rec(ctr);});
  88. }
  89. }
  90. }
  91. });
  92. var inters = setInterval(function(){
  93. if($('#adsavailable').text().indexOf('loading') == -1){
  94. clearInterval(inters)
  95. xhr.complete();
  96. }
  97. },1500)
  98. }
  99. if(wparent.location.href.indexOf('view.php') != -1){
  100. var datas = ''//$('body script:first').text().match(/getaddon[^]+/)[0].split(',')[1].replace(/'/g,'').replace('+c','');
  101. var num = 0;
  102. var div = $('<div>');
  103. div.css({zIndex:1000000,textAlign:'center',padding:5,position:'fixed',width:85,height:20,background:'#AFFFAF',border:'2px solid green',bottom:10,right:10})
  104. .text('');
  105. $('html').css({position:'relative'}).append(div);
  106. function ajaxRec(num){
  107. $.ajax({
  108. url : 'clickadsproc',
  109. data : datas+num,
  110. type : 'POST'
  111. }).complete(function(a,b,c,d){
  112. console.log(a)
  113. console.log(b)
  114. console.log(c)
  115. console.log(d)
  116. if(a.responseText.indexOf('has been credited')>=0){
  117. window.onbeforeunload = null;
  118. wparent.opener.success('');
  119. wparent.close();
  120. }
  121. else if(a.statusText == 'error'){
  122. window.onbeforeunload = null;
  123. wparent.opener.success('fail');
  124. wparent.close();
  125. }
  126. else{
  127. div.text('src:'+ num)
  128. num++;
  129. ajaxRec(num);
  130. }
  131. })
  132. }
  133. var timer = 10
  134. var inters = setInterval(function(){
  135. timer--
  136. if(timer == 0){
  137. clearInterval(inters);
  138. ajaxUrl = $('form[name=frm] > script').text().match(/success.location.href="[^]+=1";/)[0].replace('success.location.href="','').replace(/"/g,'').replace(';','')
  139. console.log(ajaxUrl)
  140. $.ajax({
  141. url : ajaxUrl,
  142. type : 'get'
  143. }).complete(function(a,b,c,d){
  144. console.log(a)
  145. console.log(b)
  146. console.log(c)
  147. console.log(d)
  148. if(a.responseText.indexOf('credited')>=0){
  149. window.onbeforeunload = null;
  150. wparent.opener.success('');
  151. wparent.close();
  152. }
  153. else if(a.statusText == 'error'){
  154. window.onbeforeunload = null;
  155. wparent.opener.success('fail');
  156. wparent.close();
  157. }
  158. })
  159. }
  160. div.text('wait'+timer);
  161. },1300);
  162. }

comments powered by Disqus