this post was submitted on 20 Dec 2024
591 points (96.7% liked)

Technology

60055 readers
2910 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
[–] [email protected] 12 points 2 days ago (1 children)

Just replace the watch?v= with embed/

[–] [email protected] 7 points 2 days ago* (last edited 2 days 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`;
    }
})();

[–] [email protected] 6 points 2 days 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!

[–] [email protected] 3 points 2 days ago (2 children)

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

[–] [email protected] 5 points 2 days ago

They likely use adblocks themselves.

[–] [email protected] 3 points 2 days ago