this post was submitted on 20 Dec 2024
577 points (96.8% liked)

Technology

60041 readers
2371 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] MrOxiMoron@lemmy.world 12 points 1 day ago (1 children)

Just replace the watch?v= with embed/

[–] BaroqueInMind@lemmy.one 7 points 1 day ago* (last edited 1 day ago) (1 children)

Delete this, YouTube will catch on and block this workaround.

Edit: disregard. Here is a custom GreaseMonkey/ViolentMonkey userscript to automatically do this for you:

// ==UserScript==
// @name         YouTube to Embed Redirect (Desktop & Mobile)
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Redirects YouTube video URLs (desktop and mobile) to their embed version.
// @author       BaroqueInMind
// @match        https://www.youtube.com/watch?v*
// @match        https://m.youtube.com/watch?v*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Extract the video ID from the URL
    const videoId = new URLSearchParams(window.location.search).get('v');

    if (videoId) {
        // Redirect to the embed URL
        window.location.href = `https://www.youtube.com/embed/$%7BvideoId%7D`;
    }
})();

[–] ohellidk@sh.itjust.works 6 points 1 day ago (1 children)

Wouldn't surprise me in the least if some of the employees are watching threads like this one.

BTW, go fuck yourself, YouTube devs!

[–] zeca 3 points 1 day ago (2 children)

im not so sure the devs have fault in any of this though

[–] Opisek@lemmy.world 5 points 1 day ago

They likely use adblocks themselves.

[–] Nyxicas@kbin.melroy.org 3 points 1 day ago