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
#!/bin/zsh | |
count=$(ps -ef | grep -i '/Applications/AltTab.app' | grep -vc 'grep') | |
if [ $count -eq 0 ] | |
then | |
open /Applications/AltTab.app | |
echo 'Open AltTab now' | |
fi |
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 elArr = document.querySelector('#wrapper > #content .subjectwrap .subject #info').innerHTML.toString().split('<br>'); | |
const mDOMParser = new DOMParser(); | |
const mData = {} | |
const title = document.querySelector('#wrapper > #content > h1 span[property="v:itemreviewed"]').innerText | |
Object.assign(mData, { '片名': title }) | |
elArr.forEach(item => { | |
const mDom = mDOMParser.parseFromString(item, 'text/html') | |
const pl = mDom.querySelector('.pl') | |
if (!pl) return | |
const mKey = pl.innerText.replace(/:|:/, '') |
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
/* Better Command Palette */ | |
.better-command-palette .better-command-palette-title { | |
display: none; | |
} | |
.suggestion-prefix:after { | |
content: ": "; | |
} | |
.better-command-palette .suggestion-item { | |
display: flex; | |
flex-wrap: wrap; |