AO3 Formatting Shortcuts

Keyboard shortcuts for HTML tags

2023/10/08のページです。最新版はこちら。

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
Grumblesaur
評価
0 0 0
バージョン
1.4
作成日
2022/10/24
更新日
2023/10/08
大きさ
3.46KB
ライセンス
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
    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.