Skip to content

Instantly share code, notes, and snippets.

@sanmai
Created July 15, 2013 06:53
Show Gist options
  • Save sanmai/5997934 to your computer and use it in GitHub Desktop.
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.
// ==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