Greasy Fork镜像 Default Behavior

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

目前为 2015-12-28 提交的版本,查看 最新版本

// ==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.2
// @grant       none
// @locale      en
// ==/UserScript==

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

$(function() {
  var checkbox = $('#enable-source-editor-code');
  
  if (checkbox.length && !checkbox.is(':checked')) {
    checkbox.click();
  }
  
  if ($('#ace-editor > .ace_scroller > .ace_content').length) {
    $('#ace-editor > .ace_scroller > .ace_content').focus();
    console.log("hi");
  }
  
  if ($('div#share').length) {
    $('div#share').css('display', 'none');
  }
});

QingJ © 2025

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