您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Direct links to images and pages on Google Images
当前为
// ==UserScript== // @name Google DWIMages // @description Direct links to images and pages on Google Images // @author chocolateboy // @copyright chocolateboy // @namespace https://github.com/chocolateboy/userscripts // @version 0.3.0 // @license GPL: http://www.gnu.org/copyleft/gpl.html // @include http://www.google.tld/*tbm=isch* // @include https://encrypted.google.tld/*tbm=isch* // @include https://www.google.tld/*tbm=isch* // @require https://code.jquery.com/jquery-3.2.1.min.js // @require https://cdn.rawgit.com/eclecto/jQuery-onMutate/79bbb2b8caccabfc9b9ade046fe63f15f593fef6/src/jquery.onmutate.min.js // @grant GM_log // ==/UserScript== // XXX note: the unused grant is a workaround for a Greasemonkey bug: // https://github.com/greasemonkey/greasemonkey/issues/1614 function onImageLinks ($imageLinks) { $imageLinks.each(function () { var $imageLink = $(this).removeAttr('jsaction'); var $container = $imageLink.closest('.rg_di'); var meta = JSON.parse($container.find('.rg_meta').text()); $imageLink .attr('href', meta.ou) .find('.rg_ilm') .wrap($('<a></a>').attr('href', meta.ru)); }); } $.onCreate('a.rg_l', onImageLinks, true /* multi */);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址