block google search bs alerts

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

当前为 2014-06-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name block google search bs alerts
  3. // @namespace *.youtube.*
  4. // @description removes logo and alerts for cookieless/javascriptless google ssl vertbatim searches
  5. // @include *.youtube.*
  6. // @version 1.01
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10.  
  11. var removeElements = function(){
  12. var x = document.querySelectorAll('#alerts')[0];
  13. while (x.firstChild) {
  14. x.removeChild(x.firstChild);
  15. }
  16. x.style.width = 0;
  17. x.style.display = 'none';
  18. var x = document.querySelectorAll('#logo-container')[0];
  19. while (x.firstChild) {
  20. x.removeChild(x.firstChild);
  21. }
  22. x.style.width = 0;
  23. x.style.display = 'none';
  24. };
  25.  
  26. removeElements();