Skip to content

Instantly share code, notes, and snippets.

@Hyftar
Created April 19, 2018 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hyftar/1e00b6b6c6cab559c1644b2e0c9124c5 to your computer and use it in GitHub Desktop.
Save Hyftar/1e00b6b6c6cab559c1644b2e0c9124c5 to your computer and use it in GitHub Desktop.
Removes the Stream to Chromecast button on YouTube
// ==UserScript==
// @name ChromeCast Remover
// @namespace https://www.youtube.com/
// @version 1.0
// @description Removes the Chrome cast button on YouTube
// @author Hyftar
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.querySelector('button[title="Play on TV"]').style.display = 'none';
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment