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.

当前为 2024-05-03 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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) {}
*/