Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jesterjunk/e0e4b68281de4252e549d6e92d31a08a to your computer and use it in GitHub Desktop.

Select an option

Save jesterjunk/e0e4b68281de4252e549d6e92d31a08a to your computer and use it in GitHub Desktop.
Tampermonkey: High Visibility Inline Code Blocks For Pages At support.microsoft.com

Tampermonkey

High Visibility Inline Code Blocks For Pages At support.microsoft.com

Before After

tested with
Tampermonkey v4.16.1 Chrome
Tampermonkey v5.0.1 Firefox

// ==UserScript==
// @name         high visibility inline code blocks for pages at support.microsoft.com
// @namespace    https://gist.github.com/jesterjunk/e0e4b68281de4252e549d6e92d31a08a
// @homepage     https://gist.github.com/jesterjunk/
// @version      0
// @description  significantly increases the visibility of inline code blocks
// @author       a speck of dust on a tiny rock flying through a vast expanse of the universe
// @match        https://support.microsoft.com/en-us/topic/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=microsoft.com
// @grant        GM_addStyle
// @run-at       document-start
// ==/UserScript==

/*╭────────────────────────────────────────────╮
    Tested with Tampermonkey  v4.16.1  Chrome
                Tampermonkey  v5.0.1   Firefox
  ╰────────────────────────────────────────────╯*/

GM_addStyle ( `

.ocpCodeInline {
    display: inline-block;
    margin: 0 4px;
    padding: 0 6px !important;
    background: rgb(0, 103, 184);
    color: white !important;
    border-radius: 4px;
    font-family: 'Lucida Console', Monaco, monospace !important;
}

` );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment