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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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) {}
*/