This script is not primarily about productivity - it is about preserving Haya (حياء), which is an essential part of our Iman (faith). Our beloved Prophet Muhammad ﷺ taught us the importance of modesty and protecting our eyes from that which may lead us astray.
On Haya and Iman:
"Haya (modesty/shame) is part of Iman (faith)."
Our dearest beloved Prophet Muhammad (peace be upon him)
On Protecting Our Eyes:
"Allah fixed the very portion of adultery which a man will indulge in. There would be no escape from it. The adultery of the eye is the lustful look and the adultery of the ears is listening to voluptuous (song or talk) and the adultery of the tongue is licentious speech and the adultery of the hand is the lustful grip (embrace) and the adultery of the feet is to walk (to the place) where he intends to commit adultery and the heart yearns and desires which he may or may not put into effect."
Our dearest beloved Prophet Muhammad (peace be upon him)
On the Beauty of Haya:
"Every religion has a distinctive quality, and the distinctive quality of Islam is Haya (modesty/shame)."
(Sunan Ibn Majah)
On Lowering the Gaze:
"Tell the believing men to lower their gaze and guard their private parts. That is purer for them. Indeed, Allah is Acquainted with what they do."
(Quran 24:30)
This userscript helps protect our spiritual well-being by:
- Hiding thumbnails and images on YouTube that may contain inappropriate content
- Preserving video playback so you can still benefit from educational and beneficial content
- Supporting your journey toward maintaining Haya in the digital age
- Creating a barrier against the constant bombardment of imagery that can affect our hearts
- Install a userscript manager like Violentmonkey or Tampermonkey
- Copy the script from
youtube_behayayi_remover.js
- Create a new userscript and paste the content
- Save and enable the script
- Dynamically removes images and thumbnails as they load
- Uses MutationObserver for real-time content blocking
- Preserves main video player functionality
- Blocks background images and YouTube-specific thumbnail containers
- Lightweight and efficient implementation
"And whoever fears Allah - He will make for him a way out." - Quran 65:2
This tool is a means to help protect our spiritual state. The real change comes from within - from our intention (niyyah) to please Allah and follow the beautiful example of our Prophet ﷺ.
May Allah strengthen us all in maintaining our Haya and protecting our hearts. Ameen.
Note: While this script helps create a barrier, the ultimate protection comes from developing strong Iman, making du'a for protection, and constantly seeking Allah's guidance in our digital interactions.
If you wish to improve this script to better serve the Muslim community's needs for maintaining Haya online, contributions are welcome. Please ensure any changes align with Islamic principles of modesty and protection of the gaze.