09/04/20 19:50:01 so92FZ1D0
>>356
>>331で書いたけど
βになってからスキンにjQuery採用して、細かい機能の整備/調整までは手が回ってない
のではないかと思うので、本体が落ち着くまで旧スキンか有志スキンが推奨される。
で、>>339,344と低脳具合晒した汚名を返上すべく 倍々バグの修正の再チャレンジだ
これでどうだこんちくしょう、やりたい事をわかってもらえるだろうか?
// chaikaβデフォスキン倍々バグ修正
// 次のコードを
var test = [];
for (var no = popupContent.length - 1; no > -1 ; no--) // ソート等するためNo抽出
{ test.unshift([ popupContent[no].firstChild.firstChild.innerHTML * 1 , popupContent[no] ]); }
test.sort(function (a, b) { return a[0] - b[0]; }); // jQueryってソートされて出力されんのか知らんので
for (var no = test.length - 2; no > -1 ; no--) // 前後に同じNo(重複)があれば消す
{ if (test[no][0] == test[no + 1][0]) test.splice(no, 1); }
for (var no = test.length - 1; no > -1 ; no--) // 不要なNo部分を消す
{ test[no] = test[no][1]; }
popupContent = test;
if(popupContent.length == 1 && resNumber * 1 == popupContent[0].firstChild.firstChild.innerHTML * 1) // 残ったのが同じNoなら0個扱い
{ popupContent = $(document.createElement("p")).text("このレスのみ"); }
// 以下のコードの前に追加
if(popupContent.length == 0){
popupContent = $(document.createElement("p")).text("このレスのみ");
}