Skip to content

Instantly share code, notes, and snippets.

View Dinir's full-sized avatar
🦽
Lost

Dinir Nertan Dinir

🦽
Lost
View GitHub Profile
@Dinir
Dinir / Jstris-hideChat.user.js
Created April 26, 2019 19:25
Remove the chat area in Jstris.
// ==UserScript==
// @name Jstris Chat Hider
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Remove the chat area in Jstris.
// @author Dinir
// @match https://*.jstris.jezevec10.com/*
// @grant none
// ==/UserScript==
@Dinir
Dinir / test.meta.js
Last active February 26, 2019 06:24
test test
{
"uuid":"109bcfe0-74eb-4669-ba6e-5cf6899036a7",
"name":"Test Userscript",
"options":{},
"durl":null,
"furl":null,
"lastModified":1551162286790
}
@Dinir
Dinir / Jstris-loadCustomSkin.user.js
Last active May 31, 2019 21:03
Loads a custom skin to Jstris, a userscript for Tampermonkey.
// ==UserScript==
// @name Jstris Custom Skin Loader
// @namespace http://tampermonkey.net/
// @downloadURL https://gist.githubusercontent.com/Dinir/023cebc82d20cc06d0a790acf374d337/raw/3c7377b2948201a41090deddf1d6972bc131acba/Jstris-loadCustomSkin.user.js
// @version 1.2
// @match https://*.jstris.jezevec10.com/*
// @grant none
// @run-at document-end
// @description Loads a custom skin to Jstris.
// @author Dinir Nertan
@Dinir
Dinir / speechBalloon.css
Created December 25, 2018 16:10
Streamlabs alert box: add speech balloon style triangular bluge
/* set colors */
#message-wrap { border-color: grey; }
#balloon-border, #balloon-border::after { background: grey; }
#balloon-border::before { background: white; }
/* set thickness */
#message-wrap { border-width: 3px; }
#balloon-border, #balloon-border::after { width: 3px; }
#balloon-border::before { height: 3px; top: -3px; }
#message-wrap {
@Dinir
Dinir / shakeUsingMic.js
Last active December 6, 2018 03:52
shake a dom by shouting at your microphone
const shakeConfig = {
targetDom: null,
shakeThreshold: [65,75,85,95,105],
shakeScale: 2
}
const getTwoRandomNumbers = () => [
Math.random(), Math.random()
]
const isShiftable = element => {
@Dinir
Dinir / chatbox.css
Last active November 2, 2024 23:32
Streamlabs Chat Box - Scrolling Sideway
body {
background: $background_color;
color: $text_color;
font-size: $font_size;
}
.colon, .name {
height: 0px;
}
@Dinir
Dinir / 72-wacom.conf
Last active December 19, 2018 09:47
My setting for Wacom tablet CTH-490 to use on Linux
# put this file in `/etc/X11/xorg.conf.d/`. If the directory doesn't exist you can just make one.
Section "InputClass"
Identifier "Wacom CTH-490 Pad"
MatchProduct "Intuos PT S 2 (WL) Pad pad|Intuos PT S 2 Pad pad"
MatchDevicePath "/dev/input/event*"
# adjust tablet's 16:10 area to 16:9, cropping top and bottom.
Option "TopX" "0"
Option "TopY" 475"
@Dinir
Dinir / foo_np_simple-no_indicator.txt
Last active August 15, 2020 11:41
My format for 'Now Playing Simple' foobar2000 plugin.
$if(
%isplaying%,
$if(%ispaused%,Ⅱ,▶)
$if(%album%, %album%$crlf() )
$if(%artist%, %artist%$crlf() )
$if(%title%, %title% , %filename%)
)
@Dinir
Dinir / streamTitle.html
Last active March 26, 2018 20:08
Little 2-line text view to use as a stream title in a stream layout
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Stream Title Display</title>
<style>
body {
margin: 0;
@Dinir
Dinir / showCenterOfWindow.js
Last active February 1, 2018 08:01
I need this to adjust the position of monitors.
document.body.style.margin = "0";
document.body.style.overflow = "hidden";
const windowSize = {x:window.innerWidth, y:window.innerHeight};
const canvas = document.createElement("canvas");
const ctx = canvas.getContext("2d");
canvas.setAttribute("width", windowSize.x);
canvas.setAttribute("height", windowSize.y);
document.body.appendChild(canvas);