Hide Google AI Overview

Hides the Google AI Overview section

当前为 2025-02-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Hide Google AI Overview
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.12
  5. // @description Hides the Google AI Overview section
  6. // @author Your Name
  7. // @match *://www.google.com/*
  8. // @license MIT
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. // ==UserScript==
  13. // @name Hide Google AI Overview
  14. // @namespace http://tampermonkey.net/
  15. // @version 1.11
  16. // @description Hides the Google AI Overview section
  17. // @author Your Name
  18. // @match *://www.google.com/*
  19. // @license MIT
  20. // @grant none
  21. // @downloadURL https://update.greasyfork.org/scripts/522574/Hide%20Google%20AI%20Overview.user.js
  22. // @updateURL https://update.greasyfork.org/scripts/522574/Hide%20Google%20AI%20Overview.meta.js
  23. // ==/UserScript==
  24.  
  25. (function() {
  26. 'use strict';
  27.  
  28. const hideDiv = () => {
  29. document.querySelectorAll('div').forEach(div => {
  30. if (div.classList.contains('bzXtMb') || div.classList.contains('M8OgIe')) {
  31. div.style.display = 'none';
  32. }
  33. });
  34. };
  35.  
  36. document.addEventListener('DOMContentLoaded', hideDiv);
  37. new MutationObserver(hideDiv).observe(document.body, { childList: true, subtree: true });
  38. })();
  39.