Show Site All UserJS | 显示当前网站所有可用的UserJS脚本 Jaeger

显示当前网站的所有可用UserJS(Tampermonkey)脚本

As of 2016-11-03 12:51:23 UTC. See the latest version.

// ==UserScript==
// @name         Show Site All UserJS | 显示当前网站所有可用的UserJS脚本 Jaeger
// @namespace    https://gist.github.com/jae-jae/39d526079cb2408389129caf98debc29
// @version      1.0
// @description  显示当前网站的所有可用UserJS(Tampermonkey)脚本
// @author       Jaeger <JaegerCode@gmail.com>
// @icon         https://greasyfork.org/assets/blacklogo16-b3c5358e47023ea84cbeac99a018eb28.png
// @include        *
// @require      https://cdn.bootcss.com/babel-core/5.6.15/browser-polyfill.min.js
// @require      https://cdn.bootcss.com/babel-core/5.6.15/browser.min.js
// @require     https://greasyfork.org/scripts/23419-l-js/code/ljs.js?version=148792
// @require     https://greasyfork.org/scripts/23420-userjs-base-js/code/userjs-basejs.js?version=155705
// @grant        GM_xmlhttpRequest
// @noframes
// @connect     cdn.bootcss.com
// @connect     raw.githubusercontent.com
// @connect     gist.githubusercontent.com
// @connect     greasyfork.org
// ==/UserScript==

