Skip to content

Instantly share code, notes, and snippets.

@Pycea
Created December 29, 2022 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pycea/9be3f5770d4d1011ebaaffb8870457fe to your computer and use it in GitHub Desktop.
Save Pycea/9be3f5770d4d1011ebaaffb8870457fe to your computer and use it in GitHub Desktop.
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