您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button for Google Image Search on the Google start page.
// ==UserScript== // @name Google Image Search Button // @namespace https://www.google.com/ // @version 1 // @description Adds a button for Google Image Search on the Google start page. // @author AlifTheLegend // @match https://www.google.com/ // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Create the button element var button = document.createElement("button"); button.innerHTML = "Google Images"; button.style.backgroundColor = "#4285f4"; button.style.color = "white"; button.style.border = "none"; button.style.margin = "0 10px"; button.style.padding = "10px 20px"; button.style.borderRadius = "4px"; // Add an event listener to the button button.addEventListener ("click", function() { // Redirect to Google Images window.location.href = "https://www.google.com/search?tbm=isch"; }); // Add the button to the page var div = document.createElement("div"); div.style.textAlign = "center"; div.appendChild(button); var searchform = document.querySelector("#tsf"); searchform.appendChild(div); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址