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

Technology

60029 readers
2900 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 1 day ago (5 children)

Just replace the watch?v= with embed/

[–] [email protected] 7 points 1 day ago* (last edited 1 day ago) (4 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 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!

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

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

[–] [email protected] 5 points 1 day ago

They likely use adblocks themselves.

[–] [email protected] 3 points 1 day ago
load more comments (2 replies)
load more comments (2 replies)