Skip to content

Instantly share code, notes, and snippets.

View cobaltt7's full-sized avatar

cobalt cobaltt7

View GitHub Profile
@cobaltt7
cobaltt7 / lockfile-diff.js
Last active May 3, 2025 03:56
Code that can be used in a bookmarklet on PRs to better compare changes in NPM lockfiles.
async function main(token) {
const headers = token ? { Authorization: `token ${token}` } : {};
const prMatch = location.pathname.match(/\/([^/]+)\/([^/]+)\/pull\/(\d+)/);
if (!prMatch) return alert("Not a PR page.");
const [, owner, repo, prNumber] = prMatch;
const prRes = await fetch(`https://api.github.com/repos/${owner}/${repo}/pulls/${prNumber}`, {
headers,
});
@cobaltt7
cobaltt7 / CGB.md
Last active January 5, 2025 04:14

Chain Game Bot Terms of Service and Privacy Policy

Chain Game Bot (CGB) is a Discord bot owned and maintained by @cobaltt7 (Discord ID: 771422735486156811). It is open source, and its source code is available on GitHub. Support regarding CGB is available in the Cobots Discord server.

CGB serves as an aid for Discord users playing games such as counting or word chain by enforcing all the rules associated with the game. Server admins are able to set channels for CGB to monitor and associate them with specific games.

By enabling CGB in your server or otherwise interacting with CGB, you agree to these rules.

QueerDex Terms of Service and Privacy Policy

QueerDex is a Discord bot owned and maintained by @cobaltt7 (Discord ID: 771422735486156811). It is a "fork" (modified version) of the open source Discord bot BallsDex. QueerDex is not currently open source. Support regarding QueerDex is available in the Cobots Discord server.

QueerDex contains virtual objects ("flags") that can be collected by users. The rate that members can collect them at ("spawn rate") is tied to various factors, such as the frequency of messages in a server, the number of members in a server, and possibly others.