# Need help for using JS in plugins

**URL:** <https://forums.plex.tv/t/need-help-for-using-js-in-plugins/7923>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [February 20, 2011, 11:54am UTC](https://forums.plex.tv/t/need-help-for-using-js-in-plugins/7923 "2011-02-20T11:54:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alextitoff](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alextitoff/32/1813_2.png) [@alextitoff](https://forums.plex.tv/u/alextitoff)\
**Post date:** [February 20, 2011, 11:54am UTC](https://forums.plex.tv/t/need-help-for-using-js-in-plugins/7923/1 "2011-02-20T11:54:22Z")

</div>

Russian community had asked me to make a plugin for [prostopleer.com](http://prostopleer.com) (a large database of songs[not only russian]). They use wired method of converting the file\_id (which i managed to get in plugin) to its download link. Digging their code I found that function that is stored in JavaScript (function is 352 lines of JS code!), so the link is generated on client side.   
  
  
  
Is the any way to embed this function in plugin?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 9:00pm UTC](https://forums.plex.tv/t/need-help-for-using-js-in-plugins/7923/2 "2019-12-20T21:00:27Z")

</div>

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