Greasy Fork - Auto Enable Syntax-Highlighting Source Editor

Auto enables greasy fork's syntax-highlighting source editor

目前为 2018-03-06 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Greasy Fork - Auto Enable Syntax-Highlighting Source Editor
  3. // @namespace https://greasyfork.org/users/649
  4. // @version 1.1.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://cdn.rawgit.com/fuzetsu/userscripts/477063e939b9658b64d2f91878da20a7f831d98b/wait-for-elements/wait-for-elements.js
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (() => {
  14. 'use strict';
  15.  
  16. waitForElems({
  17. sel: '#enable-source-editor-code',
  18. stop: true,
  19. onmatch(checkbox) {
  20. checkbox.click();
  21. }
  22. });
  23. })();