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. Offers customization for other privacy settings.

Εγκατάσταση αυτού του κώδικαΒοήθεια
Κώδικας προτεινόμενος από τον δημιιουργό

Μπορεί, επίσης, να σας αρέσει ο κώδικας AO3: Set Default Posting Language.

Εγκατάσταση αυτού του κώδικα
// ==UserScript==
// @name          AO3: Set Default to Allow Guest Comments
// @author        Quihi
// @version       1.1
// @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. Offers customization for other privacy settings.
// @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) {}


// CUSTOMIZATION GUIDE
// To enable a section of code, remove the /* and */ at the beginning and end of the section.

// The first part of every section (including above) affects the page for posting new works
//     and the second affects the page for posting importing works.
//     You can remove the other section with no issue if you only want to change one page.


// TO DEFAULT TO NO COMMENTS PERMITTED:
/*
try {
  document.getElementById("work_comment_permissions_disable_all").checked = true;
}
catch (error) {}

try {
	document.getElementById("comment_permissions_disable_all").checked = true;
}
catch (error) {}
*/


// TO DEFAULT TO MARKING A WORK AS RESTRICTED ("Only show your work to registered users"):
/*
try {
  document.getElementById("work_restricted").checked = true;
}
catch (error) {}

try {
	document.getElementById("restricted").checked = true;
}
catch (error) {}
*/


// TO DEFAULT TO MODERATING COMMENTS ("Enable comment moderation"):
/*
try {
  document.getElementById("work_moderated_commenting_enabled").checked = true;
}
catch (error) {}

try {
	document.getElementById("moderated_commenting_enabled").checked = true;
}
catch (error) {}
*/