インプレスのページの記事の折り返しを画面に合わせて調整 Edit

メッセージ Edit



Impress Watch

ワイド画面で見にくいImpressのページを見やすくするためのフィルタです。 175, 176, 177さん、ありがとう。

案1
 Name = "Impress Article Width Changer"
 Active = TRUE
 Multi = TRUE
 URL = "[^/]++.impress.co.jp/$TYPE(htm)"
 Bounds = "<(table|td)*<(tr|/td)>"
 Limit = 1024
 Match = "\1 width=([#400:499]|[#900:999])\2 \3"
 Replace = "\1 \3"
案2
 [Patterns]
 Name = "Impress Article Width Changer (JS)"
 Active = TRUE
 URL = "[^/]++.impress.co.jp/"
 Limit = 128
 Match = "<end>"
 Replace = "<script type="text/javascript">window.onload = function(){"
 "prx_tbl_width = document.body.clientWidth - 160 - 300 - 30;"
 "prx_tbl = document.getElementsByTagName('TABLE');"
 "for (i=0; prx_tbl[i]; ++i)"
 " if (400 < prx_tbl[i].width && prx_tbl[i].width < 499)"
 " prx_tbl[i].width = prx_tbl_width;"
 "};"
 "window.onresize = prxResize;"
 "function prxResize() {"
 "for (i=0; prx_tbl[i]; ++i)"
 " if (prx_tbl[i].width == prx_tbl_width)"
 " prx_tbl[i].width = document.body.clientWidth - 160 - 300 - 30;"
 "prx_tbl_width = document.body.clientWidth - 160 - 300 - 30;"
 "}"
 "</script>"

添付ファイル: filepattern_impress.txt 144件 [詳細]

複製名前変更