Skip to content

A script I told Claude to write for me, SubhanAllah! Protects my eyes from behayayi, makes me more efficient and responsible, helps me make informed choices and avoid infinite scrolling, and ultimately makes me more productive.

Notifications You must be signed in to change notification settings

kq1231/youtube_thumbnail_remover_script_violent_monkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

YouTube Image Blocker - Preserving Haya

The True Purpose: Protecting Our Haya

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.

Ahadith from Our Beautiful Prophet ﷺ

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)

What This Script Does

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

Installation

  1. Install a userscript manager like Violentmonkey or Tampermonkey
  2. Copy the script from youtube_behayayi_remover.js
  3. Create a new userscript and paste the content
  4. Save and enable the script

Technical Features

  • 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

Remember

"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.

Contributing

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.

About

A script I told Claude to write for me, SubhanAllah! Protects my eyes from behayayi, makes me more efficient and responsible, helps me make informed choices and avoid infinite scrolling, and ultimately makes me more productive.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published