Greasy Fork

NGA AC娘表情FGO化补完计划 by 间桐咕哒子@NGA

将 间桐咕哒子@NGA 制作的FGO化AC娘表情加入到表情列表中

目前为 2017-04-07 提交的版本。查看 最新版本

// ==UserScript==
// @name         NGA AC娘表情FGO化补完计划 by 间桐咕哒子@NGA
// @namespace    https://greasyfork.org/zh-CN/scripts/28491-nga-ac%E5%A8%98%E8%A1%A8%E6%83%85fgo%E5%8C%96%E8%A1%A5%E5%AE%8C%E8%AE%A1%E5%88%92-by-%E9%97%B4%E6%A1%90%E5%92%95%E5%93%92%E5%AD%90-nga
// @version      1.0.4.20170407
// @icon         http://bbs.nga.cn/favicon.ico
// @description  将 间桐咕哒子@NGA 制作的FGO化AC娘表情加入到表情列表中
// @author       AgLandy
// @include      /^https?://(bbs\.ngacn\.cc|nga\.178\.com|bbs\.nga\.cn)/.+/
// @grant        none
// @require      http://cdn.bootcss.com/jquery/3.2.1/jquery.min.js
// ==/UserScript==

//原作者发布地址:http://bbs.ngacn.cc/read.php?tid=11266795
//此脚本发布地址:http://bbs.ngacn.cc/read.php?tid=11275553

var jQ = jQuery.noConflict();

(function(){

    var sc = "\
    var acFGOdata = [\
        './mon_201704/07/f0Q2g-fqdeKjT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-5yirKnToS20-1o.png',\
        './mon_201704/07/f0Q2g-a858KlT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-blbKkT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-bifsKmT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-1tqoKmT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-cd8aKmToS1t-1o.png',\
        './mon_201704/07/f0Q2g-h9zkKkT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-61o0KlT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-g84mKjT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-45peKjT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-ewd1KjT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-1ptdKkT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-bankKkToS1r-1o.png',\
        './mon_201704/07/f0Q2g-1b5jKlT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-ap47KmT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-tc4KkT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-c9g0KjT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-223aKkT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-czogKnToS1v-1o.png',\
        './mon_201704/07/f0Q2g-3y4KjT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-g3hpKoToS21-1o.png',\
        './mon_201704/07/f0Q2g-a4aKkToS1x-1o.png',\
        './mon_201704/07/f0Q2g-7kgtKmToS1x-1o.png',\
        './mon_201704/07/f0Q2g-fk7dKmToS22-1o.png',\
        './mon_201704/07/f0Q2g-33wKnToS27-1o.png',\
        './mon_201704/07/f0Q2g-k65oKmToS1u-1o.png',\
        './mon_201704/07/f0Q2g-670oKjT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-h3rwKkT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-36a8KjT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-h0ocKnToS1v-1o.png',\
        './mon_201704/07/f0Q2g-9jdoKoToS1u-1o.png',\
        './mon_201704/07/f0Q2g-l0a5KnToS1u-1o.png',\
        './mon_201704/07/f0Q2g-b1e5KmToS1v-1o.png',\
        './mon_201704/07/f0Q2g-lbx3KkT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-b301KlT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-ot3KkT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-8m75KmT8S1o-1o.png',\
        './mon_201704/07/f0Q2g-gp60KmT8S1o-1o.png',\
    ];\
    function acFGO(e){\
        var n = e.target.nextSibling;\
        if(n.firstChild)\
            return;\
        var tmp = '';\
        for(i = 0; acFGOdata.length > i; i++){\
            tmp += '<img height=\"60px\" src=\"http://img.ngacn.cc/attachments/' + acFGOdata[i] + '\" onclick=\"postfunc.addText(\\'[img]' + acFGOdata[i] + '[/img]\\');postfunc.dialog.w._.hide()\" \/>';\
        }\
        n.innerHTML = tmp;\
    }\
    ";

    jQ('head').append(jQ('<script type="text/javascript" />').html(sc));

    function go(){
        jQ("[title='插入表情']").click(function(){
            setTimeout(function(){
                jQ('.single_ttip2').find('div.div3').children('button[name="0"]').parent().append(jQ('<button name="FGO" onclick="acFGO(event)">FGO</button><div></div>'));
            },100);
        });
    }

    go();

    jQ('body').on("click","a[href^='/post.php']",function(){
        setTimeout(function(){
            go();
        },500);
    });

})();






