Mac 上自带的 Safari 比较轻量,虽然比较省电,但扩展性远不如 Chrome、Firefox,所以这两个是必须的。

brew cask install firefox
brew cask install google-chrome
# 现在的 Edge 完全兼容 Chrome,并且不用翻墙
brew cask install microsoft-edge

Chrome 默认会安装一个 Update 程序,在 ~/Library/Google/GoogleSoftwareUpdate,可以执行下面命令删除

cd /Users/liujiacai/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources

./ksinstall --nuke

对于程序员,如果上面两个浏览器不够用,可以安装相应的开发版:

brew cask install chromium
brew cask install google-chrome-canary    # 金丝雀版
brew cask install firefoxdeveloperedition

必备插件

userscript

百度网盘选中一行的文件

var main = document.getElementById('layoutMain');
var dds = main.children[0].children[1].children[0].children[3].querySelectorAll('dd.g-clearfix');

// HTMLCollection isn't array, so hack it!
[].slice.call(dds[0].children).forEach((e,i) => console.log(e.children[2].click()));