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
### Keybase proof | |
I hereby claim: | |
* I am thewarrman on github. | |
* I am whalderman (https://keybase.io/whalderman) on keybase. | |
* I have a public key whose fingerprint is FE19 8242 E5E1 9B85 17C2 5BA2 2985 BD2A 1793 2F5B | |
To claim this, I am signing this object: |
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
const body = DocumentApp.getActiveDocument().getBody(); | |
function onOpen() { | |
const menuButtonText = Session.getActiveUserLocale() === 'ja' | |
? '色で文字を数える' | |
: 'Count Characters by Color'; | |
DocumentApp.getUi() | |
.createMenu("BCJ") | |
.addItem(menuButtonText, "displaySelectedColorMojiCount") |