GMTRF:Gazelle框架音樂PT上傳必填項提示

在上傳頁面上設置必填項,在填寫完成必填項目之前無法點擊上傳按鈕.

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Gazelle Music Tracker Required Fields
// @name:zh      GMTRF:Gazelle框架音乐PT上传必填项提示
// @name:zh-CN   GMTRF:Gazelle框架音乐PT上传必填项提示
// @name:zh-TW   GMTRF:Gazelle框架音樂PT上傳必填項提示
// @namespace    https://greasyfork.org/en/users/224380-pepper-jack
// @version      4
// @description  Make fields on upload page required so that the submit button does not work until filled in
// @description:zh      在上传页面上设置必填项,在填写完成必填项目之前无法点击上传按钮.
// @description:zh-CN   在上传页面上设置必填项,在填写完成必填项目之前无法点击上传按钮.
// @description:zh-TW   在上傳頁面上設置必填項,在填寫完成必填項目之前無法點擊上傳按鈕.
// @author       SIGTERM86 | ported to OPS by KAPPLEJACLS
// @include      http*://redacted.ch/upload.php*
// @include      http*://orpheus.network/upload.php*
// @include      http*://dicmusic.club/upload.php*
// ==/UserScript==

var requiredIds = ["file", "artist", "title", "year", "releasetype", "format", "bitrate", "media", "tags"];

(function() {
    'use strict';
    for (var i=0; i<requiredIds.length; i++) {
        document.getElementById(requiredIds[i]).required = true;
    }
})();