Last active
April 1, 2023 18:38
-
-
Save julienreszka/bcd15ca96154580aef84f84f1bd61274 to your computer and use it in GitHub Desktop.
Inspired by this tweet https://twitter.com/AndrewGilgallon/status/1642222722875785217
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() { const regex = /\b(\w{1,3}|\w{4,})/g; const paragraphs = document.getElementsByTagName('p'); for (let i = 0; i < paragraphs.length; i++) { const paragraph = paragraphs[i]; paragraph.innerHTML = paragraph.innerHTML.replace(regex, match => `<b>${match.substr(0,3)}</b>${match.substr(3)}`); }})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to install a bookmarklet:
https://mreidsma.github.io/bookmarklets/installing.html