Skip to content

Instantly share code, notes, and snippets.

@DKunin
Last active December 24, 2015 13:39
Show Gist options
  • Save DKunin/6806223 to your computer and use it in GitHub Desktop.
Save DKunin/6806223 to your computer and use it in GitHub Desktop.
Adding sarcasm and Irony tags to fb
javascript:(function(){function e(e){if(e.tagName==="TEXTAREA"||e.tagName==="INPUT"&&e.type==="text"){return e.value.substring(e.selectionStart,e.selectionEnd)}return null}var t=e(document.activeElement);document.activeElement.value=document.activeElement.value.replace(t.toString(),"<sarcasm>"+t.toString()+"</sarcasm>")})()
javascript:(function(){function e(e){if(e.tagName==="TEXTAREA"||e.tagName==="INPUT"&&e.type==="text"){return e.value.substring(e.selectionStart,e.selectionEnd)}return null}var t=e(document.activeElement);document.activeElement.value=document.activeElement.value.replace(t.toString(),"<irony>"+t.toString()+"</irony>")})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment