Advertisement
VasVadum

UserScript: Steam Age Check Skipper

Sep 8th, 2017
2,435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Auto Steam Age Verifier
  3. // @description  Lets you set your age so you can skip the Steam Age Verification page.
  4. // @version      1.5
  5. // @namespace    VasVadum
  6. // @license      CC-BY-NC
  7. // @include      http://store.steampowered.com/agecheck/*
  8. // @include      https://store.steampowered.com/agecheck/*
  9. // @grant        none
  10. // ==/UserScript==
  11.  
  12. //Do you want a randomized date instead? Set to True if so.  If not, leave as is and edit the values on line 17, 19, and 21.
  13. var random = 'False';
  14.  
  15. //In the lines below, please enter the correct information in the value spot.  EG "var m = __", any invalid information may result in script failure.
  16. //Month
  17. var m = 10;
  18. //Day
  19. var d = 28;
  20. //Year
  21. var y = 1990;
  22.  
  23. if (random == 'True') {
  24.     var m = Math.floor((Math.random() * 12) + 1);
  25.     var d = Math.floor((Math.random() * 28) + 1);
  26.     var y = Math.floor((Math.random() * 1996) + 1);
  27. }
  28.  
  29. //Do not edit below this line.
  30. var mm = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
  31.  
  32. (function (form) {
  33.     form.ageYear.value = y;
  34.     form.ageMonth.value = mm[m - 1];
  35.     form.ageDay.value = d;
  36.     form.submit();
  37. }(document.querySelector('#agegate_box form')));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement