Skip to content

Instantly share code, notes, and snippets.

@mihawk90
mihawk90 / youtube-chat.css
Last active September 30, 2021 09:23
Twitch-Style YouTube Livechat
@-moz-document domain("www.youtube.com") {
/* Don't think [theater] is used anymore, but it is in the YT CSS */
@media (max-height: 1439px) {
ytd-watch-flexy[theater] #player-theater-container.ytd-watch-flexy,
/*ytd-watch-flexy[fullscreen] #player-theater-container.ytd-watch-flexy,*/
ytd-watch-flexy[theater] #player-theater-container.ytd-watch-flexy .ytp-chrome-bottom {
max-height: 1080px;
max-width: 1920px;
}
@mihawk90
mihawk90 / breeze_dark.reg
Created June 20, 2018 00:37
Breeze Dark theme for Wine
[Control Panel\\Colors] 1491939580
#time=1d2b2fb5c69191c
"ActiveBorder"="49 54 58"
"ActiveTitle"="49 54 58"
"AppWorkSpace"="60 64 72"
"Background"="49 54 58"
"ButtonAlternativeFace"="200 0 0"
"ButtonDkShadow"="154 154 154"
"ButtonFace"="49 54 58"
"ButtonHilight"="119 126 140"
"SIMULATOR": {
"Progress": "Fortschritt",
"Quality": "Qualität",
"Step_counter": "Schritt",
"Durability": "Durability", //TODO How is it in DE client?
"Hq": "HQ",
"Cp_amount": "HP", // I think? Handwerkspunkte(?)
"Simulate_tooltip": "Im Simulator herstellen", //how to translate "craft" properly?
"Configuration": "Einstellungen",
"Level": "Level", // does DE client translate "level" to "Stufe"?

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@mihawk90
mihawk90 / Komodo Hex to RGBA.js
Last active December 18, 2015 17:49
A simple Macro for replacing Hex Color values with RGBA values in Komodo Select the color value, press macro and it replaces the value automatically
//inspired by http://stackoverflow.com/a/5624139
function hexToRgb(hex) {
// Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex = hex.replace(shorthandRegex, function(m, r, g, b) {
return r + r + g + g + b + b;
});
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result ? "rgba("+