2026-08-01 10:20:43 -04:00
<!doctype html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< title > revenge-plugins< / title >
< meta name = "description" content = "Plugins for Revenge, the Discord Android client mod." >
2026-08-02 14:41:17 -04:00
< link rel = "icon" href = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='4' fill='%230a0a0c'/%3E%3Ctext x='6' y='23' font-family='monospace' font-size='19' fill='%2339e881'%3E%3E_%3C/text%3E%3C/svg%3E" >
2026-08-01 10:20:43 -04:00
< style >
:root {
2026-08-02 14:41:17 -04:00
--bg: #f4f5f2;
2026-08-01 10:20:43 -04:00
--bg-elevated: #ffffff;
2026-08-02 14:41:17 -04:00
--bg-sunken: #eceee9;
--border: #d7dad2;
--text: #14150f;
--text-muted: #62675c;
--text-dim: #8a8f80;
--accent: #0d8a4e;
2026-08-01 10:20:43 -04:00
--accent-text: #ffffff;
2026-08-02 14:41:17 -04:00
--danger: #c0392b;
--danger-bg: #fbe9e7;
--shadow: 0 1px 2px rgba(20, 21, 15, 0.05);
--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
2026-08-01 10:20:43 -04:00
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root {
2026-08-02 14:41:17 -04:00
--bg: #0a0a0c; --bg-elevated: #111213; --bg-sunken: #0d0e0f; --border: #24262a;
--text: #e4e6e1; --text-muted: #8b9088; --text-dim: #5c6058; --accent: #39e881; --accent-text: #05170d;
--danger: #ff6b5e; --danger-bg: #241211;
--shadow: 0 1px 2px rgba(0,0,0,0.4);
2026-08-01 10:20:43 -04:00
color-scheme: dark;
}
}
:root[data-theme="dark"] {
2026-08-02 14:41:17 -04:00
--bg: #0a0a0c; --bg-elevated: #111213; --bg-sunken: #0d0e0f; --border: #24262a;
--text: #e4e6e1; --text-muted: #8b9088; --text-dim: #5c6058; --accent: #39e881; --accent-text: #05170d;
--danger: #ff6b5e; --danger-bg: #241211;
--shadow: 0 1px 2px rgba(0,0,0,0.4); color-scheme: dark;
2026-08-01 10:20:43 -04:00
}
:root[data-theme="light"] {
2026-08-02 14:41:17 -04:00
--bg: #f4f5f2; --bg-elevated: #ffffff; --bg-sunken: #eceee9; --border: #d7dad2;
--text: #14150f; --text-muted: #62675c; --text-dim: #8a8f80; --accent: #0d8a4e; --accent-text: #ffffff;
--danger: #c0392b; --danger-bg: #fbe9e7;
--shadow: 0 1px 2px rgba(20,21,15,0.05); color-scheme: light;
2026-08-01 10:20:43 -04:00
}
* { box-sizing: border-box; }
2026-08-01 10:54:05 -04:00
html { scroll-behavior: smooth; }
2026-08-01 10:20:43 -04:00
body {
margin: 0;
2026-08-02 14:41:17 -04:00
background:
repeating-linear-gradient(0deg, color-mix(in srgb, var(--text) 2%, transparent) 0px, transparent 1px, transparent 2px),
var(--bg);
2026-08-01 10:20:43 -04:00
color: var(--text);
2026-08-02 14:41:17 -04:00
font-family: var(--mono);
2026-08-01 10:20:43 -04:00
-webkit-font-smoothing: antialiased;
2026-08-02 14:41:17 -04:00
font-size: 14px;
2026-08-01 10:20:43 -04:00
}
2026-08-02 14:41:17 -04:00
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
2026-08-01 10:54:05 -04:00
a { color: inherit; }
2026-08-02 14:41:17 -04:00
/* ---------- Header ---------- */
2026-08-01 10:54:05 -04:00
.hero {
2026-08-01 10:20:43 -04:00
border-bottom: 1px solid var(--border);
2026-08-02 14:41:17 -04:00
padding: 40px 0 28px;
2026-08-01 10:54:05 -04:00
}
.mark {
2026-08-01 10:20:43 -04:00
display: inline-flex;
align-items: center;
2026-08-02 14:41:17 -04:00
gap: 8px;
font-size: 12.5px;
2026-08-01 10:54:05 -04:00
font-weight: 700;
2026-08-01 10:20:43 -04:00
color: var(--accent);
2026-08-02 14:41:17 -04:00
letter-spacing: 0.04em;
margin-bottom: 22px;
2026-08-01 10:54:05 -04:00
}
2026-08-02 14:41:17 -04:00
.mark::before { content: ">"; }
2026-08-01 10:54:05 -04:00
h1 {
2026-08-02 14:41:17 -04:00
font-size: clamp(22px, 3.4vw, 30px);
line-height: 1.3;
margin: 0 0 6px;
font-weight: 700;
letter-spacing: -0.01em;
}
h1 .grad { color: var(--accent); }
.hero p.sub {
color: var(--text-muted);
font-size: 13.5px;
max-width: 620px;
margin: 0 0 20px;
line-height: 1.65;
}
.hero p.sub::before { content: "# "; color: var(--text-dim); }
.hero-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
2026-08-01 10:20:43 -04:00
.hero-links a {
2026-08-02 14:41:17 -04:00
font-size: 12.5px; font-weight: 600; text-decoration: none;
padding: 7px 12px; border: 1px solid var(--border); background: var(--bg-elevated);
2026-08-01 10:20:43 -04:00
}
2026-08-02 14:41:17 -04:00
.hero-links a.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.hero-links a:hover { border-color: var(--accent); }
2026-08-01 10:54:05 -04:00
.kbd-hint {
display: inline-flex; align-items: center; gap: 6px;
2026-08-02 14:41:17 -04:00
font-size: 12px; color: var(--text-dim); font-weight: 600;
2026-08-01 10:54:05 -04:00
}
.kbd-hint kbd {
font-family: var(--mono); font-size: 11px; background: var(--bg-sunken);
2026-08-02 14:41:17 -04:00
border: 1px solid var(--border); border-radius: 3px; padding: 2px 5px;
2026-08-01 10:54:05 -04:00
}
2026-08-02 14:41:17 -04:00
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stats .stat-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.stats .stat-label { font-size: 11.5px; color: var(--text-dim); }
.stats .stat-value::before { content: "["; color: var(--text-dim); }
.stats .stat-value::after { content: "]"; color: var(--text-dim); }
2026-08-01 10:20:43 -04:00
2026-08-01 10:54:05 -04:00
/* ---------- Controls ---------- */
2026-08-02 14:41:17 -04:00
.controls { position: sticky; top: 0; background: var(--bg); padding: 14px 0; z-index: 5; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
2026-08-01 10:20:43 -04:00
.controls.stuck { border-bottom-color: var(--border); }
2026-08-02 14:41:17 -04:00
.search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; border: 1px solid var(--border); background: var(--bg-elevated); padding: 0 12px; }
.search-row::before { content: "$"; color: var(--accent); font-weight: 700; }
2026-08-01 10:20:43 -04:00
.search {
2026-08-02 14:41:17 -04:00
flex: 1; padding: 10px 8px; border: none;
background: transparent; color: var(--text); font-size: 13.5px; font-family: var(--mono);
2026-08-01 10:20:43 -04:00
}
2026-08-02 14:41:17 -04:00
.search:focus { outline: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 10px; background: var(--bg-sunken); color: var(--text-muted); border: 1px solid var(--border); cursor: pointer; }
.chip::before { content: "#"; margin-right: 3px; color: var(--text-dim); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.chip[aria-pressed="true"]::before { color: var(--accent-text); opacity: 0.7; }
2026-08-01 10:20:43 -04:00
2026-08-02 14:41:17 -04:00
main { padding: 20px 0 56px; }
.count { color: var(--text-dim); font-size: 12px; margin: 0 0 14px; }
.count::before { content: "> "; }
2026-08-01 10:20:43 -04:00
2026-08-01 10:54:05 -04:00
/* ---------- Grid / cards ---------- */
2026-08-02 14:41:17 -04:00
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
2026-08-01 10:20:43 -04:00
.card {
2026-08-01 10:54:05 -04:00
position: relative;
2026-08-01 10:20:43 -04:00
background: var(--bg-elevated);
border: 1px solid var(--border);
2026-08-02 14:41:17 -04:00
padding: 16px 16px 14px;
2026-08-01 10:20:43 -04:00
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
2026-08-01 10:54:05 -04:00
cursor: pointer;
text-align: left;
font: inherit;
color: inherit;
width: 100%;
2026-08-02 14:41:17 -04:00
transition: border-color 0.12s ease;
2026-08-01 10:20:43 -04:00
}
2026-08-02 14:41:17 -04:00
.card.is-broken { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
2026-08-01 10:54:05 -04:00
.card:hover, .card:focus-visible {
2026-08-02 14:41:17 -04:00
border-color: var(--accent);
2026-08-01 10:54:05 -04:00
outline: none;
2026-08-01 10:20:43 -04:00
}
2026-08-02 14:41:17 -04:00
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card h3 { font-size: 14.5px; margin: 0; font-weight: 700; }
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 6px; white-space: nowrap; flex-shrink: 0; border: 1px solid currentColor; }
.badge.new { color: var(--accent); }
.badge.revived { color: #6a8dff; }
.badge.rebuilt { color: #e6a53a; }
.badge.broken { color: var(--danger); background: var(--danger-bg); border-color: var(--danger); }
.card .category { font-size: 10.5px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.card p.tagline { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 10px; flex-grow: 1; }
.card .taglist { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.card .taglist span { font-size: 10px; color: var(--text-dim); border: 1px solid var(--border); padding: 1px 5px; }
.card .cta { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.card .cta::after { content: " ->"; }
.empty { text-align: center; padding: 48px 20px; color: var(--text-dim); font-size: 13px; }
footer { border-top: 1px solid var(--border); padding: 24px 0 40px; }
footer p { color: var(--text-dim); font-size: 12px; margin: 0; }
footer p::before { content: "# "; }
2026-08-01 10:20:43 -04:00
2026-08-01 10:54:05 -04:00
/* ---------- Detail view ---------- */
.detail { display: none; }
.detail.active { display: block; }
.grid-view.hidden, .hero.hidden, .controls.hidden { display: none; }
.detail-banner {
2026-08-02 14:41:17 -04:00
padding: 36px 0 28px;
2026-08-01 10:54:05 -04:00
border-bottom: 1px solid var(--border);
}
.back-link {
2026-08-02 14:41:17 -04:00
display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
color: var(--text-dim); text-decoration: none; margin-bottom: 18px; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
}
.back-link::before { content: "< "; }
.back-link:hover { color: var(--accent); }
.detail-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-top h2 { font-size: clamp(20px, 3vw, 26px); margin: 0; font-weight: 700; }
.detail-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-dim); margin-bottom: 12px; }
.detail-tagline { font-size: 14px; color: var(--text-muted); max-width: 660px; line-height: 1.6; margin: 0 0 18px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.detail-tags span { font-size: 11px; color: var(--text-dim); border: 1px solid var(--border); padding: 2px 7px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
2026-08-01 10:54:05 -04:00
.detail-actions button, .detail-actions a {
2026-08-02 14:41:17 -04:00
font-size: 12.5px; font-weight: 700; padding: 9px 14px; border: 1px solid var(--border);
2026-08-01 10:54:05 -04:00
background: var(--bg-elevated); color: var(--text); text-decoration: none; cursor: pointer;
}
2026-08-02 14:41:17 -04:00
.detail-actions button.install { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.detail-actions a:hover, .detail-actions button:hover { border-color: var(--accent); }
2026-08-01 10:54:05 -04:00
2026-08-02 14:41:17 -04:00
.detail-body { padding: 28px 0 56px; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
2026-08-01 10:54:05 -04:00
@media (max-width: 720px) { .detail-body { grid-template-columns: 1fr; } }
2026-08-02 14:41:17 -04:00
.detail-section { margin-bottom: 28px; }
.detail-section h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); margin: 0 0 12px; }
.detail-section h4::before { content: "// "; }
.detail-section p { font-size: 13.5px; line-height: 1.7; color: var(--text); margin: 0 0 12px; white-space: pre-line; }
2026-08-01 10:54:05 -04:00
2026-08-02 14:41:17 -04:00
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { display: flex; gap: 8px; font-size: 13px; line-height: 1.55; }
.feature-list li::before { content: "+"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
2026-08-01 10:54:05 -04:00
2026-08-02 14:41:17 -04:00
.cmd-table { border: 1px solid var(--border); }
.cmd-row { padding: 10px 12px; border-bottom: 1px solid var(--border); }
2026-08-01 10:54:05 -04:00
.cmd-row:last-child { border-bottom: none; }
2026-08-02 14:41:17 -04:00
.cmd-row code { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.cmd-row span { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.side-card { background: var(--bg-elevated); border: 1px solid var(--border); padding: 14px; margin-bottom: 14px; }
.side-card h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-dim); margin: 0 0 8px; }
.side-card h5::before { content: "// "; }
.side-card p { font-size: 12.5px; line-height: 1.55; margin: 0; color: var(--text); }
.side-card.warn { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
2026-08-01 10:54:05 -04:00
.side-card.warn h5 { color: var(--danger); }
2026-08-02 14:41:17 -04:00
.authors-line { font-size: 12px; color: var(--text-muted); }
2026-08-01 10:54:05 -04:00
/* ---------- Command palette ---------- */
.palette-overlay {
2026-08-02 14:41:17 -04:00
position: fixed; inset: 0; background: rgba(5,6,5,0.6); backdrop-filter: blur(2px);
2026-08-01 10:54:05 -04:00
display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; z-index: 100;
}
.palette-overlay.open { display: flex; }
.palette {
width: min(560px, 92vw); background: var(--bg-elevated); border: 1px solid var(--border);
2026-08-02 14:41:17 -04:00
box-shadow: 0 20px 60px rgba(0,0,0,0.4); overflow: hidden;
2026-08-01 10:54:05 -04:00
}
.palette input {
2026-08-02 14:41:17 -04:00
width: 100%; border: none; background: transparent; color: var(--text); font-size: 15px; font-family: var(--mono);
padding: 16px 18px; border-bottom: 1px solid var(--border);
2026-08-01 10:54:05 -04:00
}
.palette input:focus { outline: none; }
2026-08-02 14:41:17 -04:00
.palette-results { max-height: 50vh; overflow-y: auto; padding: 6px; }
2026-08-01 10:54:05 -04:00
.palette-item {
2026-08-02 14:41:17 -04:00
display: flex; align-items: center; gap: 10px; padding: 9px 10px; cursor: pointer; font-size: 13px;
2026-08-01 10:54:05 -04:00
}
.palette-item[aria-selected="true"] { background: var(--bg-sunken); }
2026-08-02 14:41:17 -04:00
.palette-item .dot { width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }
2026-08-01 10:54:05 -04:00
.palette-item .name { font-weight: 600; }
2026-08-02 14:41:17 -04:00
.palette-item .cat { color: var(--text-dim); font-size: 11px; margin-left: auto; }
.palette-empty { padding: 18px; text-align: center; color: var(--text-dim); font-size: 12.5px; }
2026-08-01 10:20:43 -04:00
.toast {
2026-08-01 10:54:05 -04:00
position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(0);
2026-08-02 14:41:17 -04:00
background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 700; font-family: var(--mono);
padding: 9px 14px; opacity: 0; pointer-events: none;
2026-08-01 10:54:05 -04:00
transition: opacity 0.2s ease, transform 0.2s ease; z-index: 50;
2026-08-01 10:20:43 -04:00
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }
< / style >
< / head >
< body >
2026-08-01 10:54:05 -04:00
< header class = "hero" id = "hero" >
2026-08-02 14:41:17 -04:00
< div class = "wrap" >
< div class = "mark" > revenge-plugins< / div >
< h1 > Discord, < span class = "grad" > rebuilt on your terms.< / span > < / h1 >
< p class = "sub" > A hand-built collection of plugins for Revenge, the Discord Android client mod - rebuilt from scratch where the old ecosystem broke, net-new where nothing existed yet, confirmed against decompiled source and live device testing, not guessed.< / p >
2026-08-01 10:20:43 -04:00
< div class = "hero-links" >
< a class = "primary" href = "https://github.com/everestmcarthur/revenge-plugins" > GitHub repo< / a >
< a href = "https://github.com/revenge-mod/revenge-bundle" > About Revenge< / a >
< a href = "https://github.com/everestmcarthur/revenge-plugins/issues/new" > Report an issue< / a >
< / div >
< div class = "stats" id = "stats" aria-hidden = "true" > < / div >
< / div >
< / header >
2026-08-01 10:54:05 -04:00
< div class = "wrap grid-view" id = "gridView" >
2026-08-01 10:20:43 -04:00
< div class = "controls" id = "controls" >
2026-08-01 10:54:05 -04:00
< div class = "search-row" >
2026-08-02 14:41:17 -04:00
< input id = "search" class = "search" type = "search" placeholder = "search plugins... (or press /)" aria-label = "Search plugins" >
2026-08-01 10:54:05 -04:00
< span class = "kbd-hint" > < kbd > ⌘ < / kbd > < kbd > K< / kbd > < / span >
< / div >
2026-08-01 10:20:43 -04:00
< div class = "chips" id = "categoryChips" role = "group" aria-label = "Filter by category" > < / div >
< / div >
< main >
< p class = "count" id = "count" > < / p >
< div class = "grid" id = "grid" > < / div >
< div class = "empty" id = "empty" hidden > No plugins match your search.< / div >
< / main >
< / div >
2026-08-01 10:54:05 -04:00
< div class = "detail" id = "detailView" > < / div >
2026-08-01 10:20:43 -04:00
< footer >
< div class = "wrap" >
2026-08-02 14:41:17 -04:00
< p > built with < a href = "https://github.com/everestmcarthur/revenge-plugins" > revenge-plugins< / a > - not affiliated with Discord or the Revenge project - install links point to this site< / p >
2026-08-01 10:20:43 -04:00
< / div >
< / footer >
< div class = "toast" id = "toast" role = "status" aria-live = "polite" > < / div >
2026-08-01 10:54:05 -04:00
< div class = "palette-overlay" id = "paletteOverlay" >
< div class = "palette" >
< input id = "paletteInput" type = "text" placeholder = "Jump to a plugin…" aria-label = "Jump to a plugin" >
< div class = "palette-results" id = "paletteResults" > < / div >
< / div >
< / div >
2026-08-01 10:20:43 -04:00
< script >
(function () {
var STATUS_LABEL = { new: "New", revived: "Revived", rebuilt: "Rebuilt" };
var state = { plugins: [], query: "", category: "All" };
var grid = document.getElementById("grid");
var empty = document.getElementById("empty");
var count = document.getElementById("count");
var chipsEl = document.getElementById("categoryChips");
var searchEl = document.getElementById("search");
var toastEl = document.getElementById("toast");
var statsEl = document.getElementById("stats");
2026-08-01 10:54:05 -04:00
var heroEl = document.getElementById("hero");
var controlsEl = document.getElementById("controls");
var gridViewEl = document.getElementById("gridView");
var detailViewEl = document.getElementById("detailView");
var paletteOverlay = document.getElementById("paletteOverlay");
var paletteInput = document.getElementById("paletteInput");
var paletteResults = document.getElementById("paletteResults");
2026-08-01 10:20:43 -04:00
2026-08-01 10:54:05 -04:00
function escapeHtml(str) {
return String(str).replace(/[& < >"']/g, function (c) {
return { "& ": "& ", "< ": "< ", ">": "> ", '"': "" ", "'": "' " }[c];
});
2026-08-01 10:20:43 -04:00
}
function showToast(msg) {
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(showToast._t);
showToast._t = setTimeout(function () { toastEl.classList.remove("show"); }, 1600);
}
function copyToClipboard(text) {
if (navigator.clipboard & & navigator.clipboard.writeText) {
return navigator.clipboard.writeText(text);
}
var ta = document.createElement("textarea");
ta.value = text;
ta.style.position = "fixed";
ta.style.opacity = "0";
document.body.appendChild(ta);
ta.select();
try { document.execCommand("copy"); } catch (e) {}
document.body.removeChild(ta);
return Promise.resolve();
}
2026-08-01 10:54:05 -04:00
function installButton(url, extraStyle) {
var btn = document.createElement("button");
btn.className = "install";
btn.textContent = "Install";
if (extraStyle) btn.setAttribute("style", extraStyle);
btn.addEventListener("click", function (e) {
e.stopPropagation();
copyToClipboard(url).then(function () {
var original = btn.textContent;
btn.textContent = "Copied!";
showToast("Install link copied - paste it into Revenge's plugin browser");
setTimeout(function () { btn.textContent = original; }, 1400);
});
});
return btn;
}
function countUp(el, target) {
var start = 0;
2026-08-02 14:41:17 -04:00
var duration = 500;
2026-08-01 10:54:05 -04:00
var startTime = null;
function step(ts) {
if (!startTime) startTime = ts;
var progress = Math.min((ts - startTime) / duration, 1);
var eased = 1 - Math.pow(1 - progress, 3);
el.textContent = Math.round(start + (target - start) * eased);
if (progress < 1 ) requestAnimationFrame ( step ) ;
}
requestAnimationFrame(step);
}
function renderStats() {
var categories = Array.from(new Set(state.plugins.map(function (p) { return p.category; })));
var revivedCount = state.plugins.filter(function (p) { return p.status !== "new"; }).length;
2026-08-02 14:41:17 -04:00
var brokenCount = state.plugins.filter(function (p) { return p.broken; }).length;
2026-08-01 10:54:05 -04:00
var stats = [
{ value: state.plugins.length, label: "plugins" },
{ value: categories.length, label: "categories" },
{ value: revivedCount, label: "revived or rebuilt" }
];
2026-08-02 14:41:17 -04:00
if (brokenCount > 0) stats.push({ value: brokenCount, label: "currently broken" });
2026-08-01 10:54:05 -04:00
statsEl.innerHTML = stats.map(function (s, i) {
return '< div > < div class = "stat-value" id = "stat-' + i + '" > 0< / div > < div class = "stat-label" > ' + s.label + '< / div > < / div > ';
}).join("");
stats.forEach(function (s, i) {
countUp(document.getElementById("stat-" + i), s.value);
});
}
/* ---------- Grid ---------- */
2026-08-01 10:20:43 -04:00
function render() {
var q = state.query.trim().toLowerCase();
var filtered = state.plugins.filter(function (p) {
var matchesCategory = state.category === "All" || p.category === state.category;
2026-08-02 14:41:17 -04:00
var haystack = (p.name + " " + p.description + " " + p.category + " " + (p.tagline || "") + " " + (p.tags || []).join(" ")).toLowerCase();
2026-08-01 10:54:05 -04:00
var matchesQuery = !q || haystack.indexOf(q) !== -1;
2026-08-01 10:20:43 -04:00
return matchesCategory & & matchesQuery;
});
count.textContent = filtered.length + " plugin" + (filtered.length === 1 ? "" : "s");
grid.innerHTML = "";
empty.hidden = filtered.length !== 0;
filtered.forEach(function (p) {
2026-08-01 10:54:05 -04:00
var card = document.createElement("button");
card.type = "button";
2026-08-02 14:41:17 -04:00
card.className = "card" + (p.broken ? " is-broken" : "");
2026-08-01 10:20:43 -04:00
card.innerHTML =
'< div class = "card-top" > ' +
'< h3 > ' + escapeHtml(p.name) + '< / h3 > ' +
2026-08-02 14:41:17 -04:00
'< span class = "badge ' + (p.broken ? " broken " : p . status ) + ' " > ' + (p.broken ? "Broken" : (STATUS_LABEL[p.status] || p.status)) + '< / span > ' +
2026-08-01 10:20:43 -04:00
'< / div > ' +
'< div class = "category" > ' + escapeHtml(p.category) + '< / div > ' +
2026-08-02 14:41:17 -04:00
'< p class = "tagline" > ' + escapeHtml(p.broken ? p.broken.reason : (p.tagline || p.description)) + '< / p > ' +
(p.tags & & p.tags.length ? '< div class = "taglist" > ' + p.tags.map(function (t) { return '< span > ' + escapeHtml(t) + '< / span > '; }).join("") + '< / div > ' : '') +
'< div class = "cta" > view details< / div > ';
2026-08-01 10:54:05 -04:00
card.addEventListener("click", function () {
2026-08-01 11:00:23 -04:00
navigateToPlugin(p.id);
2026-08-01 10:20:43 -04:00
});
grid.appendChild(card);
});
}
function renderChips() {
var categories = ["All"].concat(
Array.from(new Set(state.plugins.map(function (p) { return p.category; }))).sort()
);
chipsEl.innerHTML = "";
categories.forEach(function (cat) {
var chip = document.createElement("button");
chip.className = "chip";
chip.textContent = cat;
chip.setAttribute("aria-pressed", String(cat === state.category));
chip.addEventListener("click", function () {
state.category = cat;
Array.from(chipsEl.children).forEach(function (c) {
c.setAttribute("aria-pressed", String(c === chip));
});
render();
});
chipsEl.appendChild(chip);
});
}
searchEl.addEventListener("input", function (e) {
state.query = e.target.value;
render();
});
window.addEventListener("scroll", function () {
2026-08-01 10:54:05 -04:00
controlsEl.classList.toggle("stuck", window.scrollY > 8);
2026-08-01 10:20:43 -04:00
});
2026-08-01 10:54:05 -04:00
/* ---------- Detail view ---------- */
function renderDetail(p) {
var featuresHtml = (p.features || []).map(function (f) {
2026-08-02 14:41:17 -04:00
return '< li > ' + escapeHtml(f) + '< / li > ';
2026-08-01 10:54:05 -04:00
}).join("");
var commandsHtml = (p.commands & & p.commands.length)
? '< div class = "detail-section" > < h4 > Commands< / h4 > < div class = "cmd-table" > ' +
p.commands.map(function (c) {
return '< div class = "cmd-row" > < code > ' + escapeHtml(c.cmd) + '< / code > < span > ' + escapeHtml(c.desc) + '< / span > < / div > ';
}).join("") +
'< / div > < / div > '
: "";
var howItWorksHtml = p.howItWorks
? '< div class = "detail-section" > < h4 > How it works< / h4 > < p > ' + escapeHtml(p.howItWorks) + '< / p > < / div > '
: "";
var featuresSection = featuresHtml
? '< div class = "detail-section" > < h4 > Features< / h4 > < ul class = "feature-list" > ' + featuresHtml + '< / ul > < / div > '
: "";
2026-08-02 14:41:17 -04:00
var tagsHtml = (p.tags & & p.tags.length)
? '< div class = "detail-tags" > ' + p.tags.map(function (t) { return '< span > ' + escapeHtml(t) + '< / span > '; }).join("") + '< / div > '
: "";
var brokenNote = p.broken
? '< div class = "side-card warn" > < h5 > Currently broken< / h5 > < p > ' + escapeHtml(p.broken.reason) + '< / p > < / div > '
: "";
2026-08-01 10:54:05 -04:00
detailViewEl.innerHTML =
2026-08-02 14:41:17 -04:00
'< div class = "detail-banner" > ' +
2026-08-01 10:54:05 -04:00
'< div class = "wrap" > ' +
2026-08-02 14:41:17 -04:00
'< button class = "back-link" id = "backLink" > all plugins< / button > ' +
2026-08-01 10:54:05 -04:00
'< div class = "detail-top" > ' +
'< h2 > ' + escapeHtml(p.name) + '< / h2 > ' +
2026-08-02 14:41:17 -04:00
'< span class = "badge ' + (p.broken ? " broken " : p . status ) + ' " > ' + (p.broken ? "Broken" : (STATUS_LABEL[p.status] || p.status)) + '< / span > ' +
2026-08-01 10:54:05 -04:00
'< / div > ' +
'< div class = "detail-category" > ' + escapeHtml(p.category) + '< / div > ' +
'< p class = "detail-tagline" > ' + escapeHtml(p.tagline || p.description) + '< / p > ' +
2026-08-02 14:41:17 -04:00
tagsHtml +
2026-08-01 10:54:05 -04:00
'< div class = "detail-actions" id = "detailActions" > < / div > ' +
'< / div > ' +
'< / div > ' +
'< div class = "wrap" > ' +
2026-08-02 14:41:17 -04:00
'< div class = "detail-body" > ' +
2026-08-01 10:54:05 -04:00
'< div > ' + howItWorksHtml + featuresSection + commandsHtml + '< / div > ' +
'< div > ' +
2026-08-02 14:41:17 -04:00
brokenNote +
2026-08-01 10:54:05 -04:00
(p.note ? '< div class = "side-card" > < h5 > Backstory< / h5 > < p > ' + escapeHtml(p.note) + '< / p > < / div > ' : "") +
(p.limitations ? '< div class = "side-card warn" > < h5 > Known limitations< / h5 > < p > ' + escapeHtml(p.limitations) + '< / p > < / div > ' : "") +
(p.authors & & p.authors.length ? '< div class = "side-card" > < h5 > Author< / h5 > < p class = "authors-line" > ' + escapeHtml(p.authors.join(", ")) + '< / p > < / div > ' : "") +
'< / div > ' +
'< / div > ' +
'< / div > ';
var actions = document.getElementById("detailActions");
actions.appendChild(installButton(p.installUrl));
var sourceLink = document.createElement("a");
sourceLink.href = p.sourceUrl;
sourceLink.target = "_blank";
sourceLink.rel = "noopener";
sourceLink.textContent = "Source";
actions.appendChild(sourceLink);
var issueLink = document.createElement("a");
issueLink.href = p.issueUrl;
issueLink.target = "_blank";
issueLink.rel = "noopener";
issueLink.textContent = "Report issue";
actions.appendChild(issueLink);
document.getElementById("backLink").addEventListener("click", function () {
2026-08-01 11:00:23 -04:00
history.pushState(null, "", "/");
2026-08-01 10:54:05 -04:00
showGrid();
});
}
function showDetail(id) {
var plugin = state.plugins.filter(function (p) { return p.id === id; })[0];
if (!plugin) { showGrid(); return; }
renderDetail(plugin);
heroEl.classList.add("hidden");
controlsEl.classList.add("hidden");
gridViewEl.classList.add("hidden");
detailViewEl.classList.add("active");
window.scrollTo(0, 0);
document.title = plugin.name + " · revenge-plugins";
}
function showGrid() {
heroEl.classList.remove("hidden");
controlsEl.classList.remove("hidden");
gridViewEl.classList.remove("hidden");
detailViewEl.classList.remove("active");
document.title = "revenge-plugins";
}
2026-08-01 11:00:23 -04:00
/**
* Each plugin has a real static page at /< id > / (a copy of this same file), so a direct visit or
* refresh works without any server-side routing - this just avoids a full reload when navigating
* from within an already-loaded page.
*/
function navigateToPlugin(id) {
history.pushState(null, "", "/" + id + "/");
showDetail(id);
}
function routeFromLocation() {
var match = location.pathname.match(/^\/([\w-]+)\/?$/);
if (match & & match[1]) {
2026-08-01 10:54:05 -04:00
showDetail(match[1]);
} else {
showGrid();
}
}
2026-08-01 11:00:23 -04:00
window.addEventListener("popstate", routeFromLocation);
2026-08-01 10:54:05 -04:00
/* ---------- Command palette ---------- */
var paletteIndex = 0;
var paletteMatches = [];
function openPalette() {
paletteOverlay.classList.add("open");
paletteInput.value = "";
renderPalette("");
setTimeout(function () { paletteInput.focus(); }, 0);
}
function closePalette() {
paletteOverlay.classList.remove("open");
}
function renderPalette(q) {
q = q.trim().toLowerCase();
paletteMatches = state.plugins.filter(function (p) {
return !q || (p.name + " " + p.category).toLowerCase().indexOf(q) !== -1;
});
paletteIndex = 0;
if (!paletteMatches.length) {
paletteResults.innerHTML = '< div class = "palette-empty" > No matches< / div > ';
return;
}
paletteResults.innerHTML = paletteMatches.map(function (p, i) {
2026-08-02 14:41:17 -04:00
return '< div class = "palette-item" data-idx = "' + i + '" aria-selected = "' + (i === 0) + '" > ' +
2026-08-01 10:54:05 -04:00
'< span class = "dot" > < / span > < span class = "name" > ' + escapeHtml(p.name) + '< / span > < span class = "cat" > ' + escapeHtml(p.category) + '< / span > ' +
'< / div > ';
}).join("");
Array.from(paletteResults.children).forEach(function (el, i) {
el.addEventListener("click", function () { selectPaletteItem(i); });
});
}
function updatePaletteSelection() {
Array.from(paletteResults.children).forEach(function (el, i) {
el.setAttribute("aria-selected", String(i === paletteIndex));
});
var active = paletteResults.children[paletteIndex];
if (active) active.scrollIntoView({ block: "nearest" });
}
function selectPaletteItem(i) {
var plugin = paletteMatches[i];
if (!plugin) return;
closePalette();
2026-08-01 11:00:23 -04:00
navigateToPlugin(plugin.id);
2026-08-01 10:54:05 -04:00
}
paletteInput.addEventListener("input", function (e) { renderPalette(e.target.value); });
paletteOverlay.addEventListener("click", function (e) { if (e.target === paletteOverlay) closePalette(); });
paletteInput.addEventListener("keydown", function (e) {
if (e.key === "ArrowDown") { e.preventDefault(); paletteIndex = Math.min(paletteIndex + 1, paletteMatches.length - 1); updatePaletteSelection(); }
else if (e.key === "ArrowUp") { e.preventDefault(); paletteIndex = Math.max(paletteIndex - 1, 0); updatePaletteSelection(); }
else if (e.key === "Enter") { e.preventDefault(); selectPaletteItem(paletteIndex); }
else if (e.key === "Escape") { closePalette(); }
});
document.addEventListener("keydown", function (e) {
var isTyping = document.activeElement & & (document.activeElement.tagName === "INPUT" || document.activeElement.tagName === "TEXTAREA");
if ((e.metaKey || e.ctrlKey) & & e.key.toLowerCase() === "k") {
e.preventDefault();
openPalette();
return;
}
if (e.key === "/" & & !isTyping) {
e.preventDefault();
openPalette();
return;
}
if (e.key === "Escape" & & paletteOverlay.classList.contains("open")) {
closePalette();
}
});
/* ---------- Boot ---------- */
2026-08-01 11:00:23 -04:00
fetch("https://rp.jarviscli.dev/plugins-data.json")
2026-08-01 10:20:43 -04:00
.then(function (r) { return r.json(); })
.then(function (data) {
state.plugins = data;
renderStats();
renderChips();
render();
2026-08-01 11:00:23 -04:00
routeFromLocation();
2026-08-01 10:20:43 -04:00
})
.catch(function () {
count.textContent = "";
empty.hidden = false;
empty.textContent = "Couldn't load the plugin list - try refreshing.";
});
})();
< / script >
< / body >
< / html >