AO3 Formatting Shortcuts

Keyboard shortcuts for HTML tags

Author
Grumblesaur
Daily installs
0
Total installs
40
Ratings
1 0 0
Version
1.4.2
Created
2022-10-24
Updated
2024-01-30
Size
3.77 KB
License
MIT
Applies to

Introduces the following shortcuts to Archive of Our Own text inputs, including comment boxes and new work text fields. When key combination is pressed, html is inserted, with the cursor placed between the tags. Highlighted text in input fields will be surrounded by the tag corresponding to your keystroke.

  • Ctrl b<b></b> – bold
  • Ctrl d<details></details> – a hideable element
  • Ctrl e<em></em> – semantic emphatic italics
  • Ctrl i<i></i> – italics
  • Ctrl k<cite></cite> – semantic title italics
  • Ctrl l<li></li> – list item
  • Ctrl m<mark></mark> – highlighting
  • Ctrl p – <p></p> – paragraph
  • Ctrl o<ol></ol> – ordered list
  • Ctrl q<q></q> – inline quotation
  • Ctrl s<s></s> – struck-through text
  • Ctrl u<u></u> – underlined text

  • Ctrl Shift b<blockquote></blockquote> – block quotation
  • Ctrl Shift c<code></code> – monospace/code
  • Ctrl Shift i<img src="" alt="(image description here)" /> – image
  • Ctrl Shift m<summary></summary> – heading for a <details> element
  • Ctrl Shift n<br/> – forced line break
  • Ctrl shift s<strong></strong> – semantic emphatic bold
  • Ctrl Shift u<ul></ul> – unordered list

On matching sites, this script will prevent the above shortcuts from activating their normal browser functionality.

This script is compatible with AO3 Floating Comment Box.