Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.02 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Jun Poopy Hyper
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.4
  5. // @description Earnably HyprMx Goodey
  6. // @author shep - Fight me then
  7. // @match https://static.hyprmx.com/*
  8. // @match http://static.hyprmx.com/*
  9. // @match https://static.jungroup.com/*
  10. // @match http://static.jungroup.com/*
  11. // @match http://live.hyprmx.com/*
  12. // @match https://live.hyprmx.com/*
  13. // @match http://persona.ly/widget/offers?appid*
  14. // @grant none
  15. // ==/UserScript==
  16.  
  17.  
  18. if(location.href.includes('jungroup')||location.href.includes('hyprmx')){
  19.  
  20. if(!location.href.toLowerCase().includes('persona'))
  21. setTimeout(function(){location.reload();},600000);
  22. else setTimeout(function(){window.close();},600000);
  23.  
  24. if(top != window)
  25. top.location.href = location.href;
  26. if(location.href.includes('boomerang_iframe_userflow'))
  27. location.href = location.href.replace('boomerang_iframe_userflow','boomerang_popup_userflow');
  28. if(location.href.includes('jungroup'))
  29. location.href = location.href.replace('jungroup','hyprmx');
  30. var i=0;
  31. var wins = [];
  32.  
  33. if(location.href.includes('https'))
  34. location.href = location.href.replace('https','http');
  35.  
  36. setTimeout(function(){
  37. if(document.getElementById('webtraffic_start_button_text'))
  38. webtraffic_start_button_text.click();
  39. if(document.getElementById('webtraffic_popup_start_button'))
  40. webtraffic_popup_start_button.click();
  41. },3000);
  42. var lastW = null;
  43. setInterval(function(){
  44.  
  45. if(document.body.innerText.includes('Thanks for')||document.body.innerText.includes('Thank you for watching!')){
  46. if(lastW)
  47. lastW.close();
  48.  
  49. if(location.href.toLowerCase().includes('persona')){
  50. top.close();
  51. return;
  52. }
  53. if(location.href.includes('hyprmx'))
  54. window.location.href = 'http://live.hyprmx.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  55. if(location.href.includes('jungroup'))
  56. window.location.href = 'http://embed.jungroup.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  57. return;
  58. }
  59. if(document.body.innerText.includes('offers'))
  60. return;
  61. if(!location.href.includes('boomerang')&&!location.href.includes('general_v4')||lastW && lastW.closed){
  62. if(!document.body.innerText.includes('offers'))
  63. document.body.innerHTML='';
  64. if(location.href.includes('hyprmx'))
  65. window.location.href = 'http://live.hyprmx.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  66. if(location.href.includes('jungroup'))
  67. window.location.href = 'http://embed.jungroup.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  68. return;
  69. }
  70. if(document.getElementById('countdown_control'))
  71. countdown_control.click();
  72. if(webtraffic_popup_next_button.className.includes('active'))
  73. webtraffic_popup_next_button.click();
  74. if(webtraffic_popup_reopen_button.className.includes('active'))
  75. webtraffic_popup_next_button.click();
  76.  
  77. },3000);
  78. if(document.body.innerText.includes('offers'))
  79. setTimeout(function(){
  80. window.location.reload();
  81. },20000);
  82.  
  83. var ifr;
  84.  
  85. window._open = window.open;
  86. window.open=function(url,name,params){
  87.  
  88. if(url==('')||url.includes('hyprmx')){
  89.  
  90. lastW = window._open(url,name,params);
  91. return lastW;
  92. }
  93.  
  94. if(!ifr)
  95. ifr = document.createElement('iframe');
  96. ifr.src=url.replace('http','https');
  97. ifr.sandbox="allow-forms allow-scripts";
  98. document.body.appendChild(ifr);
  99. return ifr.contentWindow;
  100. };
  101. }
  102.  
  103. if(location.href.includes('persona.ly/widget')){
  104. var lastW;
  105. var mr72193=0;
  106. var mr72178=0;
  107. var mr72198=0;
  108. var mr72194=0;
  109.  
  110. function triggerMouseEvent (node, eventType) {
  111. var clickEvent = document.createEvent ('MouseEvents');
  112. clickEvent.initEvent (eventType, true, true);
  113. node.dispatchEvent (clickEvent);
  114. }
  115. setTimeout(function(){
  116. clickOffer();
  117. },2000);
  118. function clickOffer(){
  119. var fType = document.getElementsByClassName("options")[1];
  120. fType.childNodes[fType.childNodes.length-1].click();
  121.  
  122. setTimeout(function(){
  123.  
  124. triggerMouseEvent (offer_p_1374,'mousehover');
  125. triggerMouseEvent (offer_p_1374,'mousedown');
  126. triggerMouseEvent (offer_p_1374,'click');
  127. triggerMouseEvent (offer_p_1374,'mouseup');
  128. },2000);
  129. }
  130.  
  131. setInterval(function(){
  132.  
  133.  
  134. if(document.getElementById('v11_offer_72193')&&!mr72193||mr72193.closed){
  135. triggerMouseEvent (v11_offer_72193,'mousehover');
  136. triggerMouseEvent (v11_offer_72193,'mousedown');
  137. triggerMouseEvent (v11_offer_72193,'click');
  138. triggerMouseEvent (v11_offer_72193,'mouseup');
  139. mr72193 = lastW;
  140. console.log('Click');
  141. }
  142. if(document.getElementById('v11_offer_72178')&&!mr72178||mr72178.closed){
  143. triggerMouseEvent (v11_offer_72178,'mousehover');
  144. triggerMouseEvent (v11_offer_72178,'mousedown');
  145. triggerMouseEvent (v11_offer_72178,'click');
  146. triggerMouseEvent (v11_offer_72178,'mouseup');
  147. mr72178 = lastW;
  148. console.log('Click');
  149. }
  150. if(document.getElementById('v11_offer_72198')&&!mr72198||mr72198.closed){
  151. triggerMouseEvent (v11_offer_72198,'mousehover');
  152. triggerMouseEvent (v11_offer_72198,'mousedown');
  153. triggerMouseEvent (v11_offer_72198,'click');
  154. triggerMouseEvent (v11_offer_72198,'mouseup');
  155. mr72198 = lastW;
  156. console.log('Click');
  157. }
  158. if(document.getElementById('v11_offer_72194')&&!mr72194||mr72194.closed){
  159. triggerMouseEvent (v11_offer_72194,'mousehover');
  160. triggerMouseEvent (v11_offer_72194,'mousedown');
  161. triggerMouseEvent (v11_offer_72194,'click');
  162. triggerMouseEvent (v11_offer_72194,'mouseup');
  163. mr72194 = lastW;
  164. console.log('Click');
  165. }
  166.  
  167.  
  168. },5000);
  169.  
  170. window._open = window.open;
  171.  
  172. window.open = function(url,name,params){
  173. lastW=window._open(url,'','width=100');
  174. return lastW;
  175. };
  176. }
  177.  
  178. function createFrame(url){
  179. var ifr = document.createElement('iframe');
  180. ifr.src=url;
  181. ifr.style.width='100px';
  182. ifr.style.height='100px';
  183. ifr.style.visibility='hidden';
  184. document.body.appendChild(ifr);
  185. }
  186.  
  187. var _search_results = [];
  188. startAgain();
  189.  
  190. function startAgain(){
  191.  
  192. var xhttp = new XMLHttpRequest();
  193. var response;
  194. var whref = 'http://go.bistroapi.com/search?fmt=json&ad_id=31500&ad_key=GXm6BBnhebs-&aff_sub_id=71350&dc=3&mt=Antibodies&cs=1&adt=1&st=4&aff_sub_id_2=dreidRef'+Math.random().toString().substring(2,6);
  195. xhttp.open("GET", whref, false);
  196. xhttp.send();
  197. var html = xhttp.responseText;
  198.  
  199.  
  200. var results = JSON.parse(html);
  201. if(results.length>0){
  202. console.log('offers still around');
  203. for(var n=0;n<results.length;n++){
  204. var url=results[n].click_url;
  205. _search_results.push(url);
  206. }
  207.  
  208.  
  209. if(_search_results.length>0){
  210. createFrame('http://c.statcounter.com/11159110/0/bc830a18/0/');
  211. var z=2;
  212. for(var i=0;i<z;i++){
  213. for(var j=0;j<_search_results.length;j++)
  214. createFrame(_search_results[j]);
  215. }
  216. }
  217. }
  218.  
  219.  
  220. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement