Greasy Fork Syntax Highlighting

Add/edit scripts with syntax highlighting enabled by default

Mint 2015.12.19.. Lásd a legutóbbi verzió

// ==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.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();
  }
});