// ==UserScript== // @name 匿名版一键搜图 // @namespace http://zhihaofans.com // @version 0.3.9 // @description 一键搜图(让盗图狗不再得意,让你不再为祭品信息而烦恼) // @author zhihaofans // @match https://h.nimingban.com/f/* // @match https://h.nimingban.com/t/* // @match http://www.kukuku.cc/t/* // @match http://www.kukuku.cc/* // @grant none // @note 开源地址:https://github.com/zhihaofans/Some-JavaScript/blob/master/imageboard.imagesearch.js // @note Greasyfork地址:https://greasyfork.org/zh-CN/scripts/21115 // @note generated by coffee-script // @downloadURL none // ==/UserScript== (function () { var nmb_search, search_change, setting, setting_show, start; setting_show = 0; nmb_search = { 'sogou': 'http://pic.sogou.com/ris?query=', 'baidu': 'http://image.baidu.com/n/pc_search?queryImageUrl=', 'google': 'https://www.google.com/searchbyimage?image_url=', 'saucenao': 'http://saucenao.com/search.php?db=999&url=', 'iqdb': 'http://www.iqdb.org/?url=', 'iisearch': 'http://iisearch.ddo.jp/front.php?mode=1&url=', 'tineye': 'http://tineye.com/search/?url=' }; setting = function () { var li, nmb_select; if (localStorage.getItem('setting_search') === null || localStorage.getItem('setting_search') === void 0) { localStorage.setItem('setting_search', 'baidu'); } console.log(localStorage.setting_search in nmb_search); if (localStorage.setting_search in nmb_search === false) { localStorage.setItem('setting_search', 'baidu'); alert('设置错误,已初始化(baidu)\n即将刷新'); } nmb_select = ''; li = '