/* jshint ignore:start */
var inline_src = (<><![CDATA[
/* jshint ignore:end */
/* jshint esnext: true */

class FetchUserjs{
    constructor(){
        this.homeUrl = 'https://greasyfork.org/zh-CN/scripts/24508';
        this.api = 'https://greasyfork.org/en/scripts/by-site/${host}.json';
        this.host =  location.host.split('.').splice(-2).join('.');
        this.showTime = 10;
        this.quietKey = 'jae_fetch_userjs_quiet';
        this.cacheKey = 'jae_fetch_userjs_cache';
        this.tplBox = '<div id="jae_fetch_userjs_wrapper"><style>#jae_fetch_userjs{position:fixed;width:400px;background-color:#f5f6f7;border:1px solid #adb1bb;color:#424e67;z-index:1000;bottom:10px;right:20px;z-index:9999}#jae_fetch_userjs span{height:22px;display:inline;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-family:"microsoft yahei",tahoma,arial}#jae_fetch_userjs_info{width:380px;padding:5px 10px;font-size:14px;line-height:22px;overflow:hidden}#jae_fetch_userjs_info_file,#jae_fetch_userjs_info_count{max-width:150px;padding:0 5px;font-weight:700;color:#3b8cff}#jae_fetch_userjs i,#jae_fetch_userjs_close,#jae_fetch_userjs_switch{height:22px;background:url(data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QNvaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjUtYzAxNCA3OS4xNTE0ODEsIDIwMTMvMDMvMTMtMTI6MDk6MTUgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6Q0EzRkUwOTg3REU0RTMxMTgxNUJDQzVGMjRGRTIzNTYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RkMzQUI4MkY5Rjg2MTFFNkE4QzdGNkM0OUY0RUZBQUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RkMzQUI4MkU5Rjg2MTFFNkE4QzdGNkM0OUY0RUZBQUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgU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EGbpovJt6rmWyF6rXp2ZN6lVCsSAKqIGILEKoVS7kAySEGSQhebNxG0s23NHKHIswJGv2NlZygY8bBRfGjApYy8oLbP0P0u4iohKyK+eXfv8AnFEnNIKNMRs5EskrWuSGwHYnaXbKSR4WjFEkl5rZ5F5SthoxD1IjK0hhCwjpRpEUjiiJjjRUJBkcv3b3FnXWTKW5JGSqK/hxj5Qh+pwcRhBJyk9t2kDO7gM7MwBE5N8tPI6x2FvuTeXNRNe3tcfUWkXqr482RU2aMU6sZiowY8WLXkTxNIWGGvjjQtqEIiTp7nVv1/JryvrYSHt+vhai4+vKkkZ9szrJHvwkNoubTOoJTk0xbpkxE9P2dTMnmZ35NlJMvJk7BuSoyMPZ6RRtuSiDj0ApIDbLGBz9v+/2tUvm9Ve5DQiarOlw1ugrnlz1liyvrZ5KowoUgVtnVQlhkDVdxW/JWevNHZGVWGRxFCSQEwQyx31lMPj81jXw+TRpcbKFDoXcCRVZW6chVg0kT8eE0Tlo54i8MyyRSOjWlRyNzG3lyNJhHdQsVYKh4MwI5ICpCOu/KN1AeJwskRR0Vgdqr6XLpjpz3FZ1t+unFBLhgLWuu5gHVtiZTlkRSGU6XojYG2UY0kUdkoATimyuCEWEuHxyZb7cSIJkzW6DOpK84g/NFkVSFk6TczA0gZoBNOIigsTB/pyNxsf9mO/Kl1uqFIB4yFeLMjEFk6g49UIQJenEZAxij4/KvK6G6qNLfVdOebS46vCtNNaQDyvBpgrK7q88BMcSiezB8y5uRoI2qvqe5/2IqIvZczGNoXamOtzxx5C9I8cEZIDyskUkzhF9J4xRO7EDYAePpGqa+PvWqti5Xid6taNXlcA8UVpEiVm9Q5O6qB6STv8ALr//2Q==) no-repeat 0 0}#jae_fetch_userjs_close{width:16px;float:right;background-position:0 -22px}#jae_fetch_userjs_switch{width:78px;float:right;margin-right:10px;background-position:0 -44px}.jae_fetch_userjs_show_file #jae_fetch_userjs_switch.expand{background-position:0 -66px}.jae_fetch_userjs_show_file #jae_fetch_userjs_file_list{display:block;max-height:400px;overflow-y:scroll;}#jae_fetch_userjs i{display:inline-block;float:left;width:22px}#jae_fetch_userjs_file_list{display:none;padding:0 10px;border-top:1px solid #adb1bb;font-size:12px}#jae_fetch_userjs_file_list .jae_fetch_userjs_file{padding:10px 0;border-bottom:1px solid #dfdfdf;line-height:22px;overflow:hidden}#jae_fetch_userjs_file_list .jae_fetch_userjs_file a{float:right;text-decoration:none;color:#5a5f65}#jae_fetch_userjs_file_list .jae_fetch_userjs_file span{width:420px}.jae_fetch_userjs_file_name{cursor:pointer}.jae_fetch_userjs_file{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}#jae_fetch_userjs_home{cursor:pointer;}</style><div id="jae_fetch_userjs" class=""><div id="jae_fetch_userjs_info"><a href="javascript:void(0)" id="jae_fetch_userjs_close"></a> <a href="javascript:void(0)" id="jae_fetch_userjs_switch" class="expand"></a> <i id="jae_fetch_userjs_home"></i> <span>发现</span> <span id="jae_fetch_userjs_info_count">${count}</span><span>个脚本适用于当前页面</span></div><div id="jae_fetch_userjs_file_list">{@each list as item,index}<div class="jae_fetch_userjs_file"><a class="jae_fetch_userjs_install" href="${item.code_url}"><i></i>安装</a><span class="jae_fetch_userjs_file_name" data-url="${item.url}" title="${item.description}" >${parseInt(index)+1}.${item.name}</span></div>{@/each}</div></div></div>';
    }

    getJSON(url,callback){
        GM_xmlhttpRequest({
            method:'GET',
            url:url,
            onload:(res)=>{
                let json = JSON.parse(res.responseText);
                callback(json);
            }
        });
    }

    getData(host,callback){
        
        let data = sessionStorage.getItem(this.cacheKey);
        if(data)
        {
            data = JSON.parse(data);
            callback(data);

        }else{
            let api = juicer(this.api,{host:this.host});
            this.getJSON(api,(json)=>{
                sessionStorage.setItem(this.cacheKey,JSON.stringify(json));
                callback(json);
            });
        }
        
        
    }

    bindEvent(){
        $('#jae_fetch_userjs_switch').click(()=>{
            $('#jae_fetch_userjs').toggleClass('jae_fetch_userjs_show_file');
            clearTimeout(this.timeId);
        });

        $(".jae_fetch_userjs_file_name").click(function(){
            let url = $(this).data('url');
            window.open(url);
        });

        $("#jae_fetch_userjs_close").click(()=>{
            sessionStorage.setItem(this.quietKey,1);
            $('#jae_fetch_userjs_wrapper').remove();
        });
        
        $(".jae_fetch_userjs_install").click(function(){
            $(this).html('<i></i>下载中...');
        });

        $("#jae_fetch_userjs_home").click(()=>{
            window.open(this.homeUrl);
        });

        this.timeId = setTimeout(()=>{
            $('#jae_fetch_userjs_wrapper').remove();
        },this.showTime*1000);
    }

    get isQuiet(){
        let quiet = sessionStorage.getItem(this.quietKey);
        return quiet?true:false;
    }

    render(){
        this.isQuiet || this.getData(this.host,(json)=>{
            if(json.length){
                let box = juicer(this.tplBox,{list:json,count:json.length});
                $('body').append(box);
                this.bindEvent();
            }
        });
    }

}

ljs.exec(['jQuery','juicer'],()=>{
    let fu = new FetchUserjs();
    fu.render();
});

/* jshint ignore:start */
]]></>).toString();
var c = babel.transform(inline_src);
eval(c.code);
/* jshint ignore:end */