# Plugin to convert specific Links into Single Embeds

**URL:** https://meta.discourse.org/t/plugin-to-convert-specific-links-into-single-embeds/323667
**Category:** Marketplace
**Created:** [August 27, 2024, 10:41pm UTC](https://meta.discourse.org/t/plugin-to-convert-specific-links-into-single-embeds/323667 "2024-08-27T22:41:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lcestou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lcestou/32/148373_2.png) [@lcestou](https://meta.discourse.org/u/lcestou)
#### Post date: [August 27, 2024, 10:41pm UTC](https://meta.discourse.org/t/plugin-to-convert-specific-links-into-single-embeds/323667/1 "2024-08-27T22:41:21Z")

</div>

Hello,

I would like to be able to grab specific links similar to Onebox and convert them into pushing single line “script” embeds with the existing URL variable.

Example, a user places a link in the topic or reply for:  
`https://website.com/RaNdOmString`

Then the plugin (assuming it will be a plugin), will convert that link into a single script line like the one below:  
`<script src="https://website.com/RaNdOmString/embed.js?style=dark"></script>`

With the goal of rendering that embedded JS in that single post, kind of like Onebox I mentioned previously.

I tinkered a bit before and have been able to create some other plugins myself, but this one might be out of my scope.

Thanks!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 27, 2024, 10:55pm UTC](https://meta.discourse.org/t/plugin-to-convert-specific-links-into-single-embeds/323667/2 "2024-08-27T22:55:59Z")

</div>

I can help with that. Sending a pm.

---

<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: [September 26, 2024, 10:56pm UTC](https://meta.discourse.org/t/plugin-to-convert-specific-links-into-single-embeds/323667/3 "2024-09-26T22:56:20Z")

</div>

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