FANDOM


关于有關快速刪除頁面的腳本,请参见AjaxDelete
Ajax刪除評論(AjaxCommentDelete)是一個腳本,能讓您在不離開當前頁面的情況下直接刪除評論,每個評論會新增「Ajax Delete」按鈕。點擊後,會打開彈出式互動視窗,系統會要求輸入刪除原因。

安装方法

配置

您也可以經由配置,達到不用輸入原因即可直接刪除評論的效果。相關配置如下,請添加以下代碼至您的個人化 common.jsglobal.js

window.AjaxCommentDeleteConfig = {
    fastDelete: "The reason for deletion of the comment. You can modify this text!"
};

上述代碼僅作為配置示例使用,供有特殊需求者使用,如果沒有這方面的需求可不必添加,不影響腳本運作。

Changelog

v1.0
Initial revision
v1.1
Added fastDelete configuration option.
v1.2
Better internationalization system
General reformatting
v1.3
Not using Wikia's code bindings anymore.
Changed i18n system to use I18n-js library instead of the non-standardized system.
Moved to Dev Wiki.
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+