Better OpenMathBooks Styles

A user script to enchance OpenMathBooks page styles

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Better OpenMathBooks Styles
// @namespace    https://greasyfork.org/en/users/1019658-aayush-dutt
// @version      0.2
// @description  A user script to enchance OpenMathBooks page styles
// @author       aayushdutt
// @match        https://discrete.openmathbooks.org/*
// @grant        none
// @link         https://greasyfork.org/en/scripts/466283-better-openmathbooks-styles
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const styles = `<style>
header#masthead {
    max-width: 100% !important;
}

div#content {
    margin: 24px auto !important;
    max-width: 900px !important;
}
p {
    line-height: 1.7 !important;
}
  </style>`

  document.head.insertAdjacentHTML("beforeend", styles)
})();