block bs alerts

removes logo and alerts for cookieless/javascriptless google ssl vertbatim searches

目前為 2014-06-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name        block bs alerts
// @namespace   *.youtube.*
// @description removes logo and alerts for cookieless/javascriptless google ssl vertbatim searches
// @include     *.youtube.*
// @version     1
// @grant       none
// ==/UserScript==


var removeElements = function(){
    var x = document.querySelectorAll('#alerts')[0];
    while (x.firstChild) {
        x.removeChild(x.firstChild);
    }
    x.style.width = 0;
    x.style.display = 'none';
    var x = document.querySelectorAll('#logo-container')[0];
    while (x.firstChild) {
        x.removeChild(x.firstChild);
    }
    x.style.width = 0;
    x.style.display = 'none';
    
};

removeElements();