您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make clicking on image bottom panel go directly to the image in a Google Image search result.
当前为
// ==UserScript== // @name Google Image Direct Link Patch // @namespace GoogleImageDirectLinkPatch // @description Make clicking on image bottom panel go directly to the image in a Google Image search result. // @author jcunews // @include /^https:\/\/www.google.(co.)?[a-z]{2}\/search.*tbm=isch/ // @include /^https:\/\/www.google.com([a-z]{2})?\/search.*tbm=isch/ // @version 1 // @grant none // ==/UserScript== document.addEventListener("click", function(ev) { var ele = ev.target.parentNode, url; if (ele && ele.parentNode) { ele = ele.parentNode; if (ele.classList.contains("_aOd") && ele.parentNode) { ele = ele.parentNode; if (ele) { url = ele.search.match(/imgurl=([^&]+)/); if (url) { url = decodeURIComponent(url[1]); if (ev.stopImmediatePropagation) { ev.stopImmediatePropagation(); } if (ev.stopPropagation) { ev.stopPropagation(); } ev.preventDefault(); if (ev.shiftKey) { window.open(url); } else { window.location.href = url; } } } } } }, true);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址