AO3: Set Default to Allow Guest Comments

Defaults new works posted to Archive of Our Own to allow guest comments in addition to comments from registered users.

As of 2024-04-28. See the latest version.

// ==UserScript==
// @name          AO3: Set Default to Allow Guest Comments
// @author        Quihi
// @version       1.0
// @namespace     https://greasyfork.org/en/users/812553-quihi
// @description   Defaults new works posted to Archive of Our Own to allow guest comments in addition to comments from registered users.
// @license       MIT
// @match         https://archiveofourown.org/*works/new*
// @match     	  https://www.archiveofourown.org/*works/new*
// ==/UserScript==

try {
  document.getElementById("work_comment_permissions_enable_all").checked = true;
}
catch (error) {}

try {
	document.getElementById("comment_permissions_enable_all").checked = true;
}
catch (error) {}