Created
December 29, 2022 05:34
-
-
Save Pycea/9be3f5770d4d1011ebaaffb8870457fe to your computer and use it in GitHub Desktop.
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
var script = document.createElement('script'); | |
script.src = "https://code.jquery.com/jquery-latest.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
setTimeout(function() { | |
$("p").each(function() { | |
$(this).text( | |
$(this).text() | |
.replace(/\bi\b/g, "I") | |
.replace(/^([a-z])|[.?] ([a-z])/g, function(x) { | |
return x.toUpperCase() | |
}) | |
.replace(/([^.])$/, "$1.") | |
.replace(/\bppl\b/, "people") | |
.replace(/\bbc\b/, "because") | |
.replace(/&/, "and") | |
) | |
}) | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment