Last active
June 19, 2021 04:55
-
-
Save yilmazdurmaz/36cdbee4f5f8025882d10e6a9014735f to your computer and use it in GitHub Desktop.
Remove annoying youtube divs obfuscating the view in high contrast screen settings - tampermonkey script
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 _Remove annoying youtube divs | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description these two divs are obfuscating/redacting the videos when in high constrast mode selected, at least for windows 10 | |
// @author yilmazdurmaz | |
// @include | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js | |
// @match http*://*/* | |
// @icon | |
// @grant GM_addStyle | |
//- The @grant directive is needed to restore the proper sandbox. | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
/*--- Use the jQuery contains selector to find content to remove. | |
*/ | |
var badDivs | |
badDivs=$(".ytp-gradient-top") | |
badDivs.remove(); | |
badDivs=$(".ytp-gradient-bottom") | |
badDivs.remove(); | |
//-- Or use badDivs.hide(); to just hide the content. | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment