Greasy Fork is available in English.

Akuvox ChanDao

try to take over the world!

// ==UserScript==
// @name         Akuvox ChanDao
// @namespace    http://www.akuvox.com/
// @version      0.2
// @description  try to take over the world!
// @author       phoenixylf
// @match        http://192.168.10.27:81/*
// @grant        none
// @license MIT
// ==/UserScript==


(function() {
    'use strict';

    // Your code here...

    function changeScmPathToTag(){
         var scmPath = document.getElementById("scmPath");
         var submit = document.getElementById("submit");
         if(scmPath !== null && submit !== null){
              scmPath.parentNode.previousSibling.previousSibling.innerHTML = '<span class="red">Tag</span>'
              scmPath.placeholder = "请输入GitLab上的Tag号,填写后提交按钮才可点击"
              if(scmPath.value == ""){
                  submit.disabled = true;
              }
              scmPath.addEventListener("change",function(){
                  if(scmPath.value != ""){
                      submit.disabled = false;
                  }else{
                      submit.disabled = true;
                  }
              });
             var redStar = document.createElement("div");
             //redStar.class = "required required-wrapper"
             redStar.setAttribute("class", "required required-wrapper");
             scmPath.parentNode.insertBefore(redStar,scmPath);
             //scmPath.parentNode.appendChild(redStar)
         }

    }

    changeScmPathToTag()

})();