Danbooru

[Userscript] DtextStyle

Posted under General

DtextStyle adds user interface controls to the top of the textbox. Clicking them will add in various DText markup, e.g. [b], [i], [u], etc. They function in much the same fashion as the markup controls on GitHub.

Installation

Project page
Main script

https://raw.githubusercontent.com/BrokenEagle/JavaScripts/stable/dtextstyle.user.js

Final

There were several DText items that were left out, partly because I ran out of icons to use, and partly because some operate a little differently, such as the DText lists and headers.

If you have any suggestions for icons, or want to see something else added, please feel free to respond.

Version info

Updated

This is what I'm waiting for. Back then I always wondering why Danbooru wasn't implementing features like RES (Reddit Enhancement Suite) to make DText more "expressive" and less time-consuming due to we have to manually open DText help page to see Bold/Italic/Underline codes etc. Finally, those days now ended.

The biggest enhancement with the latest update is support for DText tables.

It was always a bit of a chore to construct a DText table without the assistance of a script. With the above function, you only need to copy/paste CSV text into the window, select it all, and then click the table button.

Example of CSV text:

a,b,c
1,2,3
4,5,6
  • 1