Skip to content

Instantly share code, notes, and snippets.

@neonfuz
neonfuz / youtube-quick-playlist.user.js
Last active April 5, 2022 00:11
youtube quick playlist button userscript
// ==UserScript==
// @name youtube quick playlist button
// @namespace http://neonfuz.xyz/
// @author neonfuz
// @version 0.9
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?domain=youtube.com
// @updateURL https://gist.github.com/neonfuz/ea14fe2ad32c4caa860f36bb521b9a60/raw/youtube-quick-playlist.user.js
// @downloadURL https://gist.github.com/neonfuz/ea14fe2ad32c4caa860f36bb521b9a60/raw/youtube-quick-playlist.user.js
// ==/UserScript==
@neonfuz
neonfuz / Makefile
Last active January 18, 2023 05:02
youtube miniplayer in playlist sidebar
yt-miniplayer-in-playlist-sidebar.user.css: yt-miniplayer-in-playlist-sidebar.user.less
lessc $< > $@
sed -i '/^@var/d' $@
sed -i '/^@preprocessor/d' $@
@neonfuz
neonfuz / stack.org
Last active January 26, 2022 18:52
my nootropic stack

Stack

daily:

SupplementDosemgrep
l-theanine1 pill2001-2
coffee1 cup1-3
- caffine???
- mct-oil1 squirt???
// ==UserScript==
// @name Youtube Sorter
// @description client side playlist sorting on youtube
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?domain=youtube.com
// @grant none
@neonfuz
neonfuz / moveZeroes_bench.js
Created December 18, 2023 22:21
moveZeroes benchmark
const fs = require('node:fs');
const moveZeroes = (nums) => {
let write = 0;
for (let read = 0; read < nums.length; ++read)
if (nums[read] !== 0)
nums[write++] = nums[read];
for (; write < nums.length; ++write)
nums[write] = 0;
return nums;