Markdown editor

Add toolbar to reply area

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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.

(I already have a user style manager, let me install it!)

// ==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") });
})();