Greasy Fork Syntax Highlighting

Add/edit scripts with syntax highlighting enabled by default

Versão de: 19/12/2015. Veja: a última versão.

// ==UserScript==
// @name        Greasy Fork Syntax Highlighting
// @namespace   chriskim06
// @description Add/edit scripts with syntax highlighting enabled by default
// @include     https://greatest.deepsurf.us/en/scripts/*/versions/new
// @include     https://greatest.deepsurf.us/en/script_versions/new
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @version     1.0
// @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();
  }
});