CSGO Lounge Autobumper

Simple CSGO-Lounge Autobumper all 300 seconds

  1. // ==UserScript==
  2. // @name CSGO Lounge Autobumper
  3. // @description Simple CSGO-Lounge Autobumper all 300 seconds
  4. // @include http://csgolounge.com/mytrades*
  5. // @include https://csgolounge.com/mytrades*
  6. // @version 1.01
  7. // @grant none
  8. // @copyright 2015, Alucard
  9. // @namespace https://greasyfork.org/users/12716
  10. // ==/UserScript==
  11.  
  12. function autobump(){
  13. var y = 0;
  14.  
  15. for (var x = 0; x < document.getElementsByClassName("buttonright").length; x++){
  16. if(document.getElementsByClassName("buttonright")[x].innerHTML.search("Bump") > 0){
  17. var tradenr = document.getElementsByClassName("buttonright")[x].getAttribute('onclick');
  18. tradenr = tradenr.split("'")[1];
  19. $(document.getElementsByClassName("buttonright")[x]).hide();
  20. bumpTrade(tradenr);
  21. y++;
  22. }
  23. }
  24. timer = new Date();
  25. document.getElementById('follow').innerHTML += '<div id=autobumpnote style=color:white; width=100% align=center><br>Last Autobump: ' + timer.getHours() + ':' + (timer.getMinutes()<10?'0':'') + timer.getMinutes() + '<br>' + y + ' Trades bumped</div>';
  26. setTimeout(function(){window.location.href=location.href;},300000)
  27. }
  28.  
  29. autobump();
  30.