How to Use Typora

Post at — May 04, 2026
#markdown

typora v1.10.8

Activate Steps

For version 1.10.8

  • Change Activate State
1
2
// /Applications/Typora.app/Contents/Resources/TypeMark/page-dist/static/js/LicenseIndex.180dd4c7.5b0f7af9.chunk.js
// change hasActivated="true"==e.hasActivated to hasActivated="true"=="true"
  • Pop windows auto close
1
2
3
// /Applications/Typora.app/Contents/Resources/TypeMark/page-dist/static/js/0.99879679.chunk.js
// add following code in the first line:
setTimeout(function() { document.querySelector('.default-btn.secondary-btn').click(); }, 20);
  • Auto close the activate success tips
1
2
3
// /Applications/Typora.app/Contents/Resources/TypeMark/page-dist/license.html
// before </body> add following script to auto close the activate success tips.
<script>window.onload=function(){setTimeout(()=>{document.querySelector("#root > div > div.footer > div.footer-left > button").click();},10)}</script>
  • Disable the non-activate button
1
2
3
4
5
6
7
// /Applications/Typora.app/Contents/Resources/TypeMark/index.html
// add following code before </html>
<style>
body > div[role="button"][title*="activate typora"] {
  visibility: hidden;
}
</style>

Some opensource for this

https://github.com/tanwubin/typorahub

While the path in the script need to adapter.

BTW:install brew-hugo-uv

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# install brew for mac
% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
/etc/paths.d/homebrew
==> The following new directories will be created:
/opt/homebrew/bin
/opt/homebrew/etc
/opt/homebrew/include
/opt/homebrew/lib
/opt/homebrew/sbin
/opt/homebrew/share
/opt/homebrew/var
/opt/homebrew/opt
/opt/homebrew/share/zsh
/opt/homebrew/share/zsh/site-functions
/opt/homebrew/var/homebrew
/opt/homebrew/var/homebrew/linked
/opt/homebrew/Cellar
/opt/homebrew/Caskroom
/opt/homebrew/Frameworks

Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/bin/install -d -o root -g wheel -m 0755 /opt/homebrew
==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /bin/chmod ug=rwx /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /bin/chmod go-w /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown tanwubin /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/sbin/chown -R tanwubin:admin /opt/homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 331050, done.
remote: Counting objects: 100% (580/580), done.
remote: Compressing objects: 100% (254/254), done.
remote: Total 331050 (delta 440), reused 374 (delta 326), pack-reused 330470 (from 3)
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (33/33), done.
remote: Total 55 (delta 33), reused 33 (delta 33), pack-reused 22 (from 1)
==> /usr/bin/sudo /bin/mkdir -p /etc/paths.d
==> /usr/bin/sudo tee /etc/paths.d/homebrew
/opt/homebrew/bin
==> /usr/bin/sudo /usr/sbin/chown root:wheel /etc/paths.d/homebrew
==> /usr/bin/sudo /bin/chmod a+r /etc/paths.d/homebrew
==> Updating Homebrew...
==> Downloading https://ghcr.io/v2/homebrew/core/portable-ruby/blobs/sha256:8ad98d9cf15477d1a43f4012cfd5eff5c271398bca1e2724b55bd4944a0bb1d4
################################################################################################################# 100.0%
==> Pouring portable-ruby-4.0.3.arm64_big_sur.bottle.tar.gz
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run these commands in your terminal to add Homebrew to your PATH:
    echo >> /Users/tanwubin/.zprofile
    echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> /Users/tanwubin/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv zsh)"
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

% echo >> /Users/tanwubin/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> /Users/tanwubin/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv zsh)"

% cat ~/.zprofile 

eval "$(/opt/homebrew/bin/brew shellenv zsh)"

% brew -v
Homebrew 5.1.8

# install hugo
% brew install hugo
✔︎ JSON API formula.jws.json                                                                  Downloaded   32.0MB/ 32.0MB
✔︎ JSON API cask.jws.json                                                                     Downloaded   15.5MB/ 15.5MB
==> Fetching downloads for: hugo
✔︎ Bottle Manifest hugo (0.161.1)                                                             Downloaded    7.4KB/  7.4KB
✔︎ Bottle hugo (0.161.1)                                                                      Downloaded   26.2MB/ 26.2MB
==> Pouring hugo--0.161.1.arm64_tahoe.bottle.tar.gz
🍺  /opt/homebrew/Cellar/hugo/0.161.1: 54 files, 83.1MB
==> Running `brew cleanup hugo`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
  
% hugo version
hugo v0.161.1+extended+withdeploy darwin/arm64 BuildDate=2026-04-29T13:56:01Z VendorInfo=Homebrew

% brew upgrade hugo
Warning: hugo 0.161.1 already installed

# install uv
% curl -LsSf https://astral.sh/uv/install.sh | sh
downloading uv 0.11.8 aarch64-apple-darwin
installing to /Users/tanwubin/.local/bin
  uv
  uvx
everything's installed!

To add $HOME/.local/bin to your PATH, either restart your shell or run:

    source $HOME/.local/bin/env (sh, bash, zsh)
    source $HOME/.local/bin/env.fish (fish)
% uv self update
info: Checking for updates...
success: You're already on version v0.11.8 of uv (the latest version).

Reference