Greasy Fork Default Behavior

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

Version vom 30.03.2016. Aktuellste Version

// ==UserScript==
// @name        Greasy Fork Default Behavior
// @namespace   chriskim06
// @description Add/edit scripts with syntax highlighting enabled by default and hide share stuff
// @include     /https://greatest.deepsurf.us/en/scripts/\w+(-|/).*/
// @include     https://greatest.deepsurf.us/en/script_versions/new
// @version     1.2.4
// @grant       none
// @locale      en
// ==/UserScript==

(function() {

  var textarea = document.getElementById('script_version_code');
  if (textarea.length) {
    textarea.style.height = '560px';
  }

  var checkbox = document.getElementById('enable-source-editor-code');
  if (checkbox.length && !checkbox.checked) {
    checkbox.checked = true;
  }
  
  var share = document.getElementById('share');
  if (share.length) {
    share.style.display = 'none';
  }

})();