Last active
December 24, 2015 13:39
-
-
Save DKunin/6806223 to your computer and use it in GitHub Desktop.
Adding sarcasm and Irony tags to fb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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