您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add language filter buttons to Google search for quick language switching
// ==UserScript== // @name LinGoogle // @namespace https://github.com/tonioriol // @version 3.0.2 // @description Add language filter buttons to Google search for quick language switching // @author Toni Oriol // @include /^http(s)?:\/\/(www)?\.google\.\w*\/search.*$/ // @grant none // @license AGPL-3.0-or-later // ==/UserScript== (function () { const langList = ['ca', 'es', 'en', 'sv'] const url = new URL(location.href) const menu = document.createElement('div') menu.style.position = 'absolute' menu.style.top = '0' menu.style.left = '0' menu.style.right = '0' menu.style.zIndex = '9999999999' menu.style.display = 'flex' menu.style.flexDirection = 'row' menu.style.gap = '1rem' menu.style.justifyContent = 'center' langList.forEach(l => { const item = document.createElement('div') url.searchParams.set('lr', `lang_${l}`) item.innerHTML = `<a href="${url}">${l}</a>` menu.appendChild(item) }) document.querySelector('body').appendChild(menu) })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址