// ==UserScript==
// @name           Takarazuka ticket autoselect
// @namespace      curipha
// @description    Choose sheet category and number automatically
// @include        https://ent-kageki.e-tix.jp/ticket/seatnumberselect.html*
// @version        0.0.2
// @grant          none
// @noframes
// ==/UserScript==

(function(){
  'use strict';

  // Number of Tickets
  var selectchilditem = function(id) {
    var elem = document.getElementById(id);
    if (elem) {
      var child = elem.children[1];
      if (child) child.selected = true;
    }
  };
  selectchilditem('tc11') // Sheet S
  selectchilditem('tc21') // Sheet A
  selectchilditem('tc31') // Sheet B

  // Seat location category
  var type = document.body.querySelectorAll('input[name="rt"][value="2"]');
  for (var input of type) {
    if (input) input.checked = true;
  }

  // Go to bottom of page
  window.scrollTo(0, document.body.scrollHeight);
})();


// ==UserScript==
// @name           Takarazuka ticket autoselect
// @namespace      curipha
// @description    Choose sheet category and number automatically
// @include        https://ent-kageki.e-tix.jp/ticket/seatnumberselect.html*
// @version        0.1.0
// @grant          none
// @noframes
// ==/UserScript==

(function(){
  'use strict';

  // Number of Tickets
  var selectchilditem = function(id) {
    var elem = document.getElementById(id);
    if (elem) {
      var child = elem.children[1];
      if (child) child.selected = true;
    }
  };
  selectchilditem('tc11') // Sheet S
  selectchilditem('tc21') // Sheet A
  selectchilditem('tc31') // Sheet B

  // Seat location category
  var type = document.body.querySelectorAll('input[name="rt"][value="2"]');
  for (var input of type) {
    if (input) input.checked = true;
  }

  // Go to bottom of page
  window.scrollTo(0, document.body.scrollHeight);
})();


Bump version to 0.1.0