Hide Google AI Overview

Hides the Google AI Overview section

目前为 2025-01-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Hide Google AI Overview
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Hides the Google AI Overview section
  6. // @author Drewby123
  7. // @match *://*/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. const hideDiv = () => {
  16. const targetDiv = document.querySelector('div[class="bzXtMb M8OgIe"]');
  17. targetDiv.style.display = 'none';
  18. };
  19.  
  20. document.addEventListener('DOMContentLoaded', hideDiv);
  21. new MutationObserver(hideDiv).observe(document.body, { childList: true, subtree: true });
  22. })();