Skip to content

Instantly share code, notes, and snippets.

@j0n3
Last active December 31, 2020 16:50
Show Gist options
  • Save j0n3/5ebb403fc4ad1d7ab468790c88a81905 to your computer and use it in GitHub Desktop.
Save j0n3/5ebb403fc4ad1d7ab468790c88a81905 to your computer and use it in GitHub Desktop.
Mimimify

Mimify text

This substitutes any vowel with an 'i'

Javascript bookmarklet:

Add it to your browser bookmarks. Mimimifies selected text or opens a popup window if none selected

javascript:sel = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!sel) sel = prompt(%22Select text to mimimify:%22, %22%22); if (sel!=null) alert(sel.replace(/[aeiouAEIOU]/g, 'i')); void 0

Bash

echo "This is so wrong" | sed 's/[aeiouAEIOU]/i/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment