■スレッドリストへ戻る■ 全部 1- 101- 201- 301- 最新50

Mozillaで2ch専用ブラウザ

94 :超ぉ〜Anne :2001/11/04(日) 23:09
boardtree.js の Moz2chBoardTree() に/* これはそのうち設定から読むようにする */
this.url = "http://www.2ch.net/newbbsmenu.html";ってのがあったんで,こいつを入れる所も作ってみました.
上の patch を適用後,さらに,moz2ch/content/moz2ch/pref/pref-moz2ch-1.xul に- var _elementIDs = ["moz2chPrefHNInput","moz2chPrefMailInput","moz2chPrefProxyReadCheck", "moz2chPrefProxyRead","moz2chPrefProxyWrite", "moz2chPrefProxyWriteCheck","moz2chPrefGetLimitThread","moz2chPrefGetLimitRes"];
+ var _elementIDs = ["moz2chPrefHNInput","moz2chPrefMailInput","moz2chPrefProxyReadCheck", "moz2chPrefProxyRead","moz2chPrefProxyWrite", "moz2chPrefProxyWriteCheck","moz2chPrefGetLimitThread","moz2chPrefGetLimitRes", "moz2chPrefBBSMenuURL"];
つまり _elementIDs に moz2chPrefBBSMenuURL を足して,
さらに+ <groupbox orient="horizontal">
+ <caption label="&moz2chPrefBBSMenuURL.label;"/>
+ <textbox size="30" id="moz2chPrefBBSMenuURL" pref="true"
+ preftype="value" prefstring="moz2ch.bbsmenuurl" prefattribute="value"/>
+ </groupbox> </window>として, moz2ch/locale/ja-JP/moz2ch/pref/pref-moz2ch.dtd の最後に+<!ENTITY moz2chPrefBBSMenuURL.label "bbsmenu ファイルのありか">
+<!ENTITY moz2chPrefBBSMenuURL.accesskey "U">とすれば一応出来ます.んで,これらの設定をコードから読むのは
multizilla のソースとかに作ってある関数コピペしちゃっていいんですかね?
そっちの実装はお任せします(無責任

186KB
新着レスの表示

スレッドリストへ戻る 全部 前100 次100 最新50

0ch BBS 2004-10-30