# Using the 'Discourse' javascript class in a hosted forum

**URL:** https://meta.discourse.org/t/using-the-discourse-javascript-class-in-a-hosted-forum/77704
**Category:** Support
**Created:** [1월 10, 2018, 10:00오후 UTC](https://meta.discourse.org/t/using-the-discourse-javascript-class-in-a-hosted-forum/77704 "2018-01-10T22:00:43Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [1월 10, 2018, 10:16오후 UTC](https://meta.discourse.org/t/using-the-discourse-javascript-class-in-a-hosted-forum/77704/2 "2018-01-10T22:16:20Z")

</div>

You can probably do what you want with the plugin-api. Take a look at this topic: [Using the JS API](https://meta.discourse.org/t/using-the-pluginapi-in-site-customizations/41281) and this file: [https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/plugin-api.js.es6](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/plugin-api.js.es6).

Depending on what you’re trying to do, the `modifyClass` or `onPageChange` functions could be useful.

---

_[View the full topic](https://meta.discourse.org/t/using-the-discourse-javascript-class-in-a-hosted-forum/77704)._
