您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Swap "Videos" and "Images' tabs position
// ==UserScript== // @name Google search bar swap Images<->Videos position // @match http*://*.google.com/search?* // @grant none // @version 1.0 // @author You // @description Swap "Videos" and "Images' tabs position // @namespace https://gf.qytechs.cn/users/233017 // ==/UserScript== // Clone and remove the hidden Videos menu item //videos_element = document.querySelector(".AchQod") videos_element = document.querySelector(".il8Sef > a:nth-child(1)") videos_clone = videos_element.cloneNode(true) videos_element.remove() // Insert a div and append the clone as a child to it div_clone = document.querySelector("div.hdtb-mitem:nth-child(3)").cloneNode(false) after=document.querySelector("div.hdtb-mitem:nth-child(3)") new_div = after.parentNode.insertBefore(div_clone, after.nextSibling) after.nextSibling.appendChild(videos_clone)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址