Skip to content

Instantly share code, notes, and snippets.

View syamn's full-sized avatar
🏠
Working from home

Sakura Onishi syamn

🏠
Working from home
  • everywhere
  • Tokyo
View GitHub Profile
@syamn
syamn / .zshrc
Last active November 30, 2016 11:55
kawaii prompt
# #####
# ##### Prompt
# #####
autoload -Uz colors; colors
setopt prompt_subst
# ref: http://d.hatena.ne.jp/uasi/20091017/1255712789
function prompt-git-current-branch {
local name st color
if [[ "$PWD" =~ '/\.git(/.*)?$' ]]; then
const checkAndClick = () => {
const moreButton = Array.from(document.querySelectorAll('span'))
.find(el => el.textContent.trim() === 'もっと見る');
const button = moreButton?.closest('button');
const isDisabled = button?.disabled || button?.hasAttribute('disabled');
if (moreButton && !isDisabled) {
moreButton.click();
} else if (isDisabled) {