# 如何移除右上角的毫秒指示器（mini-profiler）？

**URL:** https://meta.discourse.org/t/how-can-i-remove-the-milliseconds-indicator-mini-profiler-at-the-top-right/279976
**Category:** Support
**Created:** [2023 年9 月 25 日 10:28 UTC](https://meta.discourse.org/t/how-can-i-remove-the-milliseconds-indicator-mini-profiler-at-the-top-right/279976 "2023-09-25T10:28:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![360Creators](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/360creators/32/325735_2.png) [@360Creators](https://meta.discourse.org/u/360Creators)
#### Post date: [2023 年9 月 25 日 10:28 UTC](https://meta.discourse.org/t/how-can-i-remove-the-milliseconds-indicator-mini-profiler-at-the-top-right/279976/1 "2023-09-25T10:28:27Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/c/2/2/c22a2b69f8858fe723ef8d3ba98b3328e4b65c31.png)  
我知道它们只对管理员显示，但我不喜欢，我觉得没意义。  
我知道有一个快捷键可以隐藏它（option + P），但下次打开 Discourse 时它又会显示出来。如何才能永久隐藏/删除它？

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [2023 年9 月 25 日 10:47 UTC](https://meta.discourse.org/t/how-can-i-remove-the-milliseconds-indicator-mini-profiler-at-the-top-right/279976/2 "2023-09-25T10:47:52Z")

</div>

您可以通过向主题或主题组件添加一些 CSS 来隐藏它

```plaintext
.profiler-results {
    display: none
}

```

> [@Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966):
>
> This is a crash course in Discourse theme basics. The target audience is everyone who is not familiar with Discourse themes. If you’ve already used Discourse theme / theme components, this guide is probably not something you need to read. What are themes and theme components? A theme or theme component is a set of files packaged together designed to either modify Discourse visually or to add new features. Let’s start with themes. Themes In general, themes are not supposed to be compatible …

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2023 年9 月 25 日 13:29 UTC](https://meta.discourse.org/t/how-can-i-remove-the-milliseconds-indicator-mini-profiler-at-the-top-right/279976/3 "2023-09-25T13:29:37Z")

</div>

那是 mini-profiler。它仅对应用程序中电子邮件与 app.yml 中的开发者电子邮件匹配的用户显示。

您可以通过按 Alt + P 来隐藏它。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023 年10 月 25 日 13:29 UTC](https://meta.discourse.org/t/how-can-i-remove-the-milliseconds-indicator-mini-profiler-at-the-top-right/279976/4 "2023-10-25T13:29:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
