Greasy Fork镜像 Default Behavior

Add/edit scripts with syntax highlighting enabled by default and hide share stuff

// ==UserScript==
// @name        Greasy Fork镜像 Default Behavior
// @namespace   https://github.com/chriskim06/userscripts
// @description Add/edit scripts with syntax highlighting enabled by default and hide share stuff
// @match       /https://gf.qytechs.cn/en/scripts/\w+(-|/).*/
// @match       https://gf.qytechs.cn/en/script_versions/new
// @version     1.2.6
// ==/UserScript==

(function() {

  var textarea = document.getElementById('script_version_code');
  if (textarea !== null) {
    textarea.style.height = '560px';
  }

  var checkbox = document.getElementById('enable-source-editor-code');
  if (checkbox !== null && !checkbox.checked) {
    checkbox.checked = true;
  }

  var share = document.getElementById('share');
  if (share !== null) {
    share.style.display = 'none';
  }

})();

QingJ © 2025

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