Greasy Fork is available in English.

OrlyGift - Voter

Automatically vote for you

  1. // ==UserScript==
  2. // @name OrlyGift - Voter
  3. // @icon https://www.orlygift.com/favicon.ico
  4. // @namespace Royalgamer06
  5. // @author Royalgamer06
  6. // @version 1.1
  7. // @description Automatically vote for you
  8. // @include https://www.orlygift.com/voting
  9. // @grant none
  10. // @run-at document-idle
  11. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
  12. // @require https://greasyfork.org/scripts/18449-recaptcha-helper/code/reCAPTCHA%20Helper.user.js
  13. // ==/UserScript==
  14.  
  15. var rate = 1; //1 = good, -1 = bad
  16.  
  17. this.$ = this.jQuery = jQuery.noConflict(true);
  18. function vote() {
  19. $.get("/voting", function(data) {
  20. if ($("#voting-claim-button", data).length === 0) {
  21. var appid = $("input[name=steam_id]", data).val();
  22. var token = $("input[name=_token]", data).val();
  23. $.post("/voting/rate", { _token: token, rate: 1, steam_id: appid }, function() {
  24. vote();
  25. });
  26. } else {
  27. location.href = "https://www.orlygift.com/voting";
  28. }
  29. });
  30. }
  31. if ($("#voting-claim-button").length === 0) {
  32. vote();
  33. } else {
  34. $("#voting-claim-button").click();
  35. }