今年一定島 只看開串圖

汲汲營營大報社

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @namespace    https://greasyfork.org/zh-TW/scripts/408408
// @name         今年一定島 只看開串圖
// @description  汲汲營營大報社
// @author       稻米
// @version      2022.02.27.0010.build16299
// @grant        none

// @include      *://*.komica.org/00/*

// @exclude      *://*.komica.org/00/src/*
// @exclude      *://*.komica.org/00/thumb/*
// @exclude      *.jpg
// @exclude      *.png
// @exclude      *.webm

// @license      WTFPL

// ==/UserScript==

try{}
catch(err){}
finally{}
//

$(document).ready(function(){
    var aa=$("div.thread");
    //console.log( aa );
    if( aa.length > 10 ){
        //poi(); //首頁模式才執行
        poi200808a();
        style();
    }
});

function style(){

}
function poi200808a(){
    //建立上方的列表區塊
    var aa=$("div#contents");
    //console.log( aa );
    //aa.before("<div id='id200808'>id200808</div>");
    //$('#id200808').html('<poi><button type="set">只看開串圖</button></poi>');//reset
    aa.before('<poi><button type="set">只看開串圖</button></poi>');

    $("poi >button:contains('只看開串圖')").click(function(){
        console.log('按鈕');
        poi200808b();
    });



}

function poi200808b(){
    //建立上方的列表區塊
    var aa=$("div.thread");
    //console.log( aa );
    $.each(aa,function(index,item){
        var aa2=$(item).find('div.post.reply');
        //console.log( aa2 );
        $.each(aa2,function(index,item){
            var aa3=$(item);
            //console.log( aa3 );
            //$(this)
            $(item).css({
                "border": "2px solid red",
                'display':'inline-block',
                'overflow': 'hidden',
                'margin':'0px',
                'padding':'0px',
                'width': '10px',
                'height':'10px',
            });//bottom
        });


    });




}