Skip to content

Instantly share code, notes, and snippets.

@hmil
Created November 14, 2019 10:26
Show Gist options
  • Select an option

  • Save hmil/9c16c606653adbe2ff3934cef5addbd1 to your computer and use it in GitHub Desktop.

Select an option

Save hmil/9c16c606653adbe2ff3934cef5addbd1 to your computer and use it in GitHub Desktop.

Revisions

  1. hmil created this gist Nov 14, 2019.
    5 changes: 5 additions & 0 deletions shrug.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    // Create a bookmark with this content:

    javascript:((el => 'value' in el && typeof el.value === 'string' && (el.value = el.value + '¯\\_(ツ)_/¯') && void 0)(document.activeElement))

    // Use it to insert a shrug emoji in the text field currently focused