https://github.com/raph6/youtube-nomoreshorts
Youtube shorts are cancer
https://github.com/raph6/youtube-nomoreshorts
Last synced: 4 months ago
JSON representation
Youtube shorts are cancer
- Host: GitHub
- URL: https://github.com/raph6/youtube-nomoreshorts
- Owner: raph6
- Created: 2023-05-04T22:54:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T22:57:02.000Z (about 3 years ago)
- Last Synced: 2025-06-14T05:35:56.543Z (12 months ago)
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# No more shorts on youtube
YouTube shorts and all their derivatives (Reels, TikTok, ...) are shit and a cancer for our society. Their algorithms are designed to steal our time and destroy our brains and our concentration.
Here is a script to never be locked in the shorts loop again. It redirects the shorts on the canonical "watch?v=" url.
## Installation
- Install [Tampermonkey browser extension](https://www.tampermonkey.net/) (if you don't have it already)
- Click on "Create a new script..." and copy paste :
```js
// ==UserScript==
// @name NoMoreShorts
// @version 0.1
// @description Redirects "shorts" to the canonical "watch?v=" url.
// @match https://youtube.com/*
// @run-at document-start
// @include *youtube.com*
// ==/UserScript==
(function() {
'use strict';
function checkShorts() {
if (window.location.pathname.startsWith("/shorts/")) {
window.location.href = 'https://www.youtube.com/watch?v=' + window.location.pathname.split('/')[2];
}
}
document.addEventListener('yt-navigate-start', checkShorts);
if (document.body) checkShorts();
else document.addEventListener('DOMContentLoaded', checkShorts);
})();
```
- Save (File -> Save)