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 提交的版本,檢視 最新版本

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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.)