Last active
April 22, 2016 13:35
-
-
Save che-wf/959a15b92554a2b56a58 to your computer and use it in GitHub Desktop.
Superscript all Trademark, Registered, and Copyright scripts (unless already superscripted)
This file contains hidden or 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
| $('body :not(script,sup)').contents().filter(function() { | |
| return this.nodeType === 3; | |
| }).replaceWith(function() { | |
| return this.nodeValue.replace(/[™®©]/g, '$&'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment