Greasy Fork is available in English.

Jandan.skin

皮肤

// ==UserScript==
// @name         Jandan.skin
// @namespace    https://github.com/maijz128
// @version      0.1.0
// @description  皮肤
// @author       MaiJZ
// @match        *://*.jandan.net/*
// @require      http://code.jquery.com/jquery-1.12.4.min.js
// @require      https://cdn.bootcss.com/clipboard.js/1.7.1/clipboard.min.js
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_setClipboard
// @grant        unsafeWindow
// @grant        window.close
// @grant        window.focus
// ==/UserScript==


(function () {
    setTimeout(function(){
        main();
    },10);
})();

function main() {
    // console.log('hello world!')
    addStyle();
    addReportFlag();
}

function addStyle(){
    var style='body,html{background:#000;color:#fff}#header .logo h1 a{background:url(data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAABCCAYAAACijL8SAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOO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mpK5nBI0OFaTKb57VHxxa/dYL+71Il1rP29fZ1T9Tgc9HBz6onmOoU3dcDeBReMwm+BBW52zWMUHI4D/H2FxzpB7OOmhh4OiThc32emmwGvUGesHA4cDqbq1icN5wmuXMA7BolXDof0puqu67rjFyM5XLngN95rEa+hnibV1xSYUqGHw/i9EocDOByaTolNndsdv+BwmG/P2VXPyuHA4abcE5leTwmuvuEZ2gT+/en49c3rNP6ymDU7Sx0ckQqCw3zJgh/u9vPy/R9MMVLrfH2Ji9GFfrhb3/fDcTiYUqdwxTedaruuN9SU3NX9cGHB1aMnFK9TITZGYWgAwQEEB4ID/iO8D1enPjRMcR+uydCwXfBrPXokblskNLGmJr62IoNIBcEBPUdqyvEqRjkcQHCYaKRGxGt+d3X4dvHjuZOFBmuKUQ4HEBySIO6kISby8vxkoaIosrFrRuOkgcOB4ICzeAMAAP//AwD6WNXUnA+MqQAAAABJRU5ErkJggg==);height:66px}#header .logo{margin-bottom:6px}#body{background:0;border-left:none;border-right:0}#header .nav{background-color:#0f0f0f}#header .nav-link{background-color:#0f0f0f;color:#FFF}#content .title{background-color:transparent;border-bottom:0;color:#fffefe}#content .title a{color:#FFF}#content .post .indexs h2 a{color:#f90!important;outline-style:none;text-decoration:none}#content .post .indexs{color:#999}#content .f{border-bottom:0}.acv_author{background-color:#1c1c1c;color:#ccc}.jandan-vote{color:#505050}#sidebar ul{margin-top:15px;border:1px solid #343434;background-color:#181818}#sidebar form{border:1px solid #343434;background-color:#181818}#sidebar form input{color:#cacaca;background-color:#363636}.acv_comment{background:none repeat scroll 0 0 transparent;color:#999}.host-list-split{background-color:transparent}.hot-tabs li{border:0;background:#333;color:#a3a2a2}.hot-tabs li:hover{background:#404040}.hot-tabs li.current{background-color:#404040;color:#FFF}ul.hot-tabs{border-radius:0 0 0 0!important;-moz-border-radius:0 0 0 0!important;-webkit-border-radius:0 0 0 0!important;-ms-border-radius:0 0 0 0!important;-o-border-radius:0 0 0 0!important}#sidebar .s_title:hover{color:#f90}#sidebar li a{color:#999}#sidebar li a:hover{color:#f90}#sidebar .s_related li{border-top:0}#sidebar #float{background-color:transparent}.wp-pagenavi a{color:#f90;background-color:#000;border:3px solid #f90}.wp-pagenavi a:hover{color:#f90;background-color:#3f3f3f;border:3px solid #f90}#footer{border:0}#nav_top{background-color:#999}#nav_next a,#nav_prev a{color:#999}#content .post p{color:#999}#content .post h1{border-bottom:1px solid #252525}#content .post h1 a,.post h2 a{color:#ccc}#content .post h1 a:visited,.post h2 a:visited{color:#ccc}#content .other a{color:#999}#content .other a:hover{color:#f90}.commentlist .row{border-bottom:transparent}.commentlist .text{color:#b8b8b8}.jandan-tucao{margin:10px 0;padding:0 10px;border:0;border-bottom:1px solid #eee}.tucao-row{border-bottom:0}.flag{background:url(data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAHY0lEQVR4Xu3cwYpsZxWG4f1jhrmkYAgGkSBiMoh0TbwIL0C9Eyen+hzUQcgoo8SBEydOch2BgIQg2r80HpCo6VO7a39Ve616erz3t9Z6v/3SsxrLyr+7u7svxhjvrnztVh9/mHN+fH9//8dbBVD97rH2AIKsIzbn/OeyLL8gyTpue3maIBdogiQXgBwaQZAQ2P+OfS3Jh/f3959eaKQxGxAgyAYQT42Yc/5jWZaPSHIqses/R5ALd0CSCwM/cxxBzgT4nNdJ8hxq13mHINfhvjxKMsb46fF4/OxKKxh7AgGCnAAp9cic8+9jjJ+RJEX4/FyCnM/wrASSnIUv/jJB4ojfPOC1JD85Ho+fv/lpT1ySAEEuSfvpWd8uy/IBSfZTyOMmBNlXHyTZVx8E2Vkfj+t8O8Z4/8WLF3/e4W43t5L/IPus/Jsxxo9Jcv1yCHL9Dr5vA5LsoBuC7KCEJ1YgyZX7IciVCzhh/DfLsrx3PB7/csKzHtmYAEE2BpqIm3P+bYzxI5Ik6D6dSZDLM3/WRJI8C9vZLxHkbISXC3iUZM75w5cvX/71clNvexJBivU/5/x6zvkeSS5THEEuw3nTKS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DocP5pyfkGQ9VYKsZ1byDZI8rzaCPI9bybdIsr42gqxnVvoNkqyrjyDreLV4miSn10iQ01m1epIkp9VJkNM4tXyKJG+ulSBvZtT6CZI8XS9BWn/+px1Hku/nRJDTvqH2T5Hk/1dMkPaf/ukHkuR/WRHk9O/nJp4kyXdrJshNfPbrjiTJf3gRZN23czNPk+TfVRPkZj759YeShCAtfvZn/ad/+hu3Lon/IKd/Kzf75OFweH9ZlnduEcAlfjttrAXrh+PWEvN8ZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eMECBJHbEBlAgSp3J7d4wQIEkdsQGUCBKncnt3jBAgSR2xAZQIEqdye3eME/gXCn4sF6nD/DwAAAABJRU5ErkJggg==);background-size:100%}.flag-container{width:14px;height:14px;display:inline-block;visibility:hidden}.jandan-vote:hover .flag-container{visibility:visible}#content .column .title2 a:hover{color:#f90}#content h3 a{color:#999}.cp-pagenavi{border-bottom:0}.cp-pagenavi .current-comment-page{border:0;margin:3px;color:#000;background:#f90;padding:6px 15px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px}.cp-pagenavi a{background:#1f1f1f;color:#FFF;margin:3px;padding:6px 15px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px}.cp-pagenavi a:hover{background:#3f3f3f}.hot-tabs{border-bottom:0}.hot-tabs .hot-tab{border-right:0;background-color:#404040;color:#FFF;margin-right:5px}.hot-tabs .hot-tab a{color:#a3a2a2}.hot-tabs .hot-tab.current-tab{background-color:#404040}.hot-tabs .hot-tab.current-tab a{color:#FFF}.tucao-hot{border:0;background-color:transparent}.tucao-content{color:#999}.tucao-hot-title{background-color:#1c1c1c;color:#ccc;border-bottom:0}span.tucao-id{color:#ccc}.tucao-form button,#commentform #submit{background-color:#f90;border:0;color:#000}';

    var e = document.createElement("style"); 
    e.innerHTML = style; 
    document.head.appendChild(e);
}

function addReportFlag(){
    var el_a_list = $('.comment-report-c a');
    el_a_list.each(function(e){
        $(this).text('');
        $(this).append('<div class="flag-container flag"></div>');
    });

    // var el_a_list2 = $('a.tucao-report');
    // el_a_list2.each(function(e){
    //     $(this).text('');
    //     $(this).append('<div class="flag-container flag"></div>');
    // });
    
}