# Automatic dark mode for embedded comments as well?

**URL:** <https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347>\
**Category:** Feature\
**Tags:** embedding\
**Created:** [September 13, 2020, 5:28am UTC](https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347 "2020-09-13T05:28:01Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Stéfan\_van\_der\_Walt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/st%C3%A9fan_van_der_walt/32/236024_2.png) [@Stéfan\_van\_der\_Walt](https://meta.discourse.org/u/St%C3%A9fan_van_der_Walt)\
**Post date:** [November 6, 2024, 8:52pm UTC](https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347/21 "2024-11-06T20:52:37Z")

</div>

Thanks for catching that! I can’t edit the above post any more, but the `window.addEventListener` goes at the bottom of the code snippet under (2).

See [this real-world example](https://github.com/scientific-python/blog.scientific-python.org/blob/407d3bb97910e62ca0912433de36f27d805523e4/layouts/partials/posts/comments.html#L59).

---

_[View the full topic](https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347)._
