Gazelle Required Fields

Make fields on upload page required so that the submit button does not work until filled in

  1. // ==UserScript==
  2. // @name Gazelle Required Fields
  3. // @namespace https://gf.qytechs.cn/en/users/90188
  4. // @version 2
  5. // @description Make fields on upload page required so that the submit button does not work until filled in
  6. // @author thegeek (but really SIGTERM86 on PTH)
  7. // @match https://*apollo.rip/upload.php
  8. // @match https://*passtheheadphones.me/upload.php
  9. // ==/UserScript==
  10.  
  11. var requiredIds = ["file", "artist", "title", "year", "releasetype", "format", "bitrate", "media", "tags"];
  12.  
  13. (function() {
  14. 'use strict';
  15. for (var i=0; i<requiredIds.length; i++) {
  16. document.getElementById(requiredIds[i]).required = true;
  17. }
  18. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址