/*  ↓  原版尺寸图片地址备份
        './mon_201704/06/f0Q2g-k00iKqToS5k-5k.png',\
        './mon_201703/26/f0Q2g-3ax1K18ToS5k-5k.png',\
        './mon_201703/26/f0Q2g-uxqKrToS5k-5k.png',\
        './mon_201703/26/f0Q2g-12nwKwToS5k-5k.png',\
        './mon_201703/26/f0Q2g-6y10KvToS5k-5k.png',\
        './mon_201703/26/f0Q2g-25ykKxToS5k-5k.png',\
        './mon_201703/26/f0Q2g-37txKyToS5k-5k.png',\
        './mon_201703/26/f0Q2g-1e8uKrToS5k-5k.png',\
        './mon_201703/26/f0Q2g-gt18KvToS5k-5k.png',\
        './mon_201703/26/f0Q2g-3kvkKkToS5k-5k.png',\
        './mon_201703/26/f0Q2g-bqwzKlToS5k-5k.png',\
        './mon_201703/26/f0Q2g-k56KmToS5k-5k.png',\
        './mon_201703/26/f0Q2g-u3zKsToS5k-5k.png',\
        './mon_201703/26/f0Q2g-jkjsKuToS5k-5k.png',\
        './mon_201703/26/f0Q2g-8nucKuToS5k-5k.png',\
        './mon_201703/26/f0Q2g-feswK18ToS5k-5k.png',\
        './mon_201703/26/f0Q2g-635jKrToS5k-5k.png',\
        './mon_201703/26/f0Q2g-jwyoKrToS5k-5k.png',\
        './mon_201703/26/f0Q2g-mfvKsToS5k-5k.png',\
        './mon_201703/26/f0Q2g-jgquK13ToS5k-5k.png',\
        './mon_201703/26/f0Q2g-8oiyKpToS5k-5k.png',\
        './mon_201703/27/f0Q2g-l7zaK16ToS6h-5k.png',\
        './mon_201703/27/f0Q2g-ai40K11ToS6h-5k.png',\
        './mon_201703/27/f0Q2g-la8cKzToS6h-5k.png',\
        './mon_201703/27/f0Q2g-9smzK11ToS6h-5k.png',\
        './mon_201703/27/f0Q2g-imlyK12ToS6h-5k.png',\
        './mon_201703/27/f0Q2g-8gw3K13ToS6h-5k.png',\
        './mon_201704/06/f0Q2g-6lm8KlToS5k-5k.png',\
        './mon_201704/06/f0Q2g-cso1KsToS5k-5k.png',\
        './mon_201704/06/f0Q2g-1mpfKpToS5k-5k.png',\
        './mon_201704/06/f0Q2g-6073K17ToS5k-5k.png',\
        './mon_201704/06/f0Q2g-9et6K15ToS5k-5k.png',\
        './mon_201704/06/f0Q2g-15paK16ToS5k-5k.png',\
        './mon_201704/06/f0Q2g-kx50K13ToS5k-5k.png',\
        './mon_201704/06/f0Q2g-fd9kKvToS5k-5k.png',\
        './mon_201704/06/f0Q2g-afsoKuToS5k-5k.png',\
        './mon_201704/06/f0Q2g-b5biKzToS5k-5k.png',\
        './mon_201704/06/f0Q2g-dyc6K12ToS5k-5k.png',\
        './mon_201704/06/f0Q2g-axo4K10ToS5k-5k.png',\
*/