# Insert script in a post

**URL:** https://meta.discourse.org/t/insert-script-in-a-post/308716
**Category:** Development
**Created:** [May 20, 2024, 4:58pm UTC](https://meta.discourse.org/t/insert-script-in-a-post/308716 "2024-05-20T16:58:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Master](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/master/32/383814_2.png) [@Master](https://meta.discourse.org/u/Master)
#### Post date: [May 20, 2024, 4:58pm UTC](https://meta.discourse.org/t/insert-script-in-a-post/308716/1 "2024-05-20T16:58:30Z")

</div>

Hello, I have a cryptocurrency community, and I want to insert a script in several topics reporting the price.

For example, a topic is about bitcoin, and where I indicate what the price is, I would like to place this code, so that the price is automatically updated

```plaintext
<script type="text/javascript" src="https://files.coinmarketcap.com/static/widget/currency.js"></script><div class="coinmarketcap-currency-widget" data-currencyid="1" data-base="USD" data-secondary="" data-ticker="true" data-rank="true" data-marketcap="true" data-volume="true" data-statsticker="true" data-stats="USD"></div>

```

but I see that due to security policies, it is not enabled, unless I need to add something else first, since it is not shown. It should come out something like this

 ![Captura de pantalla 2024-05-20 125711](https://global.discourse-cdn.com/meta/original/4X/0/7/4/0744ada662312d3f394c84d4119d79183e6b7a07.png)

how can I do? thank you

---

<div class="post-metadata">

### Author: ![piffy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/piffy/32/254198_2.png) [@piffy](https://meta.discourse.org/u/piffy)
#### Post date: [May 20, 2024, 5:26pm UTC](https://meta.discourse.org/t/insert-script-in-a-post/308716/2 "2024-05-20T17:26:10Z")

</div>

You will have to create a theme component for it because it’s probably not a great idea to allow arbitrary execution of Javascript in user’s posts

---

<div class="post-metadata">

### Author: ![Master](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/master/32/383814_2.png) [@Master](https://meta.discourse.org/u/Master)
#### Post date: [May 20, 2024, 5:28pm UTC](https://meta.discourse.org/t/insert-script-in-a-post/308716/3 "2024-05-20T17:28:52Z")

</div>

I could also enable, but only for administrators (i only)
