Created
November 9, 2023 15:03
-
-
Save jamesl1001/d839272a92821848889ca48fcde06a1b to your computer and use it in GitHub Desktop.
AlwaysShowYoutubeSaveButton.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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