# Disable “Your topic is similar to…” overlay for some categories

**URL:** <https://meta.discourse.org/t/disable-your-topic-is-similar-to-overlay-for-some-categories/157526>\
**Category:** Feature\
**Created:** [12 juli 2020 om 21:10 UTC](https://meta.discourse.org/t/disable-your-topic-is-similar-to-overlay-for-some-categories/157526 "2020-07-12T21:10:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [13 juli 2020 om 05:24 UTC](https://meta.discourse.org/t/disable-your-topic-is-similar-to-overlay-for-some-categories/157526/3 "2020-07-13T05:24:10Z")

</div>

Hi @felixmariotto

In the meantime, I tried this simple jQuery for you but it only works when the page is reloaded, unfortunately (not much help, FYI only I’m afraid). There is a Discourse API call to execute code when the page changes, but it only seems to work for me when I reload the page manually, not when I navigate to the page, so I could not get any better results than “hide on page reload” using the following very simple jQuery selector:

In this example, the snippet hides the stuff you want to hide if the category contains the word “Applications”, FYI only:

```plaintext
<script>
$( document ).ready(function() {
      var cat = $('.category-name').html();
      if(cat.includes('Applications')){
          $('#suggested-topics').hide();
      }
});
</script>

```

If I understood Ember lifecycle hooks better, we might be able to add this kind of simple code to the appropriate lifecycle hook; but truthfully and unfortunately, my Ember skills are really lacking, almost non-existant to be honest.

---

_[View the full topic](https://meta.discourse.org/t/disable-your-topic-is-similar-to-overlay-for-some-categories/157526)._
