Raw Source
ffactory / Intercom image height limit

// ==UserScript==
// @name         Intercom image height limit
// @namespace    https://ffactory.ml/
// @version      0.2
// @description  Limit height of intercom images to not take up the whole screen.
// @author       You
// @match        https://app.intercom.com/a/apps/*/inbox/inbox/all/conversations/*
// @icon         https://www.google.com/s2/favicons?domain=intercom.com
// @grant        none
// @copyright    2021, ffactory (https://openuserjs.org/users/ffactory)
// @license      MIT
// @updateURL    https://openuserjs.org/meta/ffactory/Image_height_limit.meta.js
// @downloadURL  https://openuserjs.org/install/ffactory/Image_height_limit.user.js
// ==/UserScript==

(function() {
    'use strict';

    let style = document.createElement("style");
    style.innerHTML = ".conversation__text img { max-height: 50vh; width: auto }"
    document.head.appendChild(style);
})();