Threads: feed Siguiendo por defecto
Cambia automáticamente el feed de inicio de «Para ti» a «Siguiendo» al cargar la página.
Código para copiar
// Switch the home feed from "For you" to "Following" automatically
function pickFollowing() {
if (location.pathname !== '/' && !/^\/\?/.test(location.pathname + location.search)) return;
const tabs = document.querySelectorAll('[role="tab"], [role="menuitem"]');
for (const t of tabs) {
const label = (t.textContent || '').trim().toLowerCase();
if ((label === 'following' || label === 'obserwowani' || label === 'abonnements') &&
t.getAttribute('aria-selected') !== 'true') {
t.click();
return;
}
}
}
let done = false;
function tryOnce() { if (!done) { pickFollowing(); } }
tryOnce();
const obs = new MutationObserver(() => { if (!done) tryOnce(); });
obs.observe(document.documentElement, { childList: true, subtree: true });
setTimeout(() => { done = true; obs.disconnect(); }, 8000);
Cómo usar este ejemplo
- Copia el código con el botón de arriba.
- Instala JustZix (2 minutos) y abre la extensión en la página de destino.
- Añade una nueva regla que coincida con esa página.
- Pega el código en el panel JavaScript de la regla y guarda — se ejecuta en cada visita a la página.
Valora este ejemplo
Sin valoraciones — sé el primero.