JSNotify
JSNotify is a Python script designed to monitor JavaScript files in a specified directory for changes. This tool can be used by developers and security professionals to keep track of modifications in JavaScript files, ensuring the integrity and security of web applications.
Install / Use
/learn @Ibrahim-sec/JSNotifyREADME
JSNotify
This script monitors specified JavaScript files for changes. When a change is detected, it sends a notification via Telegram with a detailed comparison of the changes.
Features
- Monitors JavaScript files for changes
- Sends notifications through Telegram with detailed change logs
- Highlights significant changes for easy identification
Prerequisites
Before you begin, ensure you have met the following requirements:
- Python 3.x installed on your system
- A Telegram bot and chat ID (Instructions below on how to obtain these)
- Clone the repository:
git clone https://github.com/leetIbrahim/JSNotify.git - Install the required Python packages:
pip install -r requirements.txt
Configuration
- Create a .env file in the root directory of the project with the following content:
TELEGRAM_TOKEN=[Your_Telegram_Bot_Token] TELEGRAM_CHAT_ID=[Your_Telegram_Chat_ID]
Replace [Your_Telegram_Bot_Token] and [Your_Telegram_Chat_ID] with your actual Telegram bot token and chat ID.
- To obtain a Telegram bot token and chat ID , follow the instructions provided here.
Usage
-
Prepare a text file containing the URLs of the JavaScript files you want to monitor, one URL per line.
-
Run the script and follow the prompts:
python3 monitor.py -
Enter the path to your file containing the URLs when prompted.
https://example.com/main.js https://example.com/app.js -
The script will monitor these URLs and send notifications via Telegram if any changes are detected.
Example Notification
Below is an example of what the notification looks like:

Follow me on Twitter @leetibrahim for updates.
Related Skills
vue-3d-experience-skill
A comprehensive learning roadmap for mastering 3D Creative Development using Vue 3, Nuxt, and TresJS.
orbit-planning
O.R.B.I.T. - strategic project planning before you build. Objective, Requirements, Blueprint, Implementation Roadmap, Track.
next
A beautifully designed, floating Pomodoro timer that respects your workspace.
roadmap
A beautifully designed, floating Pomodoro timer that respects your workspace.
