您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
多条搜索企业信息
当前为
// ==UserScript== // @license MIT // @name 多条搜索 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 多条搜索企业信息 // @author lemondqs // @match https://www.tianyancha.com/ // @icon https://www.google.com/s2/favicons?sz=64&domain=tianyancha.com // @grant none // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.3/jquery.js /* globals jQuery, $, waitForKeyElements */ // ==/UserScript== (function() { 'use strict'; var url = 'https://www.tianyancha.com/search?key='; function search() { $('#x-list').val().split('\n').forEach((name)=> { if(name) { window.open(`${url}${name}`, "_blank"); } }) $("#x-search").css("background-color", "#00FF6677") setTimeout(()=>{ $("#x-search").css("background-color", "#0066FF77") }, 1000) } // 挂载到窗体 window.search = search var infodom = `<textarea id="x-list" style="position: fixed; top: 300px; left: 20px; width: 200px; height: 120px; padding: 10px; background-color: #CCCCCC77;"></textarea>`; var btn = `<div id="x-search" style="position: fixed; top: 420px; left: 100px; width:120px; height: 40px; text-align: center; border-radius: 5px; border: 2px #FFF dotted; cursor: pointer; padding: 10px; background-color: #0066FF77;" onclick="search()">批量搜索</div>`; $('body').append(infodom); $('body').append(btn); // Your code here... })();