Safari term.ptt自動登入及一些軟體分享 - MAC
By Barb Cronin
at 2022-05-24T19:24
at 2022-05-24T19:24
Table of Contents
剛入手Macbook,分享順便記錄一下方便之後重灌
1.HomeBrew
2.alt-tab 就字面上的東西,mac內建的用不習慣
3.hiddenbar 精簡menubar上的東西
4.kitty terminal,iterm太慢了
5.onedrive
6.spotify
7.batteries 付費,widget顯示藍芽設備跟iphone電量
8.iina 播放軟體
9.microsoft-edge
10.vscode
11.itsycal 方便叫出日曆
12.monitorcontrol 方便控制外接螢幕
13.raycast 取代spotlight
14.hammerspoon 可以寫lua做很多事,也能引用applescript
15.keka 解壓縮
16.motrix 下載&BT
17.rectangle 視窗管理
-----以下命令行工具就不多介紹了,有好奇的再問吧
18.bat
19.fd
20.ffmpeg
21.fzf
22.powerlevel10k
23.thefuck
24.tree
25.yt-dlp
-----以上通過Homebrew安裝
1.Line
2.Word
3.Excel
4.Powerpoint
5.Run Cat
6.Userscripts Safari擴展
-----以上通過appStore安裝
看ptt不喜歡跟其他一堆分頁擠在一起,所以用safari看
找了一下似乎Safari上能運行腳本的只有這個userscripts
只好隨便找個tampermonkey上的自動登入改
-----
const ID = '帳號';
const PWD = '密碼';
const insertText = (() => {
let t = document.querySelector('#t')
return str => {
if (!t) t = document.querySelector('#t')
const e = new CustomEvent('paste')
e.clipboardData = { getData: () => str }
t.dispatchEvent(e)
}
})()
console.origInfo = console.info.bind(console);
console.info = function() {
console.origInfo.apply(console, arguments);
if(Array.from(arguments)[0].includes("onConnect")) {
insertText(ID + '\n' + PWD + '\n');
}
}
-----
--
Tags:
MAC
All Comments
By Caroline
at 2022-05-27T23:09
at 2022-05-27T23:09
By Candice
at 2022-05-24T22:20
at 2022-05-24T22:20
By Sarah
at 2022-05-28T02:04
at 2022-05-28T02:04
By Thomas
at 2022-05-24T22:20
at 2022-05-24T22:20
By William
at 2022-05-28T02:04
at 2022-05-28T02:04
By Andy
at 2022-05-24T22:20
at 2022-05-24T22:20
By Rebecca
at 2022-05-28T02:04
at 2022-05-28T02:04
Related Posts
Re: 卡在新機發表與急用之間
By Emily
at 2022-05-24T15:37
at 2022-05-24T15:37
MacBook Pro 鍍膜去除問題
By Edward Lewis
at 2022-05-24T03:03
at 2022-05-24T03:03
換新機求選擇 M1 air & pro 14
By Audriana
at 2022-05-23T23:29
at 2022-05-23T23:29
AirPods Pro 連不上MacBook Air
By Kristin
at 2022-05-23T17:44
at 2022-05-23T17:44
用iphone分享熱點會影響icloud上傳下載嗎?
By Eden
at 2022-05-23T15:55
at 2022-05-23T15:55