YT - Overlay remover
Removes all video overlays on YouTube
Click here to install
Browse More Scripts
// ==UserScript==
// @name YT - Overlay remover
// @namespace 00ef5a8f636fe2b08323c23adee1419b6a3e65b4
// @version 0.15
// @description Removes all video overlays on YouTube
// @author /u/AyrA_ch
// @match https://www.youtube.com/*
// @match http://www.youtube.com/*
// @match https://youtube.com/*
// @match http://youtube.com/*
// @grant none
// ==/UserScript==
//Changelog
//0.15 - Remove the info icon on the top right
//0.14 - Remove the info bubble on the top right
//0.13 - Changed title to match other scripts
//0.12 - Removing "End Screen Content" part
//0.11 - Removing Branding Image
//0.10 - Removing watch-later filter again
//0.9 - Adding "ytp-tooltip"
//0.8 - Adding "ytp-pause-overlay"
//0.7 - Mutation observer subtree flag to catch new overlay html tree
//0.6 - Add new overlay type
//0.5 - Faster mutation processing
//0.4 - Also remove Promotions
//0.3 - Also remove inline "Suggested Video" buttons
//0.2 - Add Mutation Observer for better performance
//0.1 - Initial Version
(function ($) {
"use strict";
var selectors = [
".ytp-ce-element",
//".ytp-chrome-top-buttons",
".iv-promo",
".iv-branding",
".ytp-ce-video",
".ytp-pause-overlay",
".ytp-endscreen-content",
".html5-endscreen",
".ytp-tooltip",
".ytp-cards-teaser",
".ytp-cards-button"
];
var removeAds = function () {
var divs = document.querySelectorAll(selectors.join(", "));
if (divs && divs.length > 0) {
console.log("removing", divs.length, "overlays");
divs.forEach(function (v) {
v.remove();
});
}
};
var observer = new MutationObserver(removeAds);
var config = {
attributes: false,
childList: true,
characterData: false,
subtree: true
};
observer.observe(document.body, config);
})();
/*
LICENSE:
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The full license text can be found here: http://creativecommons.org/licenses/by-nc-sa/4.0/
The link has an easy to understand version of the license and the full license text.
DISCLAIMER:
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/
User Script Managers
A userscript manager is the browser extension that injects scripts into websites
to change their behavior to your liking.
Recommendation
All scripts on this site have been developed and tested with Tampermonkey on firefox.
Try other browsers and other script managers at your own risk.
No script should use firefox or chrome specific features,
which means they should also work in other modern browsers.
If you prefer, you can use greasemonkey.
Get Tampermonkey,
Get Greasemonkey (Firefox only)
Script Installation
Once you have obtained a user script manager,
clicking on the install button will pop up an installation prompt.
To allow script manager detection,
you can install this helper script.
It's not necessary but simplifies your future visits to this site.
Script Installation
We detected, that you have a script manager installed and active.
Click the "Install Script" button to obtain the script.