AO3 Formatting Shortcuts

Keyboard shortcuts for HTML tags

От 08.10.2023. Виж последната версия.

Автор
Grumblesaur
Рейтинг
0 0 0
Версия
1.4
Създаден
24.10.2022
Обновен
08.10.2023
Размер
3 КБ
Лиценз
MIT
Работи на

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 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.