Hide Premiere/Upcoming Videos in YouTube Search results until they release.

Hide Premiere/Upcoming Videos in YouTube Search results until they release. It doesn't hide normal and live videos.

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

  • v2.3 06-09-2024

    Changelog

    Version 2.3 - September 6, 2024

    • New Condition Added: Some premieres were still showing, new check added to fix that.
  • v2.2 03-09-2024

    Changelog

    Version 2.2 - September 3, 2024

    • Logic Rework: Once again, reworked logic behind the script this time to make it more efficient and faster.
    • Performance Improvement: The script now identifies and processes videos with valid durations right away, skipping unnecessary checks and making everything run more smoothly.
    • You'll notice a significant performance increase compared to before.

  • v2.1.1 02-09-2024

    Changelog

    Version 2.1.1 - September 2, 2024

    • Text Update: Made a small change to the script's name/description for clarity.

  • v2.1 02-09-2024

    Changelog

    Version 2.1 - September 2, 2024

    • Live Videos Handling: We noticed that some live videos were getting hidden because they didn't have a duration. In this update, fixed that. Now, any video that’s live (those with "watching" in the views count) won't be hidden, even if it doesn't have a duration.
    • Better Handling of 'UPCOMING' Videos: Similarly, 'UPCOMING' videos will still be hidden unless they are live. We made sure that live videos are always visible so you don’t miss out on any live streams.
    • Additonal check for Views: "Scheduled": Upcoming or premiere videos typically don't have a specific view count or show the number of people watching. They are often marked with a "Scheduled" tag in the views section, the script hides them now.

  • v2 20-08-2024
  • v2 19-08-2024

    Changelog

    Version 2

    • Script Improvements: Enhanced the script to more consistently hide upcoming/premiere videos in YouTube search results. Previously it was still showing premieres sometimes
    • Reinitialization Mechanism: Complete rewrite of logic, simple duration check. Introduced periodic checks to ensure the script remains active, with a decreasing frequency over time to reduce resource load.
    • Logging Added (hidden in production): Included console logs to provide feedback on hidden videos and script initialization status. This is just for my debugging purposes, don't worry about it.
  • v1.9.2 19-08-2024

    Changelog

    Version 1.9.2

    Small text changes.


  • v1.9.1 19-08-2024

    Changelog

    Version 1.9.1

    Just some text changes.


  • v1.9 19-08-2024

    Changelog

    Version 1.9

    This update brings a couple of small tweaks:

    • Console messages hidden: We’ve removed the console logs from the script, so it runs quietly in the background without any extra messages popping up.
    • Title clarification: We’ve updated the script’s title for easier finding.
  • v1.8 19-08-2024

    Changelog

    Version 1.8

    Hello, We’ve made some tweaks in this update to fix a few things that weren’t working quite right in the last version. Here’s what’s new:

    • Smarter logic: We’ve improved the script so it’s better at figuring out which videos to hide and which to keep.
    • Better video hiding: Now, the script only hides videos that don’t have a duration or are marked as ‘UPCOMING’. No more accidentally hiding the ones you want to watch!
    • Clearer console messages: We’ve added more helpful messages to the console so you can easily see what the script is doing behind the scenes.

    Version 1.7

    Uhh... In version 1.7, the script was a bit too eager and ended up hiding some videos that it shouldn’t have. We’ve sorted that out in version 1.8, so everything should be working smoothly now.

  • v1.7 06-08-2024

    Changelog version 1.6 to 1.7 (optimizations), 6 august 2024

    Debounced Content Handling: I added a little delay (100 milliseconds) before running the function that hides the videos. This way, it doesn't keep running constantly as you scroll and load more videos. It waits a bit to see if there are more changes, then runs. This should make things smoother and less heavy on your browser.

    Selective Observing: Instead of watching the whole page for changes, the script now focuses only on the part of the YouTube page where videos get added (ytd-app). This makes it more efficient because it's not checking unnecessary parts of the page.

    Reduced Redundant Checks: By targeting specific elements (ytd-app and its children), the script does fewer unnecessary checks. This means it can do its job faster and with less load on your computer.

  • v1.6 06-08-2024