# \[JS\] UserScript - Collapse categories in forum index

**URL:** <https://forums.eveonline.com/t/js-userscript-collapse-categories-in-forum-index/7003>\
**Category:** Third Party Developers\
**Tags:** forum-improvement\
**Created:** [June 26, 2017, 8:31am UTC](https://forums.eveonline.com/t/js-userscript-collapse-categories-in-forum-index/7003 "2017-06-26T08:31:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Althalus\_Stenory](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/althalus_stenory/32/429792_2.png) [@Althalus\_Stenory](https://forums.eveonline.com/u/Althalus_Stenory)\
**Post date:** [June 26, 2017, 8:31am UTC](https://forums.eveonline.com/t/js-userscript-collapse-categories-in-forum-index/7003/1 "2017-06-26T08:31:55Z")

</div>

Hello,

### Features

- Auto collapse categories if set in conf
- Add carret and darken titles
- _[Not a feature]_ Doesn’t keep the state of what you collapse or not. (always collapse as per configs)

### How to use it

This script require greasemonkey or tampermonkey to run (you can also run it manually to check what it does).

You can find the script [here](https://raw.githubusercontent.com/Kyria/tampermonkey-scripts/master/meta.eveonline.com.js)

By default, it will show everything. If you want to have some categories auto-collapsed, change the config `categoriesToHide` and set `true` to everything you want to hide.

### Preview

[[Album] Imgur: The magic of the Internet ![](https://i.imgur.com/jgaGqv1.jpg?fb "Imgur: The magic of the Internet") ](https://imgur.com/a/6EE4F)

---

<div class="post-metadata">

**Author:** ![DeMichael\_Crimson](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/demichael_crimson/32/517479_2.png) [@DeMichael\_Crimson](https://forums.eveonline.com/u/DeMichael_Crimson)\
**Post date:** [August 11, 2017, 2:14pm UTC](https://forums.eveonline.com/t/js-userscript-collapse-categories-in-forum-index/7003/2 "2017-08-11T14:14:32Z")

</div>

Excellent, I set all Categories to hide and now the main Forum Board page looks and acts like it should.

I also changed the address location in this script on line 7 from Meta to Forums.

Thanks, you’re a wizard at configuring these scripts. I now have 5 userscripts active for these forums:

EVE Online Forums Character association  
Eve Forums Color Edit  
Eve Forums Portal Menu  
Eve Avatar/Sub-Category Adjustment (120x120) _I actually changed it to 140x140_  
EVE Online Forum Layout

🙂

---

<div class="post-metadata">

**Author:** ![DeMichael\_Crimson](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/demichael_crimson/32/517479_2.png) [@DeMichael\_Crimson](https://forums.eveonline.com/u/DeMichael_Crimson)\
**Post date:** [August 11, 2017, 5:29pm UTC](https://forums.eveonline.com/t/js-userscript-collapse-categories-in-forum-index/7003/3 "2017-08-11T17:29:20Z")

</div>

I was having an issue that whenever I clicked the Eve or ‘E’ icon in the forum header to go back to the main Forum Category page, the ‘Communications Center’ category wouldn’t be collapsed like all the other forum categories.

In the script I changed the category on line 18 from ‘general’ to ‘communications’ and now whenever the Forum Category page loads, all categories are collapsed, which is exactly what I wanted.

Thanks again.

---

<div class="post-metadata">

**Author:** ![DeMichael\_Crimson](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/demichael_crimson/32/517479_2.png) [@DeMichael\_Crimson](https://forums.eveonline.com/u/DeMichael_Crimson)\
**Post date:** [May 21, 2019, 6:50am UTC](https://forums.eveonline.com/t/js-userscript-collapse-categories-in-forum-index/7003/4 "2019-05-21T06:50:01Z")

</div>

> [@Althalus\_Stenory](#):
>
> You can find the script [here](https://raw.githubusercontent.com/Kyria/tampermonkey-scripts/master/meta.eveonline.com.js)

Link brings up this page:

> 404: Not Found
