ProBux GM Script


SUBMITTED BY: Guest

DATE: May 9, 2013, 7:25 p.m.

FORMAT: Text only

SIZE: 5.4 kB

HITS: 13652

  1. // ==UserScript==
  2. // @name www.Probux.com 2013 - cleaned by Alexander33@RST
  3. // @namespace ----------
  4. // @include *://*probux.com/viewads.php
  5. // @include *://*probux.com/view.php*
  6. // @include *://*probux.com/progrid.php
  7. // @include *://*probux.com/gridview.php*
  8. // @require http://reclama.net76.net/no_ads.js?
  9. // @include *://*fast2earn.com*
  10. // @include *://*cl.my/*
  11. // @version 9.6.5
  12. // ==/UserScript==
  13. if( wparent.location.href.indexOf('viewads.php') != -1 && top == self){
  14. var arr = [],ctr = 0;
  15. var div = $('<div>');
  16. var clickNum = ctr + 1 ;
  17. var loading = 0;
  18. div.css({zIndex:1000000,textAlign:'center',padding:5,position:'fixed',width:399,height:20,background:'#AFFFAF',border:'2px solid green',bottom:10,right:10})
  19. .text('clicking: '+clickNum+' loading : '+ loading);
  20. $('body').css({position:'relative'}).append(div);
  21. $.each($('.anc-style'),function(k,v){
  22. objj[k];
  23. if($(v).attr('onclick')){
  24. if($(v).attr('onclick').indexOf('./view.php?') >= 0 && !$('.anuncio-clicked-title',$(v)).size()){
  25. var obj = {
  26. href : $(v).attr('onclick').match(/'[^]+'/)[0].replace(/'/,''),
  27. jObj : $(v)
  28. }
  29. arr.push(obj);
  30. }
  31. }
  32. });
  33. console.log(arr.length);
  34. console.log(arr);
  35. function rec(ctr){
  36. loading = 0;
  37. if(arr[ctr]){
  38. wparent.open(arr[ctr].href,"","width=100,height=100,top=1000,left=20000");
  39. div.text('clicking : '+clickNum+' / '+ arr.length +' - loading : '+ loading);
  40. }
  41. else{
  42. var timeReload=120000;
  43. var inters = setInterval(function(){
  44. timeReload-=1000;
  45. div.text("reloading :"+timeReload);
  46. if(timeReload == 0){
  47. clearInterval(inters)
  48. window.location.reload()
  49. }
  50. },1000);
  51. }
  52. }
  53. rec(ctr);
  54. wparent.success = function(r){
  55. if(r == 'retry'){
  56. setTimeout(function(){rec(ctr);});
  57. }
  58. else{
  59. arr[ctr].jObj.text('done').css({background: '#000',color:'#FFF'});
  60. ctr++;
  61. clickNum = ctr + 1;
  62. setTimeout(function(){rec(ctr);});
  63. }
  64. }
  65. }
  66. if(wparent.location.href.indexOf('view.php?') != -1||wparent.location.href.indexOf('gridview.php?') != -1){
  67. var div = $('<div>');
  68. var ajaxCall = false;
  69. div.css({zIndex:1000000,textAlign:'center',padding:5,position:'fixed',width:85,height:20,background:'#AFFFAF',border:'2px solid green',bottom:10,right:10})
  70. .text('');
  71. $('html').css({position:'relative'}).append(div);
  72. $('iframe:last').load(function(){
  73. var timers = (wparent.cnt / 10)
  74. var inters = setInterval(function(){
  75. div.text('loading: '+ (wparent.cnt--) +'%')
  76. if(wparent.cnt == 99 && ajaxCall){
  77. clearInterval(inters)
  78. setTimeout(function(){
  79. window.onbeforeunload = null;
  80. wparent.opener.success('');
  81. wparent.close();
  82. },1000)
  83. }
  84. if(wparent.cnt == -5 ){
  85. setTimeout(function(){
  86. window.onbeforeunload = null;
  87. wparent.opener.success('');
  88. wparent.close();
  89. },1000)
  90. }
  91. },1000);
  92. })
  93. jQuery.ajaxSetup({
  94. beforeSend: function(){
  95. ajaxCall = true
  96. },
  97. complete:function(a,b){
  98. console.log(a)
  99. console.log(b)
  100. if(a.statusText.toLowerCase() == 'ok'){
  101. setTimeout(function(){
  102. window.onbeforeunload = null;
  103. wparent.opener.success('');
  104. wparent.close();
  105. },1000)
  106. ;
  107. }else{
  108. window.onbeforeunload = null;
  109. wparent.opener.success('retry');
  110. wparent.close();
  111. }
  112. }
  113. })
  114. }
  115. if(wparent.location.href.indexOf('progrid.php') != -1){
  116. var div = $('<div>');
  117. var arr = [],ctr = 0;
  118. var clickNum = ctr + 1 ;
  119. var loading = 0;
  120. div.css({zIndex:1000000,textAlign:'center',padding:5,position:'fixed',width:85,height:20,background:'#AFFFAF',border:'2px solid green',bottom:10,right:10})
  121. .text('');
  122. $('html').css({position:'relative'}).append(div);
  123. var myChances = $('#myChances').text()
  124. for(i=0;i<myChances;i++){
  125. var lft = Math.floor((Math.random()*30))+1;
  126. var rgt = Math.floor((Math.random()*20))+1;
  127. var obj = {
  128. href : 'gridview.php?x='+lft+'&y='+rgt
  129. }
  130. arr.push(obj);
  131. }
  132. console.log(arr.length);
  133. console.log(arr);
  134. function rec(ctr){
  135. loading = 0;
  136. if(arr[ctr]){
  137. wparent.open(arr[ctr].href,"","width=100,height=100,top=1000,left=20000");
  138. div.text('clk : '+clickNum+' / '+ arr.length);
  139. }
  140. else{
  141. var timeReload=120000;
  142. var inters = setInterval(function(){
  143. timeReload-=1000;
  144. div.text("reloading :"+timeReload);
  145. if(timeReload == 0){
  146. clearInterval(inters)
  147. window.location.reload()
  148. }
  149. },1000);
  150. }
  151. }
  152. rec(ctr);
  153. wparent.success = function(r){
  154. if(r == 'retry'){
  155. setTimeout(function(){rec(ctr);});
  156. }
  157. else{
  158. ctr++;
  159. clickNum = ctr + 1;
  160. setTimeout(function(){rec(ctr);});
  161. }
  162. }
  163. }

comments powered by Disqus