Skip to content

Instantly share code, notes, and snippets.

@akx
Created October 4, 2016 09:13
Show Gist options
  • Select an option

  • Save akx/5085f821cb9ed5ea7b52b65bc01bb9af to your computer and use it in GitHub Desktop.

Select an option

Save akx/5085f821cb9ed5ea7b52b65bc01bb9af to your computer and use it in GitHub Desktop.
Velhosuomi bookmarklet
javascript:!function(){function e(e){var o=Math.random()<.7?"aeiou":"äeiöy";return e.replace(/[aeiouyåäö]+/gi,function(e){var n=o[0|5*Math.random()];return e[0].toUpperCase()==e[0]&&(n=n.toUpperCase()),n})}function o(n){n.nodeType==Node.TEXT_NODE&&/\S/.test(n.nodeValue)?n.nodeValue=e(n.nodeValue):[].slice.call(n.childNodes).map(o)}o(document.body)}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment