Google Image Link Direct

Click Image View New Location, directly to the images

目前為 2021-07-30 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Google Image Link Direct
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Click Image View New Location, directly to the images
// @author       Benyamin Limanto
// @run-at       document-end
// @include      http*://*.google.tld/search*tbm=isch*
// @include      http*://*.google.tld/imgres*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.body.addEventListener('click', e => {
        setTimeout(function(){
            var div = document.querySelectorAll('a[target=_blank] > img');
            for (var i = 0; i < div.length; i++) {
                div[i].parentNode.href = div[i].src;
            }
        }, 500);
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址