# Youtube Onebox revisited

**URL:** <https://meta.discourse.org/t/youtube-onebox-revisited/22764>\
**Category:** Feature\
**Created:** [Dezembro 2, 2014, 9:37pm UTC](https://meta.discourse.org/t/youtube-onebox-revisited/22764 "2014-12-02T21:37:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sperok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sperok/32/114977_2.png) [@sperok](https://meta.discourse.org/u/sperok)\
**Post date:** [Dezembro 3, 2014, 4:10am UTC](https://meta.discourse.org/t/youtube-onebox-revisited/22764/5 "2014-12-03T04:10:03Z")

</div>

OK, so never having written a line of Ruby in my life, would adding something like this at line 81 get the job done? Then I need to figure out how to make this a plugin? About time I learned how …

Documented Youtube [parameter definitions](https://developers.google.com/youtube/player_parameters#iv_load_policy) are all in the form key=[0..3]

```
p['rel'] = params['rel'] if params.include? 'rel'
p['autohide'] = params['autohide'] if params.include? 'autohide'
p['cc_load_policy'] = params['cc_load_policy' if params.include? 'cc_load_policy'
p['fs'] = params['fs'] if params.include? 'fs'
p['hl'] = params['hl'] if params.include? 'hl'
p['iv_load_policy'] = params['iv_load_policy'] if params.include? 'iv_load_policy'
p['modestbranding'] = params['modestbranding'] if params.include? 'modestbranding'
p['color'] = params['color'] if params.include? 'color'
p['theme'] = params['theme'] if params.include? 'theme'

```

---

_[View the full topic](https://meta.discourse.org/t/youtube-onebox-revisited/22764)._
