Skip to content

Instantly share code, notes, and snippets.

@saltybeagle
Last active August 29, 2015 14:13
Show Gist options
  • Save saltybeagle/bc01fcb1d86e55d7cada to your computer and use it in GitHub Desktop.
Save saltybeagle/bc01fcb1d86e55d7cada to your computer and use it in GitHub Desktop.
Tampermonkey script to link up the UNL Arp Search tool
// ==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