只有弃用通知。另外(仅在 Opera 中,不在 Firefox 中,并且我已将 Content security policy script src 设置为 'unsafe-eval' 很长时间):
您网站的内容安全策略阻止在 JavaScript 中使用“eval”
内容安全策略 (CSP) 可防止将任意字符串评估为 JavaScript,以增加攻击者在您的网站上注入未经授权代码的难度。
要解决此问题,请避免使用
eval()、new Function()、setTimeout([string], ...)和setInterval([string], ...)来评估字符串。如果您绝对必须这样做:可以通过在
script-src指令中添加unsafe-eval作为允许的源来启用字符串评估。
谢谢。我也可以在这里发布,因为目前只有一个测试横幅处于活动状态:
[
{
"setting": "banners",
"value": [
{
"title": "测试横幅标题",
"message": "测试横幅文本测试横幅文本",
"date_after": "2025-11-01 12:00:00Z",
"date_before": "2025-12-01 12:00:00Z",
"dismissable": true,
"plugin_outlet": "top-notices",
"enabled_groups": [
1
]
}
]
},
{
"setting": "splide_options__above_site_header",
"value": "{ \"autoHeight\": true, \"height\": \"8rem\", \"arrows\": false, \"autoplay\": true, \"direction\": \"ttb\", \"focus\": \"center\", \"gap\": 0, \"type\": \"loop\" }"
},
{
"setting": "splide_options__below_site_header",
"value": "{ \"autoHeight\": true, \"height\": \"8rem\", \"arrows\": false, \"autoplay\": true, \"direction\": \"ttb\", \"focus\": \"center\", \"gap\": 0, \"type\": \"loop\" }"
},
{
"setting": "splide_options__top_notices",
"value": "{ \"autoHeight\": true, \"height\": \"8rem\", \"arrows\": false, \"autoplay\": true, \"direction\": \"ttb\", \"focus\": \"center\", \"gap\": 0, \"type\": \"loop\" }"
}
]
我还尝试过不设置开始和结束日期以及另外两个插件出口。我还尝试过使用 everyone 而不是 Administrators 来在未登录网站的情况下在 Firefox 中看到效果。并且我没有修改 splide 选项。