Created
January 5, 2010 17:09
-
-
Save fuba/269529 to your computer and use it in GitHub Desktop.
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 melonbooks permalink | |
// @namespace http://fuba.moaningnerds.org/ | |
// @description append permalink to melonbooks book id | |
// @include http://shop.melonbooks.co.jp/shop/list/* | |
// @require http://gist.github.com/3238.txt | |
// ==/UserScript== | |
var ids = $X('//tr[./th[contains(text(), "商品番号")]]/td'); | |
ids.forEach(function(item){ | |
var id = item.textContent; | |
item.innerHTML = '<a href="http://shop.melonbooks.co.jp/shop/detail/' + id + '">' + id + '</a>' | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment