We have the same code working using node, deno, and bun.
E.g.,
bun run index.js
| // ==UserScript== | |
| // @name Youtube Membership Embed Temp Fix | |
| // @version 2024-12-29 | |
| // @description Temp fix for membership embeds | |
| // @author Nep | |
| // @match https://www.youtube.com/embed/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
| // @grant unsafeWindow | |
| // @run-at document-start | |
| // ==/UserScript== |
| # author: Bluefissure | |
| # License: MIT License | |
| # Description: Fixes Palworld brokwn save files corrupted by someone existing the guild | |
| # Based on the work of https://github.com/cheahjs/palworld-save-tools/releases/tag/v0.13.0 | |
| import argparse | |
| import codecs | |
| import os | |
| import json | |
| from lib.gvas import GvasFile |
Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.
See the credits and also special thanks in below.
Before this gist has been forked, AgentOak made original gist back in November 13th 2019 and it was last updated on May 5th 2021.
From now on, this forked gist is maintained by Martin Eesmaa since 17th September 2022. I joined to yt-dlp Discord server on 3rd April 2026 with my Discord username: martineesmaa.
Last updated: 11 October 2026
[EDIT: I've added a part 2 to this blog post, to address some of the feedback that has come up: https://gist.github.com/getify/706e5e10822a298375da40f9cc1fa295]
Recently, this article on "The JavaScript Block Statement" came out, and it received some good discussion in a reddit thread. But the general reaction seems to be against this approach. That saddens me.
| // ==UserScript== | |
| // @name HoloTools Fixes and Enhancements | |
| // @namespace https://gist.github.com/lbmaian/fef815da2628dc6e546ba1f7cd8212a5 | |
| // @downloadURL https://gist.github.com/lbmaian/fef815da2628dc6e546ba1f7cd8212a5/raw/holotools-fixes.user.js | |
| // @updateURL https://gist.github.com/lbmaian/fef815da2628dc6e546ba1f7cd8212a5/raw/holotools-fixes.user.js | |
| // @version 0.9.2 | |
| // @description HoloTools Fixes and Enhancements | |
| // @author lbmaian | |
| // @match https://hololive.jetri.co/ | |
| // @match https://holodex.net/login |
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).