Google Apps Script Editor Styler

Style the Google Apps Script Editor

当前为 2017-02-23 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Google Apps Script Editor Styler
  3. // @description Style the Google Apps Script Editor
  4. // @namespace https://github.io/oshliaer
  5. // @domain script.google.com
  6. // @include https://script.google.com/d/*
  7. // @include https://script.google.com/macros/d/*
  8. // @author +AlexanderIvanov
  9. // @developer +AlexanderIvanov
  10. // @version 2017.2.23
  11. // @grant GM_addStyle
  12. // @icon https://ssl.gstatic.com/images/icons/product/script_chrome_only-256.png
  13. // @screenshot https://gist.githubusercontent.com/oshliaer/518246959a67699ff8fb414ad6c7aa3d/raw/3937d8308f2a7d7bd815c68cf2b4414e772c7e02/googleappsscripteditorstyler.screenshot.png
  14. // @license WTFPL; http://www.wtfpl.net/txt/copying
  15. // ==/UserScript==
  16.  
  17. var link = document.createElement('link');
  18. link.rel = 'stylesheet';
  19. link.href = 'https://fonts.googleapis.com/css?family=Ubuntu+Mono';
  20. document.head.appendChild(link);
  21.  
  22. var style = '' +
  23.  
  24. //Autocomplete padding items
  25. '*,html{font-family: Ubuntu Mono !important;}' +
  26.  
  27. //Autocomplete padding items
  28. '.gwt-Label.item{padding-top:2px !important; padding-bottom:2px !important;}' +
  29.  
  30. //Autocomplete padding invert active
  31. '.gwt-Label.item.selected{background-color:black !important;color:white !important;}';
  32.  
  33. GM_addStyle(style);