YouTube Ad Skipper and Detection Bypass (Enhanced for Mobile)

Bypass YouTube's ad blocker detection, skip ads seamlessly on both desktop and mobile, and notify users about updates or issues.

นี่คือเวอร์ชันของสคริปต์นี้ที่โค้ดมีการอัปเดต แสดงเวอร์ชันทั้งหมด

  • v2.3 31-12-2024

    1. Mobile-Responsive Notification System
    • Redesigned the notification display to work seamlessly on mobile screens:
    • Dynamic Width: Notifications now use width: calc(100% - 20px) for mobile-friendly responsiveness, ensuring they fit within smaller screen sizes.
    • Maximum Width: Capped at 300px to maintain a clean look on desktop screens.
    • Touch-Friendly Placement: Positioned notifications (bottom and right) to avoid interference with touch-sensitive areas on mobile.

    2. Viewport Meta Tag
    • Added a check for the viewport meta tag:
    • Ensures proper scaling and rendering on mobile devices.
    • Automatically injects the tag if missing, optimizing the script for smartphones and tablets.

    3. Mobile-Specific Layout Adjustments
    • Ensured compatibility with mobile YouTube layouts:
    • Verified that the ad selectors work on mobile browsers.
    • Adjusted for any potential differences in the DOM structure between desktop and mobile YouTube versions.

    4. Cross-Browser and Cross-Device Testing
    • Tested and optimized the script for popular browsers on Android and iPhone (e.g., Chrome, Firefox, Safari).
    • Ensured the script functions on browsers using user script managers like Tampermonkey Mobile.

    5. Improved Notification Design
    • Enhanced the visual appearance of notifications:
    • Compact Font Size: Reduced to 12px for better readability on mobile.
    • Padding and Borders: Adjusted for a clean and modern design suitable for smaller screens.

    6. Compatibility Enhancements
    • Verified the script’s behavior on touch interfaces, ensuring elements like the ad skip button are clickable and notifications are easily dismissed.
    • Ensured that the MutationObserver and ad-skipping logic account for mobile-specific DOM changes.

    7. Version Bump
    • Updated the script version to 2.3 for tracking improvements specific to mobile compatibility.

  • v2.2 22-12-2024

    1. Error Handling:
    • Improved error handling for fetch requests and DOM mutations.
    2. Performance Enhancements:
    • Added Object.assign for style declarations to reduce redundant code.
    • Optimized mutation observer logic.
    3. Version Update Check:
    • Enhanced update notification logic for better compatibility.
    4. Notification System:
    • Improved design and functionality of notifications.
    5. Readability:
    • Cleaned up and organized code for better maintainability.

  • v2.1 19-12-2024

    Updated Features
    1. Notification System: Real-time notifications for script actions, errors, and update availability.
    2. Health Monitoring: Periodic checks to ensure the script is working correctly and skipping ads.
    3. Automatic Update Alerts: Notifies users when a new version of the script is available for download.
    4. Enhanced Error Handling: Alerts users if the script encounters issues or stops functioning.
    5. Improved Logging: Detailed console logs for tracking skipped ads, removed elements, and errors.
    6. Ad-Skipping Enhancements: Automatically mutes unskippable ads and removes overlays for smoother playback.
    7. Resource Efficiency: Observers disconnect after prolonged inactivity to save browser resources.

  • v1.4 17-12-2024

    What’s Improved in the Fixed Version?
    1. Selective Targeting:
    • The script now checks if ytd-popup-container contains “ad blocker” related content before removing it.
    • This prevents interference with notifications and other valid popups.
    2. Optimized DOM Observers:
    • The MutationObserver now processes only newly added nodes instead of blindly scanning the DOM.
    • This improves performance and reduces CPU usage.
    3. Safer Ad Skipping:
    • Ads are skipped and removed only when matching specific ad selectors.
    • Ensures that no unrelated elements are affected.
    4. Improved Resource Management:
    • Observers automatically disconnect after 5 minutes, reducing resource consumption for users who keep YouTube open for long sessions.
    5. Better Logging:
    • Added clear console logs for each action, making it easier to debug and understand what the script is doing.

  • v1.3 13-12-2024

    1. Overlay Removal:
    • Targets and removes YouTube’s anti-ad blocker overlay dynamically using DOM observation.
    2. Ad Skipping:
    • Automatically skips video ads, closes overlay ads, and removes banner ads.
    3. Dynamic Monitoring:
    • Observes DOM changes in real time to address new ads or overlays.

  • v1.2 13-12-2024

    1. Randomized Delays: Introduces random timing for initialization to mimic human behavior.
    2. Simplified and Stealthy: Reduces the frequency of console logs and minimizes the script’s footprint to avoid detection.
    3. Debounced Actions: Limits DOM manipulations to improve performance and reduce chances of being flagged.
    4. Avoids Over-Customization: Focuses only on critical ad-blocking features without excessive dependencies.

  • v1.1 05-12-2024

    Key Changes:

    1. Fetch Request Handling:
    • Improved URL extraction to handle Request objects passed to fetch.
    2. Throttling:
    • Introduced throttle to limit how often removeAdElements runs, reducing strain on the browser.
    3. MutationObserver Optimization:
    • Added a timeout to disconnect the observer after a reasonable duration, improving performance in long browsing sessions.
    4. DOMContentLoaded Listener:
    • Ensures the listener runs only once using the { once: true } option.
    5. Performance Logging:
    • Logs messages to the console for monitoring script actions and performance.

  • v1.0 05-12-2024