Shodan, Links Only

Strip everything out to make copying links quicker

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Shodan, Links Only
// @namespace    http://9gag.com/
// @version      0.1
// @description  Strip everything out to make copying links quicker
// @author       evil - http://www.8ch.net/ipcam/
// @match        https://www.shodan.io/search?query=*
// @grant        none
// ==/UserScript==

var ipLinks = [];

$(document).ready(function() {
    //hide most of the page body, leave pagination and results count
    $(".search-result").hide();
    //create a textarea for displaying the links
    var $div = $("<br /><textarea id='ipList' style='width:400px;height:200px;border:0px;font-size:12px;color:#000;margin-top:16px;'></textarea>").appendTo(".results-count"), thisIP;
    //create an array of just the links and add them to the textarea
    $(".ip").each(function() {
        thisIP = $(this).find('a').attr('href');
        ipLinks.push(thisIP);
        $div.append(thisIP + "\r\n");
    });
    //set focus and auto-select contents of textarea
    $("#ipList").focus();
    $("#ipList").select();
});