Greasy Fork - Auto Enable Syntax-Highlighting Source Editor

Auto enables greasy fork's syntax-highlighting source editor

目前為 2018-03-06 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Greasy Fork - Auto Enable Syntax-Highlighting Source Editor
// @namespace    https://greasyfork.org/users/649
// @version      1.1.1
// @description  Auto enables greasy fork's syntax-highlighting source editor
// @author       Adrien Pyke
// @match        *://greasyfork.org/*/script_versions/new*
// @match        *://greasyfork.org/*/scripts/*/versions/new*
// @require      https://cdn.rawgit.com/fuzetsu/userscripts/477063e939b9658b64d2f91878da20a7f831d98b/wait-for-elements/wait-for-elements.js
// @grant        none
// ==/UserScript==

(() => {
	'use strict';

	waitForElems({
		sel: '#enable-source-editor-code',
		stop: true,
		onmatch(checkbox) {
			checkbox.click();
		}
	});
})();