Skip to content

Instantly share code, notes, and snippets.

@makyen
Created March 11, 2018 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makyen/0e3d58992a9bc5e0a54145509cdf9a3f to your computer and use it in GitHub Desktop.
Save makyen/0e3d58992a9bc5e0a54145509cdf9a3f to your computer and use it in GitHub Desktop.
Userscript to limit the height of post-body pre blocks on metasmoke
// ==UserScript==
// @name Limit pre on metasmoke
// @namespace MakyenmetasmokeAdjustments
// @description Limit the height of post-body pre blocks on metasmoke
// @match https://metasmoke.erwaysoftware.com/*
// @version 1.0.0
// @grant none
// ==/UserScript==
(function() {
'use strict';
$(document.head).append(`
<style>
pre.post-body-pre-block {
overflow: auto;
max-height: 450px;
}
</style>
`);
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment