is.gd/v.gd auto pronouncable

auto selects 'lowercase pronouncable'

目前為 2023-06-04 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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();
    }
})();