Skip to content

Instantly share code, notes, and snippets.

View vaaski's full-sized avatar

vaaski

View GitHub Profile
@vaaski
vaaski / ytskip5s.user.js
Created February 12, 2020 02:17
allows you to use your keyboard media buttons to skip 5 seconds via the mediasession api.
// ==UserScript==
// @name youtube skip 5s
// @version 0.1
// @description does what it says on the tin
// @author vaaski
// @match https://www.youtube.com/watch?v=*
// @grant none
// ==/UserScript==
!(() => {
.mtk6 {
color: #f92aad;
text-shadow: 0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3;
}
.mtk3 {
color: #6d77b3;
}
.mtk4 {
@vaaski
vaaski / bd3d4befe38185704bf0fc875e9deed6\configuration.json
Last active December 14, 2021 15:22
Visual Studio Code Settings Sync Gist
{"contents":{"launch":{"version":"0.2.0","configurations":[{"name":".NET Core Launch (console)","type":"coreclr","request":"launch","preLaunchTask":"build","program":"${workspaceFolder}/src/api/bin/Debug/netcoreapp2.1/api.dll","args":[],"cwd":"${workspaceFolder}/src/api","console":"externalTerminal","stopAtEntry":false,"internalConsoleOptions":"openOnSessionStart"},{"name":".NET Core Attach","type":"coreclr","request":"attach","processId":"${command:pickProcess}"}]}},"overrides":[],"keys":["launch.version","launch.configurations"]}
@vaaski
vaaski / bookmarklet-playlistLen-yt.js
Last active September 29, 2017 12:53
Get YouTube playlist length (time)
javascript:(function()%7Bvar%20hrs%20%3D%200%2Cmin%20%3D%200%2Csec%20%3D%200%2Cselector%2Cmaterial%2Ctime%3Bif%20(document.querySelector(%22.timestamp%3Espan%22)%20!%3D%20null)%20%7Bselector%20%3D%20%22.timestamp%3Espan%22%3Bmaterial%20%3D%20false%3B%7D%20else%20if%20(document.querySelector(%22.ytd-thumbnail-overlay-time-status-renderer%22)%20!%3D%20null)%20%7Bselector%20%3D%20%22.ytd-thumbnail-overlay-time-status-renderer%22%3Bmaterial%20%3D%20true%3B%7Dfor%20(var%20i%20%3D%20document.querySelectorAll(selector).length%20-%201%3B%20i%20%3E%3D%200%3B%20i--)%20%7Bvar%20split%20%3D%20document.querySelectorAll(selector)%5Bi%5D.innerText.split(%22%3A%22)%3Bsec%20%2B%3D%20parseInt(split%5Bsplit.length%20-%201%5D)%3Bmin%20%2B%3D%20parseInt(split%5Bsplit.length%20-%202%5D)%3Bif%20(split.length%20%3D%3D%203)%20%7Bhrs%20%2B%3D%20parseInt(split%5Bsplit.length%20-%203%5D)%3B%7Dwhile%20(sec%20%3E%2060)%20%7Bsec%20-%3D%2060%3Bmin%20%2B%3D%201%3B%7Dwhile%20(min%20%3E%2060)%20%7Bmin%20-%3D%2060%3Bhrs%20%2B%3D%201%3B%7D%7Dif%
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""
@-moz-document domain("stackskills.com") {
.course-mainbar, body, .course-sidebar {
background: #212121;
}
h2.section-title, .course-sidebar h2 {
color: #FFF;
}
.nav-btn, .nav-btn.complete, .lecture-left, .course-sidebar .course-progress.lecture-page.sticky {
background-color: #252525 !important;
border: none !important;