Komica poi180110

metadata description

As of 2018-01-11. See the latest version.

// ==UserScript==
// @name         Komica poi180110
// @name:zh      今年一定島 以圖查圖
// @namespace    https://greasyfork.org/
// @description  metadata description
// @description:zh  汲汲營營大報社
// @author       稻米
// @include      http://*.komica2.net/00/*
// @include      https://*.komica2.net/00/*
// @include      http://*.komica2.net/*/pixmicat.php?res=*
// @include      https://*.komica2.net/*/pixmicat.php?res=*
// @version      2018.01.11.0002.build16299
// @grant        none
// ==/UserScript==





//jquery
try{
    $(document).ready(function() {
        //console.log( 'jquery ready' );
        //全域變數//global
        time = new Date();
        gg=[];
        //
        //poi();
        ypa();

    });
    //throw "is empty";
}
catch(err){
    console.log( ''+err.message );
}
finally {
    //console.log( 'try-catch-finally' );
}



function ypa(){
    var tmp='';
    var imgurl='';

    $(".file-text").each(function(){
        imgurl='';
        //imgurl=$(this).find('a').attr('href');////使用原圖網址
        imgurl='http:'+$(this).parent().find('.file-thumb img').attr('src');//使用縮圖網址
        //console.log( tmp );
        //console.log( $(this).parent().find('.file-thumb img').attr('src') );
        tmp='';
        if( /webm$/.test( tmp ) ){
            //console.log( '影片' );
            tmp=tmp+' ?影片';
        }else{
            //console.log( '不是影片' );
        }
        tmp=tmp+' <a href="http://iqdb.org/?url=' + imgurl + '" target="_blank">[iqdb]</a>';
        tmp=tmp+' <a href="http://saucenao.com/search.php?url=' + imgurl + '" target="_blank">[saucenao]</a>';
        tmp=tmp+' <a href="http://www.google.com/searchbyimage?image_url=' + imgurl + '" target="_blank">[google]</a>';
        tmp=tmp+' <a href="https://ascii2d.net/search/url/' + imgurl + '" target="_blank">[ascii2d]</a>';
        tmp=tmp+' <a href="https://whatanime.ga/?url=' + imgurl + '" target="_blank">[whatanime]</a>';
        $(this).append(tmp);
    });

}
function poi(){

    $(".file-text").css({
        "background-color":"yellow",
        "border":"1px solid #000",
    });//連結上背景色 不想上色就把這段刪除


}//function poi2(){