Skip to content

Instantly share code, notes, and snippets.

Codenames Packs (.txt Files)

Major rework underway

@Crinjaal
Crinjaal / Copy-Packs.sh
Last active July 17, 2025 14:19
Creates and copies the formatted json from the txt files. It also checks for discrepancies.
function cnopacks() {
declare -A custom_words
> "ZZ_LEFTOVERS.txt"
{
local first=true
echo "{"
(
for file in *.txt; do
[ -f "$file" ] || continue
// ==UserScript==
// @name Codenames Hotkeys
// @version 1.1
// @description Hotkeys to search given clues and change nickname (edit line 16).
// @author Crinjal
// @match https://codenames.game/room/*
// @exclude https://codenames.game/room/create
// @downloadURL https://gist.githubusercontent.com/Crinjaal/018dc294b021bd6a58d4ffc18c72da16/raw/Codenames-Hotkeys.user.js
// @updateURL https://gist.githubusercontent.com/Crinjaal/018dc294b021bd6a58d4ffc18c72da16/raw/Codenames-Hotkeys.user.js
// @license GPL-3.0-or-later
// ==UserScript==
// @name Codenames Custom Packs
// @version 1.0
// @description Add custom packs to your game with a few lines of text
// @author Crinjal
// @match https://codenames.game/room/*
// @exclude https://codenames.game/room/create
// @downloadURL https://gist.githubusercontent.com/Crinjaal/474f8eaa612fabaaacbf2b50142ab7e3/raw/Codenames-Custom-Packs.user.js
// @updateURL https://gist.githubusercontent.com/Crinjaal/474f8eaa612fabaaacbf2b50142ab7e3/raw/Codenames-Custom-Packs.user.js
// @grant GM.xmlHttpRequest
rework underway
{
"BASE": [
"2", "ACCESSORY", "AERONAUTIC", "AGRICULTURE", "AMPHIBIAN", "APP", "AQUATIC", "ARTHROPOD", "ARTIST", "ASTRONOMY",
"BIOME", "BIRD", "BODILY", "BUILDING", "CALENDAR", "CARTOGRAPHY", "CITY", "CLOTH", "COMIC", "COUNTRY",
"CREATURE", "CULINARY", "EDIBLE", "ELEMENT", "FICTIONAL", "FINANCE", "FLOWER", "GEOLOGY", "GROUP", "INDOOR",
"LEADER", "MAMMAL", "MATERIAL", "METEOROLOGY", "MONONYM", "NAUTICAL", "OCCUPATION", "OUTDOOR", "PANTHEON", "PERFORM",
"PLANT", "PRODUCE", "REPTILE", "ROLE", "SCIENTIST", "SPOT", "STRUCTURE", "VEHICLE", "WARFARE", "ZOOTERM",
"ZZ_LEFTOVERS"
]
}