Last active
September 17, 2022 09:45
-
-
Save kusaanko/dba3b2e621f2ce03d5739e2cef887491 to your computer and use it in GitHub Desktop.
YouTube for Study
This file contains hidden or 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 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