Greasy Fork镜像 Default Behavior

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

目前为 2016-01-27 提交的版本,查看 最新版本

// ==UserScript==
// @name        Greasy Fork镜像 Default Behavior
// @namespace   chriskim06
// @description Add/edit scripts with syntax highlighting enabled by default and hide share stuff
// @include     /https://gf.qytechs.cn/en/scripts/\w+(-|/).*/
// @include     https://gf.qytechs.cn/en/script_versions/new
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @version     1.2.3
// @grant       none
// @locale      en
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);

$(function() {

  if ($('#script_version_code').length) {
    $('#script_version_code').css('height', '560px');
  }

  var checkbox = $('#enable-source-editor-code');
  if (checkbox.length && !checkbox.is(':checked')) {
    checkbox.click();
  }
  
  if ($('div#share').length) {
    $('div#share').css('display', 'none');
  }

});

QingJ © 2025

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