Doplnky pre prehliadač Firefox
  • Rozšírenia
  • Témy vzhľadu
    • Pre Firefox
    • Slovníky a jazykové balíky
    • Stránky ostatných prehliadačov
    • Doplnky pre Android
Prihlásiť sa
Náhľad témy Discover Less

Discover Less Autor: Matheus Araujo

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

0 (0 reviews)0 (0 reviews)
1 používateľ1 používateľ
Na použitie tohto rozšírenia budete potrebovať Firefox
Stiahnuť Firefox a získať rozšírenie
Stiahnuť súbor

Metadáta rozšírenia

O tomto rozšírení
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.
Komentáre vývojára
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.
Hodnotené 0 od 0 recenzentov
Ak chcete ohodnotiť toto rozšírenie, musíte sa prihlásiť
Doplnok zatiaľ nie je ohodnotený

Hodnotenie bolo uložené

5
0
4
0
3
0
2
0
1
0
Zatiaľ žiadne recenzie
Povolenia a údajeĎalšie informácie

Požadované oprávnenia:

  • Pristupovať k údajom pre twitter.com
Ďalšie informácie
Odkazy doplnku
  • Domovská stránka
  • Stránka podpory
  • E‑mail podpory
Verzia
1.0.0
Veľkosť
42,34 kB
Posledná aktualizácia
pred rokom (3. apr 2024)
Príbuzné kategórie
  • Súkromie a bezpečnosť
  • Sociálne siete a komunikácia
Licencia
Apache License 2.0
História verzií
  • Zobraziť všetky verzie
Značky
  • content blocker
  • social media
  • twitter
Pridať do kolekcie
Nahlásiť tento doplnok
Ďalšie rozšírenia od autora Matheus Araujo
  • Doplnok zatiaľ nie je ohodnotený

  • Doplnok zatiaľ nie je ohodnotený

  • Doplnok zatiaľ nie je ohodnotený

  • Doplnok zatiaľ nie je ohodnotený

  • Doplnok zatiaľ nie je ohodnotený

  • Doplnok zatiaľ nie je ohodnotený

Prejsť na domovskú stránku Mozilly

Doplnky

  • O nás
  • Blog o doplnkoch pre Firefox
  • Workshop tvorby rozšírenia
  • Centrum pre vývojárov
  • Pravidlá pre vývojárov
  • Komunitný blog
  • Fórum
  • Nahlásiť chybu
  • Pokyny pre recenzentov

Prehliadače

  • Desktop
  • Mobile
  • Enterprise

Produkty

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Súkromie
  • Cookies
  • Právne informácie

Ak nie je uvedené inak, obsah tejto stránky je dostupný pod licenciou Creative Commons Attribution Share-Alike License v3.0 alebo jej akejkoľvek vyššej verzie.