This file contains hidden or 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
| # ##### | |
| # ##### 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 |
This file contains hidden or 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 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) { |
OlderNewer