MyrddinE / SchoolDocs Icon Fix

// ==UserScript==
// @name         SchoolDocs Icon Fix
// @namespace    http://www.herzing.edu/
// @version      0.2
// @description  Correct missing buttons in SchoolDocs.
// @author       Myrddin Emrys
// @copyright    2023, Myrddin Emrys (https://openuserjs.org/users/MyrddinE)
// @match        http://herz-sdocs-04:9479/*
// @grant        none
// @run-at       document-start
// @license      MIT
// @updateURL    https://openuserjs.org/meta/MyrddinE/SchoolDocs_Icon_Fix.meta.js
// @downloadURL  https://openuserjs.org/install/MyrddinE/SchoolDocs_Icon_Fix.user.js
// ==/UserScript==
// 0.1 @ 265

(function() {
    'use strict';

    var styleHTML = `
  .fa,
  .fab,
  .fad,
  .fal,
  .far,
  .fas {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1
  }

  .fa-2x {
    font-size: 2em
  }

  .fa-barcode:before {
    content: "\\f02a"
  }

  .fa-clipboard:before {
    content: "\\f328"
  }

  .fa-edit:before {
    content: "\\f044"
  }

  .fa-file-code:before {
    content: "\\f1c9"
  }

  .fa-file-upload:before {
    content: "\\f574"
  }

  .fa-flag:before {
    content: "\\f024"
  }

  .fa-play-circle:before {
    content: "\\f144"
  }

  .fa-sync:before {
    content: "\\f021"
  }

  @font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-regular-400.eot);
    src: url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-regular-400.eot?#iefix) format("embedded-opentype"), url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-regular-400.woff2) format("woff2"), url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-regular-400.woff) format("woff"), url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-regular-400.ttf) format("truetype"), url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-regular-400.svg#fontawesome) format("svg")
  }

  @font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-solid-900.eot);
    src: url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-solid-900.eot?#iefix) format("embedded-opentype"), url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-solid-900.woff2) format("woff2"), url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-solid-900.woff) format("woff"), url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-solid-900.ttf) format("truetype"), url(https://ka-f.fontawesome.com/releases/v5.15.4/webfonts/free-fa-solid-900.svg#fontawesome) format("svg")
  }

  .fa,
  .far,
  .fas {
    font-family: "Font Awesome 5 Free"
  }

  .fa,
  .fas {
    font-weight: 900
  }`

    var styleElement = document.createElement('style');
    styleElement.innerHTML = styleHTML;
    document.head.appendChild(styleElement);
})();