Markdown editor

Add toolbar to reply area

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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.

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

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