Skip to content

Instantly share code, notes, and snippets.

@jamesl1001
Created November 9, 2023 15:03
Show Gist options
  • Save jamesl1001/d839272a92821848889ca48fcde06a1b to your computer and use it in GitHub Desktop.
Save jamesl1001/d839272a92821848889ca48fcde06a1b to your computer and use it in GitHub Desktop.
AlwaysShowYoutubeSaveButton.user.js
// ==UserScript==
// @name Always Show Youtube Save Button
// @namespace https://jal.dev/
// @version 0.1
// @description Hide Youtube clip, download and thanks buttons to ensure Save button isn't hidden under More (...) menu.
// @author James Alexander Lee
// @match https://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
var clip = '#flexible-item-buttons > *:has([aria-label="Clip"])';
var download = '#flexible-item-buttons > *:has([aria-label="Download"]';
var thanks = '#flexible-item-buttons > *:has([aria-label="Thanks"]';
setTimeout(() => {
document.querySelector(clip).style.display = 'none !important';
document.querySelector(download).style.display = 'none !important';
document.querySelector(thanks).style.display = 'none !important';
}, 1000)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment