# Come disabilitare il nuovo "Aggiunto da..." che viene aggiunto nella funzione Avvisi Staff?

**URL:** https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043
**Category:** Support
**Created:** [19 Febbraio 2025, 7:15am UTC](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043 "2025-02-19T07:15:17Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [24 Febbraio 2025, 5:42pm UTC](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043/2 "2025-02-24T17:42:27Z")

</div>

Non esiste una soluzione tramite impostazioni. Puoi ottenerla con un po’ di JavaScript, tuttavia:

Nel tuo tema o in un nuovo componente del tema, aggiungi quanto segue nella scheda JS:

 ![The image shows a mobile-optimized website development interface with an arrow pointing to the "JS" tab that is selected, indicating JavaScript editing options. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/c/d/5cd36f214fed3cf38dffd36ef40611b976e05a11.png)

```js
import { apiInitializer } from "discourse/lib/api";
import { schedule } from "@ember/runloop";

export default apiInitializer((api) => {
  const current = api.getCurrentUser();
  if (!current || !current.staff) {
    return;
  }

  // Rimuove tutto ciò che segue il primo paragrafo
  // contenente l'avviso dello staff.
  api.decorateCookedElement((element, helper) => {
    const post = helper?.getModel();
    if (!post || !post.notice) {
      return;
    }

    schedule("afterRender", () => {
      const postNoticeMessage = document.querySelector(
        `article[data-post-id="${post.id}"] .post-notice-message`
      );

      if (postNoticeMessage) {
        postNoticeMessage.replaceWith(postNoticeMessage.firstChild);
      }
    });
  });
});

```

Dovrebbe essere abbastanza buono.

---

_[View the full topic](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043)._
