is.gd/v.gd auto pronouncable

auto selects 'lowercase pronouncable'

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         is.gd/v.gd auto pronouncable
// @namespace    https://github.com/Alistair1231/my-userscripts/
// @version      4.0
// @description  auto selects 'lowercase 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
// @copyright 2020, Alistair1231 (https://openuserjs.org/users/Alistair1231)
// ==/UserScript==

(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();
    }
})();