Shtesa Shfletuesi Firefox
  • Zgjerime
  • Tema
    • për Firefox
    • Fjalorë & Paketa Gjuhësore
    • Sajte Shfletuesish të Tjerë
    • Shtesa për Android
Hyni
Paraparje e Discover Less

Discover Less nga 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
Që të përdorni këtë zgjerim, ju duhet Firefox-i
Shkarkoni Firefox-in dhe merrni zgjerimin
Shkarko kartelën

Tejtëdhëna Zgjerimi

Rreth këtij zgjerimi
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.
Komente nga zhvillues
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
Që të vlerësoni këtë zgjerim, bëni hyrjen
Ende pa vlerësime

Vlerësimi me yje u ruajt

5
0
4
0
3
0
2
0
1
0
Ende pa shqyrtime
Permissions and dataMësoni më tepër

Required permissions:

  • Të hyjë në të dhënat tuaja për twitter.com
Më tepër të dhëna
Lidhje shtese
  • Faqe hyrëse
  • Sajt asistence
  • Email Asistence
Version
1.0.0
Madhësi
42,34 KB
Përditësuar së fundi më
një vit më parë (3 Pri 2024)
Kategori të Afërta
  • Privatësi & Siguri
  • Shoqërore & Komunikim
Licencë
Apache License 2.0
Historik Versionesh
  • Shihini krejt versionet
Etiketa
  • content blocker
  • social media
  • twitter
Shtojeni në koleksion
Raportojeni këtë shtesë
Më tepër zgjerime nga Matheus Araujo
  • Ende pa vlerësime

  • Ende pa vlerësime

  • Ende pa vlerësime

  • Ende pa vlerësime

  • Ende pa vlerësime

  • Ende pa vlerësime

Shkoni te faqja hyrëse e Mozilla-s

Shtesa

  • Mbi
  • Blog Shtesash Firefox-i
  • Praktikë Mbi Zgjerime
  • Qendër Zhvilluesish
  • Rregulla Për Zhvilluesit
  • Blog Bashkësie
  • Forum
  • Njoftoni një të metë
  • Udhërrëfyes Shqyrtimesh

Shfletues

  • Desktop
  • Mobile
  • Enterprise

Produkte

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privatësi
  • Cookies
  • Ligjore

Hiq atje ku shënohet ndryshe, lënda e këtij sajti licencohet sipas licencës Creative Commons Attribution Share-Alike License v3.0 ose çfarëdo versioni të mëvonshëm.