Buscador de complementos para Firefox
  • Extensiones
  • Temas
    • para Firefox
    • Diccionarios y paquetes de idiomas
    • Otros sitios de navegadores
    • Complementos para Android
Iniciar sesión
Vista previa de Discover Less

Discover Less por Matheus Araujo

A simple extension that hides the 'Discover More' on Twitter and 'mute/block' messages

0 (0 reviews)0 (0 reviews)
1 User1 User
Necesitarás Firefox para usar esta extensión
Descarga Firefox y obtiene la extensión
Descargar archivo

Metadata de la extensión

Sobre esta extensión
Extension for reducing distractions on X 🐦

I created a simple Chrome extension to avoid distractions with "Discover More" on X. For those who have difficulty keeping their focus, like me, it disturbs them so much.

The extension occults the "Discover More" function, improving the browsing experience.
Developer comments
How it Works
  1. The script defines an array called blockedWords containing phrases used for filtering.
  2. The removeDiscoverMore function performs the core removal logic:
    • It selects all elements with the data-testid="cellInnerDiv" attribute.
    • Iterates through these elements in reverse order for proper removal.
    • For each element, it checks the heading text for any blocked word.
    • If a blocked word is found, the function removes the current element and all its following siblings with the same test ID.
  3. The removeElements function is a helper function used to remove elements efficiently:
    • It finds the index of the element within its parent node.
    • It hides all following siblings using display: none instead of complete removal to avoid triggering Twitter's re-rendering.
  4. The script calls removeDiscoverMore initially to remove existing elements.
  5. Finally, a MutationObserver is created to monitor the DOM for changes. Whenever the DOM structure changes (e.g., new elements are added), the removeDiscoverMore function is re-executed to remove any newly added elements containing blocked phrases.
Rated 0 by 0 reviewers
Inicia sesión para evaluar esta extensión
Todavía no hay valoraciones

Se guardó la valoración

5
0
4
0
3
0
2
0
1
0
Aún no hay revisiones
Permissions and dataSaber más

Permisos requeridos:

  • Acceder a tus datos para twitter.com
Más información
Enlaces del complemento
  • Página de inicio
  • Ayuda del sitio
  • Correo de ayuda
Versión
1.0.0
Tamaño
42,34 KB
Última actualización
hace un año (3 de abr. de 2024)
Categorías relacionadas
  • Privacidad y seguridad
  • Social y comunicación
Licencia
Apache License 2.0
Historial de versiones
  • Ver todas las versiones
Etiquetas
  • content blocker
  • social media
  • twitter
Añadir a la colección
Informar sobre este complemento
Más extensiones de Matheus Araujo
  • Todavía no hay valoraciones

  • Todavía no hay valoraciones

  • Todavía no hay valoraciones

  • Todavía no hay valoraciones

  • Todavía no hay valoraciones

  • Todavía no hay valoraciones

Ir a la página de inicio de Mozilla

Complementos

  • Acerca de
  • Blog de complementos de Firefox
  • Taller de extensiones
  • Central del desarrollador
  • Normativas para desarrolladores
  • Blog de la comunidad
  • Foro
  • Informar de un error
  • Guía de revisión

Navegadores

  • Desktop
  • Mobile
  • Enterprise

Productos

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacidad
  • Cookies
  • Legal

A menos que se indique lo contrario, el contenido de este sitio está licenciado bajo la licencia Creative Commons Reconocimiento Compartir-Igual v3.0 o una versión posterior.