2008/08/01

Printer version for articles on ITMedia by Greasemonkey scripts

P1210756
Olympus E300
Annecy.France
2008.01.21

早晨八點多醒來,看到窗外的天空顏色不太一樣,
隨手拿起床邊的相機拍了幾張。
然後,
滿意地再回到睡夢中

****

Wrote a small javascript for GreaseMonkey so that I can access printable version directly from the website of ITMedia.

if(/itmedia.co.jp\/[\D\d]*\//.test(href) && /html/.test(href) && !/print/.test(href))
window.location.href = window.location.href + '\?print'

No comments:

Post a Comment