Raw Source
skulltah / Caland Rooster Optimizer

// ==OpenUserJS==
// @author skulltah
// @collaborator username
// ==/OpenUserJS==
// ==UserScript==
// @id              CalandRooster
// @name            Caland Rooster Optimizer
// @namespace       http://www.rockbutton.tk/CalandRooster
// @version         1
// @author          Max Marshall
// @description     Improves Caland's rooster website.
// @icon            https://raw.github.com/YePpHa/YouTubeCenter/master/assets/icon48.png
// @icon64          https://raw.github.com/YePpHa/YouTubeCenter/master/assets/icon64.png
// @domain          rockbutton.tk
// @include         http://rooster.calandlyceum.nl/*
// @updateURL       https://raw.githubusercontent.com/skulltah/calandroosteroptimizer/master/calandroosteroptimzer.js
// @downloadURL     https://raw.githubusercontent.com/skulltah/calandroosteroptimizer/master/calandroosteroptimzer.js
// @updateVersion   156
// ==/UserScript==

var jeNummer = '115814';
if (document.getElementById('content')) {
  var inputs = document.getElementsByTagName('input')
  var forms = document.getElementsByTagName('form')
  if (inputs[inputs.length - 1].value == '') {
    inputs[inputs.length - 1].value = jeNummer;
    forms[1].submit();
  }
}