Markdown toolbar for GreasyFork

人民的勤务员
2024-08-25T18:12:29Z

Select Markdown format by default, add help links, add toolbar formatting buttons for markdown

简体中文 | English | 한국어 | Tiếng Việt | 繁體中文
👆️access GitHub Readme file on for a better experience。

GitHubView the serviceman’s scriptGithub:@ChinaGodMan
GreasyForkView the serviceman’s script
View the serviceman’s script on the current page

⭐If the script helps you,Can light up the stars to encourage⭐

Recommended use：

💡 Tip: The script manager and browser listed above do not represent all
The script runs normally in the following environment

GreasyFork markdown

「 The default format used in the forum isMarkdown，Add format help link and publish new script,Reply time toolbar with quick editing enabled 」

Download:Github | ⭐Greasy Fork

Update records

🛠️ GreasyFork Markdown Toobar Update log

📅 2025.05.11.1

New: Add to autoJumpEdit，Used to view scriptsfeedbackYou can quickly jump to the editing area

📅 2025.03.21.1309

New: Ctrl+QQuick translation of selected text

📅 2024-10-02 - Ver: 2.0.5

New: Google Quick Translate Selected Text to Ingris
Translation to language can be set in scripts:var translate = "en".

📅 2024-08-04 - Ver: 2.0.4

Revise: GreasyFork markdown

DOMContentLoaded Sometimes it conflicts with other scripts，Causes listening failure。Changed to load

The script is a fork of this script by wOxxOm, to work with the new GF layout.
Thanks for his work making such an essential script.

Common formatting buttons (markdown only)

(forum) HTML & markdown formatting help links

CODE markdown button that wraps selected text in or`` if multiple lines are selected.

MARKDOWN format by default for new comments - also can be set in your profile settings.

The script works and is tested on Tampermonkey and Violentmonkey.
Greasemonkey -any version- is not supported (the script might work, but is not tested).

Notes:

If you have an issue with the script, please report it in the repo, always open for PRs.

Also, please keep in mind that I didn't write the script myself:
I put an effort to make this script, written by someone else, much more experienced than me, work in the new GF layout.
My aim is to restore the functionality. That's all.

The .markup_choice radio buttons are of the site, not of the script!

Known issues:

the method currently used to hide the toolbar when switching to the Preview tab is unfortunately flawed:
sometimes the toolbar might not be hidden, or isn't restored afterwards.
And it's hidden earlier than expected: it's hidden immediately, as you click Preview - not when the Preview tab itself gets the red focus.

Modification: GreasyFork markdown

2024-08-04T08:59:11 DOMContentLoaded sometimes conflicts with other scripts, causing the listener to fail. Changed to load.

Screenshots: (see attachments)

If you have any bugs, bug fixes or ideas, please report at my GitHub repo