Foxage2chat SOFTWARE
Foxage2ch - 暇つぶし2ch36:名無しさん@お腹いっぱい。
08/05/20 14:30:17 P1W2iFvk0
気がついたらfoxage2chのバージョンが2つ上がってた。
差分取ったらまちBBSで仕様変更があったので現行b2r向けにパッチを書いてみた。
とりあえずb2rのスレに書かないと怒る人がいるので先に書いてきた。
スレリンク(software板:562番)
foxage2ch.js line 25-26
checkAndLoad: foxage2chUtils.getBoolPref("foxage2ch.checkAndLoad", false),
+ machiNewInterface: foxage2chUtils.getBoolPref("foxage2ch.machiNewInterface", true),
openInterval: foxage2chUtils.getIntPref("foxage2ch.openInterval", 3),
line 60-63
var lastNum = parseInt(foxage2chData.getProperty(aThreadRes, "lastNum"));
+ var isMachi = url.indexOf(".machi.to/") > 0;
if (!this.prefs.showAllPosts) {
- if (this.prefs.bbs2chreader)
+ if (isMachi && !this.prefs.machiNewInterface)
+ url += "&LAST=50";
+ else if (this.prefs.bbs2chreader)
url += "l" + foxage2ch.prefs.upwardMargin;
utils.js line 71-73
else if ( aURL.match(/\/bbs\/read\.cgi\/(\w+)\/(\d+)\//) )
return [null, "urn:foxage2ch:" + RegExp.leftContext + "/" + RegExp.$1 + "/" + RegExp.$2];
+ else if ( aURL.match(/\/bbs\/read\.(?:pl|cgi)\?BBS=([^&]+)&KEY=([^&]+)/) )
+ return [null, "urn:foxage2ch:" + RegExp.leftContext + "/" + RegExp.$1 + "/" + RegExp.$2];
else
line 100-102
var bbs = arr.pop();
+ if (this.getBoolPref(foxage2ch.machiNewInterface))
url = "http://" + arr[0] + "/bbs/read.cgi/" + bbs + "/" + key + "/";
+ else
+ url = "http://" + arr.join("/") + "/bbs/read.cgi?BBS=" + bbs + "&KEY=" + key;
}


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch