Google Advanced Search Button

add an button for the google advanced search in the google home search page instead of the random search button

目前为 2023-05-21 提交的版本。查看 最新版本

// ==UserScript==
// @name        Google Advanced Search Button
// @namespace   Violentmonkey Scripts
// @match       *://www.google.*/*
// @grant       none
// @license     MIT
// @version     1.1
// @author      slayernominee
// @description add an button for the google advanced search in the google home search page instead of the random search button
// ==/UserScript==

random_search_button = document.getElementsByClassName("RNmpXc")[1];

random_search_button.value = "Advanced Search";
random_search_button.setAttribute("aria-label", "Advanced Search");
random_search_button.attributes.removeNamedItem("jsaction");
random_search_button.attributes.removeNamedItem("data-ved");
random_search_button.attributes.removeNamedItem("name");
random_search_button.addEventListener('click',function (evt) {
    evt.preventDefault();

    window.location.href = "https://www.google.com/advanced_search";
  });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址