Alistair1231 / is.gd auto pronouncable

// ==UserScript==
// @name         is.gd auto pronouncable
// @namespace    https://github.com/Alistair1231/
// @version      0.2
// @description  USE THE NEW VERSION https://openuserjs.org/scripts/Alistair1231/is.gdv.gd_auto_pronouncable
// @author       Alistair1231
// @match        https://is.gd/
// @match        https://is.gd/create.php
// @match        https://is.gd/index.php
// @match        https://v.gd/
// @match        https://v.gd/create.php
// @match        https://v.gd/index.php
// @license      MIT
// ==/UserScript==

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// PLEASE USE THE NEW VERSION OF THIS SCRIPT https://openuserjs.org/scripts/Alistair1231/is.gdv.gd_auto_pronouncable
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


(function() {
    'use strict';
    // click more options (technically not necessary)
    document.getElementById("shorturllabel").children[0].click();
    // select lower-case pronouncable
    document.getElementById("options").children[4].checked=true;

    var page = window.location.pathname.split('/')[1];
    // if on create.php highlight shorted url
    if(page === "create.php"){
        document.getElementById("short_url").select();
    }
    // If on main page highlight long url input
    else if(page == "index.php" || page === ""){
        document.getElementById("urlboxcontainer").children[0].select();
    }
})();