Public Raffle AutoJoin

Enter raffle til the end.

  1. // ==UserScript==
  2. // @name Public Raffle AutoJoin
  3. // @namespace http://sergiosusa.com
  4. // @version 0.1
  5. // @description Enter raffle til the end.
  6. // @author Sergio Susa (http://sergiosusa.com)
  7. // @match https://steamcompanion.com/gifts/*
  8. // @grant none
  9. // ==/UserScript==
  10. /* jshint -W097 */
  11. 'use strict';
  12.  
  13. $(document).ready(function() {
  14.  
  15. setInterval(function(){
  16.  
  17. var btn = $("#more_entries");
  18.  
  19. for(var x = 0 ; x < 100 ; x++ ) {
  20. btn.click();
  21. }
  22. realoadPage(200000);
  23.  
  24. },8000);
  25. });
  26.  
  27. /***********************************************************
  28. * Utility Functions
  29. **********************************************************/
  30.  
  31. function realoadPage(miliseconds) {
  32. setInterval(function(){
  33. window.location.reload();
  34. }, miliseconds);
  35. }