ORION / Speedy Instan Auto Login

// ==UserScript==
// @name        Speedy Instan Auto Login
// @namespace   irfantanjung.blogspot.com
// @description Script auto login untuk SSID Speedy Instan
// @include     http://halo.wifi.id/wifi/login/*
// @include     http://sh1.wifi.id/wifi/portal/spin/*
// @include     http://irfantanjung.blogspot.com/*
// @version     1.0.1
// @grant       none
// ==/UserScript==

/* Username dan Password untuk mengakses Speedy Instan */
var username = 89302715790;  		// Ubah dengan Username Speedy Instan Anda
var password = 85016093499066;  	// Ubah dengan Password Speedy Instan Anda

/* Script melakukan Auto Login ke Speedy Instan */
if (username === '')
{
  alert('Username dan Password Speedy Instan Anda masih dalam kondisi default,\n silahkan ubah terlebih dahulu pada scriptnya');
  return false;
}else if (window.location.href.match('halo.wifi.id/wifi/login/*'))
{
  document.getElementById('username_form').value = username;
  document.getElementById('password_form').value = password;
  setTimeout(function ()
  {
    document.getElementsByClassName('s-login-btn')[0].click();
  }, 100);
}else if (window.location.href.match('sh1.wifi.id/wifi/portal/spin/*'))
{
    setTimeout(function () {
        window.location="http://irfantanjung.blogspot.com/";
    }, 2000);
}