Skip to content

Instantly share code, notes, and snippets.

View nutbutterfly's full-sized avatar

NutButterflY nutbutterfly

View GitHub Profile
#items { overflow: hidden !important; }
*:not(.yt-chat-badge):not(.yt-emoji-icon) { background: transparent !important; }
.gaming-promo, #live-comments-controls, ::-webkit-scrollbar, wbr, .is-deleted, [is-deleted], #panel-pages, yt-live-chat-header-renderer { display: none !important; }
#author-name, #message { color: white !important; text-shadow: -0.5px -0.5px 0 black, 0.5px -0.5px 0 black, -0.5px 0.5px 0 black, 0.5px 0.5px 0 black !important; }
#message { display: block !important; }
#author-name::after { content: ":"; font-weight: 900; }
#message a {color: skyblue !important; font-size: 0 !important; line-height: 9px !important;}
#message a::after { content: attr(href); font-size: 10px !important; }
@keyframes chat-fade { 0% { opacity: 1; position: relative; } 99% { opacity: 0; position: relative; } 100% { opacity: 0; position: absolute; }}
yt-live-chat-text-message-renderer { animation: chat-fade 5s 30s forwards; }
@nutbutterfly
nutbutterfly / notification.html
Last active August 8, 2017 09:09
Web Notification
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Web Notifications</title>
</head>
<body>
<button onclick="test();">Send Web Notification</button>
@nutbutterfly
nutbutterfly / introrx.md
Created May 30, 2016 02:00 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@nutbutterfly
nutbutterfly / generate-cpp-header-file-in-android-studio.md
Last active September 7, 2021 08:20
Generate C/C++ header file in Android Studio
  • On the Terminal Tab, change directory to "src/main".
cd src/main
  • create "jni" folder.
mkdir jni
@nutbutterfly
nutbutterfly / youtube-mp3.sh
Created March 24, 2016 09:56
Shell Script to Download Youtube Video and Convert to MP3 (Required youtube-dl and ffmpeg installed on your computer)
#!/bin/bash
URL=$1
# function: guide
guide () {
echo "Youtube URL is required."
}
# function: download audio and convert to mp3
download_and_convert() {
@nutbutterfly
nutbutterfly / debug-android-wear.sh
Last active March 24, 2016 10:12
Script to connect/debug Android Wear over Bluetooth
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444