auto click google ai overview show more.

google自動ai回答

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @license MIT
// @name        auto click google ai overview show more.
// @namespace    google自動ai回答
// @version      1.1
// @description   google自動ai回答
// @author       Joey Gambler
// @match        *://www.google.com/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    function skipAd() {

        var skipButton = document.querySelector('#B2Jtyd > div.X6JNf > div > div.OZ9ddf.WAUd4.GkDqAd.nlXKX > div.RiehGf > div > div > div > span');
        if (skipButton) {
            skipButton.click();
            console.log("Click button");
        }

        var expend = document.querySelector('div.h7Tj7e > div.RDmXvc.Jzkafd');
        if (expend) {
            expend.click();
            console.log("Click button");
        }

    }

    // 设置检测时间间隔
    var timer = setInterval(skipAd, 1000); // 1000毫秒 = 1秒
})();