# Custom Onebox engine

**URL:** <https://meta.discourse.org/t/custom-onebox-engine/54588>\
**Category:** Development\
**Created:** [December 21, 2016, 6:04am UTC](https://meta.discourse.org/t/custom-onebox-engine/54588 "2016-12-21T06:04:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [December 21, 2016, 10:07am UTC](https://meta.discourse.org/t/custom-onebox-engine/54588/4 "2016-12-21T10:07:54Z")

</div>

You might want to take a look at this plugin:

> <https://github.com/fefrei/discourse-pseuco-onebox/blob/master/plugin.rb>

I did that to enable oneboxing of one of my own sites. It simply replaces the onebox with an `iframe` with a specific URL, where my website delivers a special embed-friendly view of the target site.

I pretty clueless when it comes to Ruby, so this may not be state of the art, but it might be enough to get you started 🙂

(Remember to also test what happens in notification mails containing the post.)

---

_[View the full topic](https://meta.discourse.org/t/custom-onebox-engine/54588)._
