Add-ons voor Firefox Browser
  • Extensies
  • Thema’s
    • voor Firefox
    • Woordenboeken en taalpakketten
    • Websites voor andere browsers
    • Add-ons voor Android
Aanmelden
Voorbeeld van Discover Less

Discover Less door Matheus Araujo

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

0 (0 reviews)0 (0 reviews)
1 gebruiker1 gebruiker
U hebt Firefox nodig om deze extensie te gebruiken
Firefox downloaden en de extensie ontvangen
Bestand downloaden

Metagegevens van extensie

Over deze extensie
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.
Ontwikkelaarsopmerkingen
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.
Met 0 gewaardeerd door 0 beoordelaars
Meld u aan om deze extensie te waarderen
Er zijn nog geen waarderingen

Sterrenwaardering opgeslagen

5
0
4
0
3
0
2
0
1
0
Nog geen beoordelingen
Toestemmingen en gegevensMeer info

Vereiste machtigingen:

  • Uw gegevens voor twitter.com benaderen
Meer informatie
Add-on-koppelingen
  • Startpagina
  • Ondersteuningswebsite
  • E-mailadres voor ondersteuning
Versie
1.0.0
Grootte
42,34 KB
Laatst bijgewerkt
één jaar geleden (3 apr. 2024)
Verwante categorieën
  • Privacy en beveiliging
  • Sociaal en communicatie
Licentie
Apache License 2.0
Versiegeschiedenis
  • Alle versies bekijken
Labels
  • content blocker
  • social media
  • twitter
Toevoegen aan collectie
Deze add-on rapporteren
Meer extensies van Matheus Araujo
  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

Naar Mozilla’s startpagina

Add-ons

  • Over
  • Firefox-add-onsblog
  • Extensieworkshop
  • Ontwikkelaarshub
  • Ontwikkelaarsbeleid
  • Gemeenschapsblog
  • Forum
  • Een bug melden
  • Beoordelingsrichtlijnen

Browsers

  • Desktop
  • Mobile
  • Enterprise

Producten

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

Tenzij anders vermeld, is op de inhoud van deze website de Creative Commons Attribution Share-Alike License v3.0 of latere versie van toepassing.