Greasy Fork - Auto Enable Syntax-Highlighting Source Editor

Auto enables greasy fork's syntax-highlighting source editor

目前为 2016-08-12 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Greasy Fork - Auto Enable Syntax-Highlighting Source Editor
  3. // @namespace https://greasyfork.org/users/649
  4. // @version 1.0.1
  5. // @description Auto enables greasy fork's syntax-highlighting source editor
  6. // @author Adrien Pyke
  7. // @match *://greasyfork.org/*/script_versions/new*
  8. // @match *://greasyfork.org/*/scripts/*/versions/new*
  9. // @require https://greasyfork.org/scripts/5679-wait-for-elements/code/Wait%20For%20Elements.js?version=122976
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. waitForElems('#enable-source-editor-code', function(checkbox) {
  17. checkbox.click();
  18. }, true);
  19. })();