Markdown editor

Add toolbar to reply area

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         Markdown editor
// @namespace    http://tampermonkey.net/
// @license      MIT
// @version      0.2
// @description  Add toolbar to reply area
// @author       Milan
// @match        https://lue.websight.blue/thread/*
// @icon         https://lore.delivery/static/blueshi.png
// @grant        GM_addStyle
// @grant        GM_getResourceText
// @resource     css https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css
// @require      https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js
// ==/UserScript==

(function() {
    'use strict';
    GM_addStyle(GM_getResourceText("css"));
    const mde = new SimpleMDE({ element: document.getElementById("reply-content") });
})();