Skip to content

Instantly share code, notes, and snippets.

@davidhq
Last active January 14, 2023 18:16
Show Gist options
  • Save davidhq/ee9188af0e5079171a1fb39ceb3289d4 to your computer and use it in GitHub Desktop.
Save davidhq/ee9188af0e5079171a1fb39ceb3289d4 to your computer and use it in GitHub Desktop.
For kids β€” How to remove YouTube shorts, all live videos, videos based on keywords and censor specific channels 😈 🀘

Improve YouTube

Scripts that is injected into YouTube website on the frontend via Chrome extension and does the following ↴

  1. Remove YouTube Shorts
  2. Remove all Live videos
  3. Disable any channel which matches a given list
  4. Remove all videos where title or channel name includes any of listed forbidden words
  5. Carpet-ban all videos which include specific 'foreign' characters (because filtering on english words is not possible)

0. Kids are vulnerable

... but technology is great. The answer is not less technology but better technology and content.

Kids should probably not touch mobile phones but should in any case start with computers as early as possible. There is some marvelous stuff to get them started. There is also some mixed things. YouTube is one such space with mixed offerings for someone that is mostly not yet able to decide what they should consume.

YouTube Shorts teach kids that it is worth focusing for 0.1s at most, Answer: Disable YouTube Shorts.

There is also some really undesirable content on YouTube that gets recommended too much (at all) β€” Answer: censor all of it simply βœ….

Prerequisite:

1. Install Scripty - Javascript Injector

Install Scripty - Javascript Injector Chrome extension. This will allow you to add some JavaScript code that runs on specific sites (like YouTube). Now add these scripts... Make them Automatically run 'Before Page Load' if Host Contains youtube.com ↴

RemoveShorts

2. Use this script

Copy and paste this code (maybe customize it to your preferences and culture).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment