Truncate extension descriptions

This is for #8216.

- [x] Code to toggle between original and truncated description
- [x] Visual review
- [ ] Code review
I didn't saw the use of `.attr()` in this file. I've been using `.data()` for data attributes. Maybe to make it work you need to also add the data attributes with `.data()`? Anyway it was a minor nit.