The Selection API allows me to get the current selection with window.getSelection() and edit the selection with
window.getSelection()
selection.modify(\'extend\', \'backwa