Javascript
Posts tagged with Javascript.
09 Jun 2026
JavaScript sem trair a premissa
Quem acompanha este site sabe que ele tem uma premissa inegociável: eu não
rastreio quem visita. Não tem Google Analytics, não tem pixel, não tem cookie
de terceiro, não tem fingerprinting. Eu não sei quem visitou, não sei quantas
pessoas visitaram, não sei de onde vieram. E gosto que seja assim.
Durante muito tempo isso andou junto de outra regra implícita: nada de
JavaScript. Mas o site hoje roda dois scripts. O primeiro é o
toggle de tema claro/escuro,
que chegou faz pouco tempo. O segundo, mais recente ainda, são as taglines
aleatórias no estilo BBS que aparecem abaixo do cabeçalho. Este post existe pra
explicar por que isso não fere a premissa e, de quebra, contar uma faxina
que fiz na estrutura do site.
09 Jun 2026
JavaScript without betraying the premise
If you follow this site, you know it has one non-negotiable premise: I don’t
track visitors. No Google Analytics, no pixels, no third-party cookies, no
fingerprinting. I don’t know who visited, I don’t know how many people visited,
I don’t know where anyone came from. And I like it that way.
For a long time that premise traveled together with an implicit rule: no
JavaScript. But the site now runs two scripts. The first is the
light/dark theme toggle,
which arrived a short while ago. The second, newer still, is the set of random
BBS-style taglines that show up below the header. This post exists to explain
why that doesn’t break the premise, and to share some housekeeping I did on
the site’s structure while I was at it.
22 May 2026
I added a theme toggle to the site. You can now switch between the dark theme, which has been the default since forever, and a light one with a vaporwave aesthetic: warm cream background, dark teal accents, readable blue on paper.
Before you picture me pulling in a bunch of dependencies: no. There’s no React, no Alpine.js, nothing that needed npm install. It’s literally fewer than twenty lines of vanilla JavaScript, split into two parts.
22 May 2026
Adicionei um toggle de tema no site. Agora você pode escolher entre o tema escuro, que é o padrão desde sempre, e um tema claro com estética vaporwave: fundo creme, acentos em teal escuro, azul legível em cima de papel.
Antes de você imaginar que eu saí enchendo isso de dependência: não. Não tem React, não tem Alpine.js, não tem nada que precisasse de npm install. São literalmente menos de vinte linhas de JavaScript puro, divididas em duas partes.