Skip to content

Instantly share code, notes, and snippets.

@kusaanko
Last active September 17, 2022 09:45
Show Gist options
  • Save kusaanko/dba3b2e621f2ce03d5739e2cef887491 to your computer and use it in GitHub Desktop.
Save kusaanko/dba3b2e621f2ce03d5739e2cef887491 to your computer and use it in GitHub Desktop.
YouTube for Study
// ==UserScript==
// @name YouTube for Study
// @namespace http://github.com/kusaanko
// @version 0.1
// @description Hide elements that bother you studying.
// @author Kusaanko
// @match https://*.youtube.com/*
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(
function() {
$('#primary ytd-rich-grid-renderer #contents').css({display: 'none'});
$('div[tab-identifier="FEwhat_to_watch"]').css({display: 'none'});
$('ytm-item-section-renderer[data-content-type="related"]').css({display: 'none'});
$('#related').css({display: 'none'});
}
, 100);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment