您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects Google Images and Videos links to DuckDuckGo Images and Videos
// ==UserScript== // @name Redirect Google Images & Videos to DuckDuckGo // @namespace http://example.com // @version 1.0 // @description Redirects Google Images and Videos links to DuckDuckGo Images and Videos // @match https://www.google.com/* // @license MIT // @icon https://blog.animonlive.com/wp-content/uploads/2016/12/duckduckgo1600.png // @grant none // ==/UserScript== (function() { 'use strict'; const currentUrl = window.location.href; if (currentUrl.includes('google.com')) { const searchParams = new URLSearchParams(window.location.search); const query = searchParams.get('q'); const pathName = window.location.pathname; if (pathName === '/search' && searchParams.get('tbm') === 'vid') { const duckDuckGoVideosUrl = 'https://duckduckgo.com/?q=' + encodeURIComponent(query) + '&iar=videos&iax=videos&ia=videos'; window.location.href = duckDuckGoVideosUrl; } else if (pathName === '/search' && searchParams.get('tbm') === 'isch') { const duckDuckGoImagesUrl = 'https://duckduckgo.com/?q=' + encodeURIComponent(query) + '&iax=images&ia=images'; window.location.href = duckDuckGoImagesUrl; } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址