Last active
August 29, 2015 14:13
-
-
Save saltybeagle/bc01fcb1d86e55d7cada to your computer and use it in GitHub Desktop.
Tampermonkey script to link up the UNL Arp Search tool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name UNL ARP Search Lookup tool improver | |
// @namespace http://its-bieber.unl.edu/ | |
// @version 0.2 | |
// @description Convert MAC address to a link to lookup the vendor | |
// @author Brett Bieber | |
// @match http://scrapy.unl.edu/cgi-bin/arpsearch.cgi* | |
// @grant unsafeWindow | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// ==/UserScript== | |
$(document).ready(function() { | |
var elements = $('body > table > tbody > tr > td:nth-child(2)'); | |
elements.each(function() { | |
$(this).html('<a href="http://www.macvendorlookup.com/api/v2/'+($(this).html())+'">'+($(this).html())+'</a>'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment