您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Try to re-add the link to Google Maps when Google Search returns a map (was removed due to EU DSA)
// ==UserScript== // @name Link Map in Google Search to Google Maps // @namespace https://tante.cc/ // @version 1.0 // @description Try to re-add the link to Google Maps when Google Search returns a map (was removed due to EU DSA) // @author tante <[email protected]> // @license GPL-3 // @match https://www.google.com/search* // @match https://google.com/search* // @grant none // @run-at document-end // ==/UserScript== (function() { 'use strict'; let mapNode = document.getElementById("lu_map"); let query = document.evaluate("//*[@name='q']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.value; // wrap iamge in link to maps search with the same query as the google search let parent = mapNode.parentNode; let link = document.createElement('a'); link.href = 'https://www.google.com/maps/search/?api=1&query='+ query.replaceAll(" ", "+"); link.appendChild(mapNode.cloneNode(true)); parent.replaceChild(link, mapNode); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址