Greasy Fork - Auto Enable Syntax-Highlighting Source Editor

Auto enables greasy fork's syntax-highlighting source editor

  1. // ==UserScript==
  2. // @name Greasy Fork - Auto Enable Syntax-Highlighting Source Editor
  3. // @namespace https://greasyfork.org/users/649
  4. // @version 1.1.5
  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.jsdelivr.net/gh/fuzetsu/userscripts@ec863aa92cea78a20431f92e80ac0e93262136df/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. })();