Greasy Fork镜像 Default Behavior

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

Fra 16.06.2018. Se den seneste versjonen.

// ==UserScript==
// @name        Greasy Fork镜像 Default Behavior
// @namespace   https://github.com/chriskim06/userscripts
// @description Add/edit scripts with syntax highlighting enabled by default and hide share stuff
// @match       /https://greasyfork.dpdns.org/en/scripts/\w+(-|/).*/
// @match       https://greasyfork.dpdns.org/en/script_versions/new
// @version     1.2.6
// ==/UserScript==

(function() {

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

  var checkbox = document.getElementById('enable-source-editor-code');
  if (checkbox !== null && !checkbox.checked) {
    checkbox.checked = true;
  }

  var share = document.getElementById('share');
  if (share !== null) {
    share.style.display = 'none';
  }

})();

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联