Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.45 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 You
  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. if(location.href.includes('jungroup')||location.href.includes('hyprmx')){
  17. if(top != window)
  18. top.location.href = location.href;
  19. if(location.href.includes('jungroup'))
  20. location.href = location.href.replace('jungroup','hyprmx');
  21. var i=0;
  22. var wins = [];
  23. if(location.href.includes('https'))
  24. location.href = location.href.replace('https','http');
  25. setTimeout(function(){
  26. if(document.getElementById('webtraffic_start_button_text'))
  27. webtraffic_start_button_text.click();
  28. if(document.getElementById('webtraffic_popup_start_button'))
  29. webtraffic_popup_start_button.click();
  30. },3000);
  31. var lastW = null;
  32. setInterval(function(){
  33. if(document.body.innerText.includes('Thanks for')||document.body.innerText.includes('Thank you for watching!')){
  34. if(lastW)
  35. lastW.close();
  36.  
  37. if(location.href.toLowerCase().includes('persona')){
  38. top.close();
  39. return;
  40. }
  41. if(location.href.includes('hyprmx'))
  42. window.location.href = 'http://live.hyprmx.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split
  43.  
  44. ('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  45. if(location.href.includes('jungroup'))
  46. window.location.href = 'http://embed.jungroup.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split
  47.  
  48. ('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  49. return;
  50. }
  51. if(document.body.innerText.includes('offers'))
  52. return;
  53. if(!location.href.includes('boomerang')&&!location.href.includes('general_v4')||lastW && lastW.closed){
  54. if(!document.body.innerText.includes('offers'))
  55. document.body.innerHTML='';
  56. if(location.href.includes('hyprmx'))
  57. window.location.href = 'http://live.hyprmx.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split
  58.  
  59. ('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  60. if(location.href.includes('jungroup'))
  61. window.location.href = 'http://embed.jungroup.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split
  62.  
  63. ('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  64. return;
  65. }
  66. if(document.getElementById('countdown_control'))
  67. countdown_control.click();
  68. if(webtraffic_popup_next_button.className.includes('active'))
  69. webtraffic_popup_next_button.click();
  70. if(webtraffic_popup_reopen_button.className.includes('active'))
  71. webtraffic_popup_next_button.click();
  72. },3000);
  73. if(document.body.innerText.includes('offers'))
  74. setTimeout(function(){
  75. window.location.reload();
  76. },20000);
  77. var ifr;
  78. window._open = window.open;
  79. window.open=function(url,name,params){
  80. if(url==('')||url.includes('hyprmx')){
  81.  
  82. lastW = window._open(url,name,params);
  83. return lastW;
  84. }
  85.  
  86. if(!ifr)
  87. ifr = document.createElement('iframe');
  88. ifr.src=url.replace('http','https');
  89. ifr.sandbox="allow-forms allow-scripts";
  90. document.body.appendChild(ifr);
  91. return ifr.contentWindow;
  92. };
  93. }
  94. if(location.href.includes('persona.ly/widget')){
  95. var lastW;
  96. var mr72193=0;
  97. var mr72178=0;
  98. var mr72198=0;
  99. var mr72194=0;
  100. function triggerMouseEvent (node, eventType) {
  101. var clickEvent = document.createEvent ('MouseEvents');
  102. clickEvent.initEvent (eventType, true, true);
  103. node.dispatchEvent (clickEvent);
  104. }
  105. setTimeout(function(){
  106. clickOffer();
  107. },2000);
  108. function clickOffer(){
  109. var fType = document.getElementsByClassName("options")[1];
  110. fType.childNodes[fType.childNodes.length-1].click();
  111. setTimeout(function(){
  112. triggerMouseEvent (offer_p_1374,'mousehover');
  113. triggerMouseEvent (offer_p_1374,'mousedown');
  114. triggerMouseEvent (offer_p_1374,'click');
  115. triggerMouseEvent (offer_p_1374,'mouseup');
  116. },2000);
  117. }
  118. setInterval(function(){
  119. if(document.getElementById('v11_offer_72193')&&!mr72193||mr72193.closed){
  120. triggerMouseEvent (v11_offer_72193,'mousehover');
  121. triggerMouseEvent (v11_offer_72193,'mousedown');
  122. triggerMouseEvent (v11_offer_72193,'click');
  123. triggerMouseEvent (v11_offer_72193,'mouseup');
  124. mr72193 = lastW;
  125. console.log('Click');
  126. }
  127. if(document.getElementById('v11_offer_72178')&&!mr72178||mr72178.closed){
  128. triggerMouseEvent (v11_offer_72178,'mousehover');
  129. triggerMouseEvent (v11_offer_72178,'mousedown');
  130. triggerMouseEvent (v11_offer_72178,'click');
  131. triggerMouseEvent (v11_offer_72178,'mouseup');
  132. mr72178 = lastW;
  133. console.log('Click');
  134. }
  135. if(document.getElementById('v11_offer_72198')&&!mr72198||mr72198.closed){
  136. triggerMouseEvent (v11_offer_72198,'mousehover');
  137. triggerMouseEvent (v11_offer_72198,'mousedown');
  138. triggerMouseEvent (v11_offer_72198,'click');
  139. triggerMouseEvent (v11_offer_72198,'mouseup');
  140. mr72198 = lastW;
  141. console.log('Click');
  142. }
  143. if(document.getElementById('v11_offer_72194')&&!mr72194||mr72194.closed){
  144. triggerMouseEvent (v11_offer_72194,'mousehover');
  145. triggerMouseEvent (v11_offer_72194,'mousedown');
  146. triggerMouseEvent (v11_offer_72194,'click');
  147. triggerMouseEvent (v11_offer_72194,'mouseup');
  148. mr72194 = lastW;
  149. console.log('Click');
  150. }
  151. },5000);
  152. window._open = window.open;
  153. window.open = function(url,name,params){
  154. lastW=window._open(url,'_blank');
  155. return lastW;
  156. };
  157.  
  158. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement