# Script in /head broke site

**URL:** <https://meta.discourse.org/t/script-in-head-broke-site/36161>\
**Category:** Product Support\
**Created:** [30. November 2015 um 17:03 UTC](https://meta.discourse.org/t/script-in-head-broke-site/36161 "2015-11-30T17:03:36Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [30. November 2015 um 18:24 UTC](https://meta.discourse.org/t/script-in-head-broke-site/36161/8 "2015-11-30T18:24:30Z")

</div>

For future reference for anybody in the crazy situation where they are an admin but don’t have access to the Discourse instance’s shell…

…but are an admin and still authenticated - you can use the API:

API Key can be found here (`THE_API_KEY_OBTAINED_BEFORE_GOES_HERE`):  
[http://www.example.com/admin/api.json](http://www.example.com/admin/api.json)

List of customisations to find ID here (`THE_CUSTOMIZATION_ID_HERE`):  
[http://www.example.com/admin/customize/css\_html.json](http://www.example.com/admin/customize/css_html.json)

Then replacing the domain, customisation ID and API key:

```bash
curl -vs 'http://www.example.com/admin/site_customizations/THE_CUSTOMIZATION_ID_HERE?api_key=THE_API_KEY_OBTAINED_BEFORE_GOES_HERE&api_username=system' -X PUT -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data $'site_customization%5Benabled%5D=false' 2>&1

```

---

_[View the full topic](https://meta.discourse.org/t/script-in-head-broke-site/36161)._
