Greasy Fork is available in English.

YouTube Ad Skipper and Detection Bypass (Enhanced with Notifications)

Bypass YouTube's ad blocker detection, skip ads seamlessly, and notify if the script needs updating or stops working.

Autor
Hunter Munsell
Denne inštalácií
11
Celkový počet inštalácií
467
Hodnotenie
2 0 2
Verzia
2.2
Vytvorené
05.12.2024
Aktualizované
22.12.2024
Licencia
neuvedené
Spustiť na

Script Description


1. Notification System
• A user-friendly notification system has been added to the script to provide real-time feedback.
• Types of Notifications:
• Info Notifications: Inform the user when the script initializes successfully or performs a specific action (e.g., skipping an ad).
• Error Notifications: Alerts the user if the script encounters issues, such as elements not found or features failing.
• Update Notifications: Prompts the user to update the script if a newer version is detected.

How it works:
• Notifications appear as small popups at the bottom-right of the YouTube page.
• Notifications automatically disappear after 5 seconds for a clean experience.



2. Script Health Monitoring
• A periodic check ensures that the script is working as expected:
• Verifies that ads are being detected and skipped.
• Monitors YouTube’s DOM structure to detect if the script becomes incompatible due to site updates.
• Performs health checks every 60 seconds to keep the user informed about any issues.



3. Automatic Update Detection
• The script connects to an external endpoint to simulate checking for updates.
• If a newer version of the script is available, the user is notified with an “Update Available” alert.
• Prompts users to download the latest version to maintain functionality.
• Example Notification: “A new version of the script is available. Please update!”



4. Enhanced Error Handling
• Improved error detection ensures the script captures and logs issues (e.g., if ad elements are not found or changes in the DOM occur).
• If the script detects a failure to skip ads or remove popups, it displays an Error Notification so the user knows action is needed.
• Detailed error messages are logged to the console for debugging.



5. Improved Logging
• Every action performed by the script is logged in the browser console for transparency and troubleshooting.
• Logs include:
• Successful ad skips.
• Notifications sent.
• Elements removed.
• Errors encountered during execution.



6. Ad-Skipping Enhancements
• The script skips video ads, overlay ads, and closes ad-related elements seamlessly.
• Additionally:
• Automatically mutes ads that cannot be skipped (e.g., unskippable pre-roll ads).
• Ensures smoother playback by removing visual clutter like overlay ads.



7. Resource Efficiency
• Observers (for detecting and removing ads) automatically disconnect after 5 minutes of inactivity to save browser resources.
• Notifications and health-check intervals are optimized to avoid performance issues.

Benefits of the New Features
• User Awareness: Keeps the user informed about the script’s status and any issues.
• Reliability: Monitors the script’s performance to ensure continuous functionality.
• Future Proofing: Alerts for updates help maintain compatibility with YouTube’s evolving structure.
• Resource Optimization: Ensures the script does not unnecessarily consume browser resources.