Created
July 15, 2013 06:53
-
-
Save sanmai/5997934 to your computer and use it in GitHub Desktop.
This little helper donwloads and embeds each NABY message right under a link to one.
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 Yahoo! Japan Auctions Helper | |
// @namespace http://userscripts.org/users/163777 | |
// @include http://page*.auctions.yahoo.co.jp/show/contact* | |
// @include http://page*.auctions.yahoo.co.jp/jp/show/contact* | |
// @require http://code.jquery.com/jquery.min.js | |
// @version 1.0 | |
// ==/UserScript== | |
$('a[onclick][href^="/show/contact_detail"]').each(function () { | |
var tr$ = $(this).closest('tr'); | |
GM_xmlhttpRequest({ | |
method: "GET", | |
url: this.href, | |
onload: function (response) { | |
$('<tr><td class="ex_contact" colspan="4"></td></tr>').insertAfter(tr$) | |
.find('td').append($(response.responseText).find('table[bgcolor="#e3e3e3"]')); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment