PerfectTimeToSleepAndSalatTime

Calculate perfect sleep cycles based on Islamic prayer times (Salat) and the example of Prophet Dawud (David). Automatically detects user's city using IP address.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
MeGa Mosbah
Daily installs
0
Total installs
10
Ratings
0 0 0
Version
1.5
Created
2022-12-27
Updated
2025-03-15
Size
6.86 KB
License
N/A
Applies to
All sites

عَنْ عبدِاللَّهِ بنِ عَمْرو بنِ العَاصِ، رَضيَ اللَّه عَنْهُمَا أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ: أَحَبُّ الصَّلاةِ إِلَى اللَّهِ صَلاةُ دَاوُدَ، وَأَحبُّ الصيامِ إِلَى اللَّهِ صِيامُ دَاوُدَ، كانَ يَنَامُ نِصْفَ اللَّيْل وَيَقُومُ ثُلُثَهُ ويَنَامُ سُدُسَهُ وَيصومُ يَومًا وَيُفطِرُ يَومًا متفقٌ عليه.
The Messenger of Allah (ﷺ) said, "The Salat which is dearest to Allah is that of (Prophet) Dawud; and As-Saum (the fasting) which is dearest to Allah is that of (Prophet) Dawud. He used to sleep half the night, get up to perform Salat for one-third of it, then sleep through the remaining one-sixth of it; and he used to observe Saum on alternative days."

And from that i devise the night in a six part and By the way this chrometers is the perfect time to sleep ans a perfect time to wake-up.