# Simple example for plugin to change files?

**URL:** <https://meta.discourse.org/t/simple-example-for-plugin-to-change-files/270206>\
**Category:** Development\
**Created:** [June 30, 2023, 9:40pm UTC](https://meta.discourse.org/t/simple-example-for-plugin-to-change-files/270206 "2023-06-30T21:40:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![satonotdead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satonotdead/32/447830_2.png) [@satonotdead](https://meta.discourse.org/u/satonotdead)\
**Post date:** [June 30, 2023, 10:53pm UTC](https://meta.discourse.org/t/simple-example-for-plugin-to-change-files/270206/3 "2023-06-30T22:53:51Z")

</div>

> [@RGJ](#):
>
> This is a technique known as “monkey patching”.

Well, we supposed to come from monkeys so after all that could be a good thing to do following your example 🙂

Thanks for your reply! I’m trying it out but what can I do if I want to change the whole embed.rb file?

> _I see that can only be used to replace an specific class but I want to replace the embed completely removing the buttons and showing a simple onebox._

I can work on the file but I don’t know how to put that file into Discourse without forking _(that seems to be gorilla patching)_.

---

_[View the full topic](https://meta.discourse.org/t/simple-example-for-plugin-to-change-files/270206)._
