Strikethrough

Script key: Strikethrough

Posted by Dr. Drang, @drdrang

Install

Details

Label
Voice Over Strikethrough
Script
function strikeout(unstruck) {
  var s = String.fromCharCode(824)
    , a = unstruck.split('');
  if (a.length > 0) {
    return a.join(s) + s;
  }
  else {
    return '';
  }
}

setSelectedText(strikeout(getSelectedText()))

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus