Greasy Fork is available in English.

SauceNAO 默认勾选自动搜图,新标签页打开结果

修改自作者DanoR

// ==UserScript==
// @name         SauceNAO 默认勾选自动搜图,新标签页打开结果
// @description  修改自作者DanoR
// @version      1.0.1
// @author       無限の未知
// @namespace    none
// @grant        none
// @include      *://saucenao.com/*
// ==/UserScript==

(function() {

    var cb = document.getElementById("auto-cb");

    if (cb) cb.checked = true;

    var qsa = function(selector) {
        var result = [], arr = document.querySelectorAll(selector), i;

        for(i = 0; i < arr.length; i++) {
            result.push(arr[i]);
        }

        return result;
    };


    var as = qsa('div.resultcontentcolumn>a, div.resultmiscinfo>a'), i, a;


    for(i in as) {
        a = as[i];

        a.target = '_blank';

    }

})();