GreasyFork markdown

在论坛默认使用 Markdown 格式,添加格式帮助链接及 Markdown 工具栏

目前为 2021-03-14 提交的版本。查看 最新版本

作者
darkred
评分
0 0 0
版本
2.0.4
创建于
2021-03-08
更新于
2021-03-14
大小
12.6 KB
许可证
MIT
适用于

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.

Tested on Chrome/Firefox with Tampermonkey/Violentmonkey (Greasemonkey is not supported).

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.
  • Known issues:
    • currently the script only works for EN locale (see here),
    • 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.

Screenshots: (see attachments)

Hosted at GitHub

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址