Add/edit scripts with syntax highlighting enabled by default
目前為
// ==UserScript==
// @name Greasy Fork Syntax Highlighting
// @namespace chriskim06
// @description Add/edit scripts with syntax highlighting enabled by default
// @include https://greasyfork.org/en/scripts/*/versions/new
// @include https://greasyfork.org/en/script_versions/new
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @version 1.1
// @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();
}
$('#ace-editor').css('height', '400px');
$('#ace-editor > .ace_gutter > .ace_layer').css('height', '430px');
$('#ace-editor > .ace_scroller > .ace_content').css('height', '430px');
});