Skip to content

Instantly share code, notes, and snippets.

View PEZ's full-sized avatar
🎯
Focusing

Peter Strömberg PEZ

🎯
Focusing
View GitHub Profile
@PEZ
PEZ / matrix.cljs
Last active September 25, 2026 15:38
The Matrix's digital rain, frosted so the page shows through. Click, tap, or press a key to leave.
{:epupp/script-name "pez/matrix.cljs"
:epupp/description "The Matrix's digital rain, frosted so the page shows through. Click, tap, or press a key to leave."
:epupp/run-at "document-idle"}
(ns pez.matrix)
(def glyphs
"Half-width katakana, digits and a few symbols, like the code in the film."
"\uFF71\uFF72\uFF73\uFF74\uFF75\uFF76\uFF77\uFF78\uFF79\uFF7A\uFF7B\uFF7C\uFF7D\uFF7E\uFF7F\uFF80\uFF81\uFF82\uFF83\uFF84\uFF85\uFF86\uFF87\uFF88\uFF89\uFF8A\uFF8B\uFF8C\uFF8D\uFF8E\uFF8F\uFF90\uFF91\uFF92\uFF93\uFF94\uFF95\uFF96\uFF97\uFF98\uFF99\uFF9A\uFF9B\uFF9C\uFF9D0123456789:.=*+-<>\u00A6")
@PEZ
PEZ / gmail_yellow.cljs
Last active September 25, 2026 09:13
Yellow stars and importance markers on Gmail
{:epupp/script-name "pez/gmail_yellow.cljs"
:epupp/description "Yellow stars and importance markers on Gmail"
:epupp/auto-run-match "https://mail.google.com/*"}
(ns pez.gmail-yellow)
(def yellow-css
".T-KT.Uieduc,
.vOtjfb.Ki81zb,
.pH.Uieduc {
@PEZ
PEZ / calva_io_darkmode.cljs
Created September 25, 2026 09:09
Darkmode toggle for calva.io
{:epupp/script-name "pez/calva_io_darkmode.cljs"
:epupp/description "Darkmode toggle for calva.io"
:epupp/auto-run-match "https://calva.io*"}
(ns pez.calva-io-darkmode)
(defonce _inject-dark-css
(let [style-el (js/document.createElement "style")]
(set! (.-id style-el) "epupp-darkmode")
(set! (.-textContent style-el)
@PEZ
PEZ / youtube_finder.cljs
Last active September 25, 2026 09:13
Search YouTube captions and seek to matches
{:epupp/script-name "pez/youtube_finder.cljs"
:epupp/auto-run-match "https://www.youtube.com/watch*"
:epupp/description "Search YouTube captions and seek to matches"
:epupp/inject ["scittle://replicant.js"
"epupp://epupp/ui.cljs"]}
(ns pez.youtube-finder
(:require [epupp.ui :as ui]
[replicant.dom :as r]))
@PEZ
PEZ / page_choices.cljs
Last active September 27, 2026 13:03
See the A/B experiments on this page, and change the ones this visit is in.
{:epupp/script-name "pez/page_choices.cljs"
:epupp/auto-run-match "*"
:epupp/description "See the Statsig switches on this page, and override them for this visit."
:epupp/run-at "document-start"
:epupp/inject ["scittle://replicant.js"
"epupp://epupp/ui.cljs"]}
(ns pez.page-choices
(:require [clojure.string :as string]
[clojure.walk :as walk]
{:epupp/script-name "pez/test_lib.cljs"
:epupp/description "Test library for injection"
:epupp/library? true}
(ns pez.test-lib)
(defn greeting [who]
(str "Hello from pez.test-lib, " who "!"))
{:epupp/script-name "pez/linkedin_squirrel.cljs"
:epupp/auto-run-match "https://www.linkedin.com/*"
:epupp/description "LinkedIn Squirrel. Hoards posts you engage with on LinkedIn so that you can easily find them later"
:epupp/run-at "document-idle"
:epupp/inject ["scittle://replicant.js"
"epupp://epupp.ui.cljs"]}
(ns pez.linkedin-squirrel
(:require [clojure.edn]
[clojure.string :as string]
{:epupp/script-name "pez/element_printing.cljs"
:epupp/description "Isolate any element on a web page for clean printing"}
(ns pez.element-printing)
;; --- State ---
{:epupp/script-name "pez/selector_inspector.cljs"
:epupp/description "Prints elements and their selector to the console. Run to start. Run again to Stop."}
42
(ns selector-inspector
(:require [clojure.string :as string]))
;; Build a selector path for an element
(defn element->selector [elem]
(js/console.log "External code from gist evaluated!")