FANDOM


CollapseMessage collapses long messages. Length defined by message height. Lighter (CSS-only) version of the script: CollapseMessageCSS.

Settings

Available via window.fng.ens. Use this line to create settings: $.extend(true, window.fng = (window.fng || {}), {ens: {}});

height
desired message height, in pixels; default: 70. Example: window.fng.ens.height = 100;
languages
additional languages; you may override existing ones. Example: window.fng.ens.languages = {en: {more: 'expand', less: 'collapse'}};
selector
message selector; default: '.msg-body, .article-comm-text'. Example: window.fng.ens.selector = '.msg-body';

Installation

Example

This is a message.
  1. line #1
  2. line #2
  3. line #3
  4. line #4
  5. line #5
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+