Skip to content

Instantly share code, notes, and snippets.

View fl0aten's full-sized avatar
🐢
World's okayest developer.

Dominic Holzinger fl0aten

🐢
World's okayest developer.
View GitHub Profile
@fl0aten
fl0aten / ubuntu.zsh-theme
Last active December 1, 2022 23:07
Ubuntu Like "Oh My ZSH!" Theme
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY="*"
ZSH_THEME_GIT_PROMPT_CLEAN=""
PROMPT='%{$fg[green]%}%n@%m%{$reset_color%}'
PROMPT+=':'
PROMPT+='%{$fg[blue]%}%~%{$reset_color%}'
PROMPT+='$(git_prompt_info)'
PROMPT+='\$ '
@fl0aten
fl0aten / picture-in-picture-bookmark.md
Last active November 25, 2022 20:16
Picture-In-Picture Bookmark

Picture-In-Picture Bookmark

Description

The following JavaScript code locates the first video element on the page, removes the attributes that may be blocking the PIP feature, and attempts to open the video in picture-in-picture mode.

var v = document.getElementsByTagName("video").item(0);
v.removeAttribute("disablepictureinpicture");
v.requestPictureInPicture();