您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Opens Yandex Maps instead of built-in OpenMaps
// ==UserScript== // @name DuckDuckGoYaMaps // @namespace http://tampermonkey.net/ // @version 2025-05-16 // @description Opens Yandex Maps instead of built-in OpenMaps // @author commensal // @match https://duckduckgo.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=duckduckgo.com // @grant none // ==/UserScript== window.addEventListener('load', function() { var mapelement = document.evaluate("//a[contains(., 'Карты')]", document, null, XPathResult.ANY_TYPE, null ); var mapthiselement = mapelement.iterateNext(); var maptarget = document.querySelector("input.js-search-input.search__input--adv"); console.log(mapthiselement); // Prints the html element in console console.log(maptarget.value); mapthiselement.innerHTML += "(Я)"; mapthiselement.onclick= function() { window.open('https://yandex.ru/maps/213/moscow/search/' + maptarget.value, '_blank');}; }, false);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址