AdBlock for YouTube

removes ads and annoying popups from youtube.

这些是代码更新过的版本。 显示所有版本

  • v1.5 2024-07-19

    added support for m.youtube.com, removed time shift enhancement, for it was unnecessary.

  • v1.4 2024-07-13

    v1.0.4: updated the function removeAds() to only check for the ads once, so the flickering doesn't happen.

  • v1.3 2024-07-08
  • v1.2 2024-07-07

    YouTube AdBlock Userscript

    YouTube AdBlock Userscript


    This userscript removes ads and annoying popups from YouTube, providing a smoother and cleaner viewing experience.

    Features

    • Blocks ads on YouTube.
    • Removes annoying popups.
    • Fixes timestamps for easier navigation.
    • Minimal interference with user interactions (play/pause).

    Installation

    To install this userscript, follow these steps:

    1. Install a userscript manager extension for your browser:
    2. Click here to view the youtubeadblock.js file.
    3. The userscript manager should prompt you to install the script. Follow the instructions.

    Usage

    Once installed, the script will automatically run on YouTube pages. You don't need to do anything to activate it. The script will:

    • Block video ads.
    • Remove popup messages.
    • Fix timestamp formatting for easier video navigation.

    License

    This project is licensed under the MIT License. See the LICENSE file for details.

    Author

    FairyRoot

    Acknowledgments

  • v1.1 2024-07-07