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.

当前为 2024-04-28 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Quihi
评分
0 0 0
版本
1.0
创建于
2024-04-28
更新于
2024-04-28
大小
691 字节
许可证
MIT
适用于

This script will automatically set new works posted to Archive of Our Own to allow guest comments in addition to comments from registered users.

AO3 has not made this change to the site yet, but this script should have no effect at the moment and work when the default option does switch to only allowing comments from registered users. If not, I'll fix it as soon as I can.

It should work for both posting new works (the first bit of code) and importing works (the second bit of code). It works by selecting a different radio button when you open the page to post a new work, so if you select a different option manually, that one will be used instead.

To change which option is the default, if, say, you never want to allow any comments, change the name of the button in the script. (These can be found by viewing the source code.) For no comments, these are "work_comment_permissions_disable_all" and "comment_permissions_disable_all".

Similarly, you could extend the code to default to moderating comments—the ID for that is "work_moderated_commenting_enabled"—or marking a work as restricted to logged in users—"work_restricted". (Maybe I will add a UI for this at some point, but for now here are instructions.)