一些链接

handsome社区分享
sunpma.com主题美化记录
代码高亮插件Code Prettify
typecho文章挂载Bilibili视频
www.onlaly.com的魔改
typecho评论后台图片超出范围
blog.qqiyu.cn美化魔改
itudo.cn魔改合集
gordsky.cn美化分享
www.cooyf.com的一些美化

博主的介绍

<!--博主介绍的闪字特效--> <span class="text-muted text-xs block"><div id="chakhsu"></div> <script> var chakhsu = function (r) {function t() {return b[Math.floor(Math.random() * b.length)]} function e() {return String.fromCharCode(94 * Math.random() + 33)} function n(r) {for (var n = document.createDocumentFragment(), i = 0; r > i; i++) { var l = document.createElement("span"); l.textContent = e(), l.style.color = t(), n.appendChild(l) } return n}function i() {var t = o[c.skillI]; c.step ? c.step-- : (c.step = g, c.prefixP < l.length ? (c.prefixP >= 0 && (c.text += l[c.prefixP]), c.prefixP++) : "forward" === c.direction ? c.skillP < t.length ? (c.text += t[c.skillP], c.skillP++) : c.delay ? c.delay-- : (c.direction = "backward", c.delay = a) : c.skillP > 0 ? (c.text = c.text.slice(0, -1), c.skillP--) : (c.skillI = (c.skillI + 1) % o.length, c.direction = "forward")), r.textContent = c.text, r.appendChild(n(c.prefixP < l.length ? Math.min(s, s + c.prefixP) : Math.min(s, t.length - c.skillP))), setTimeout(i, d) } /*以下内容自定义修改*/ var l = "", o = ["我好菜啊" ].map(function (r) {return r + ""}), a = 2, g = 1, s = 5, d = 75, b = ["rgb(110,64,170)", "rgb(150,61,179)", "rgb(191,60,175)", "rgb(228,65,157)", "rgb(254,75,131)", "rgb(255,94,99)", "rgb(255,120,71)", "rgb(251,150,51)", "rgb(226,183,47)", "rgb(198,214,60)", "rgb(175,240,91)", "rgb(127,246,88)", "rgb(82,246,103)", "rgb(48,239,130)", "rgb(29,223,163)", "rgb(26,199,194)", "rgb(35,171,216)", "rgb(54,140,225)", "rgb(76,110,219)", "rgb(96,84,200)"], c = {text: "", prefixP: -s, skillI: 0, skillP: 0, direction: "forward", delay: a, step: g}; i() }; chakhsu(document.getElementById('chakhsu')); </script> </span> </span>

左侧边栏导航

{"name":"留言板","class":"fa fa-commenting","link":"https://www.2bboy.com/guestbook.html","target":"_self"},
{"name":"动态","class":"fa fa-clock-o","link":"https://www.2bboy.com/cross.html","target":"_self"},
{"name":"归档","class":"fa fa-calendar","link":"https://www.2bboy.com/file.html","target":"_self"},
{"name":"追番","class":"fa fa-eye","link":"https://www.2bboy.com/bangumi.html","target":"_self"},
{"name":"云盘","class":"fa fa-cloud","link":"https://pan.nyapass.moe"},
{"name":"home","status":"hide"}

顶部导航

{"name":"bilibili","class":"fa fa-desktop","link":"https://space.bilibili.com/22411920"},
{"name":"github","class":"fa fa-github","link":"https://github.com/kizx"},
{"name":"微博","class":"fa fa-weibo","link":"https://weibo.com/u/5938819173"},
{"name":"steam","class":"fa fa-steam","link":"https://steamcommunity.com/id/kizxmoe"},
{"name":"talk","status":"hide"}

时光机社交按钮

{"name":"微博","class":"fontello fontello-weibo","link":"https://weibo.com/u/5938819173"},
{"name":"github","class":"fa fa-github","link":"https://github.com/kizx"},
{"name":"gitee","class":"fa fa-git","link":"https://gitee.com/kizx"},
{"name":"steam","class":"fa fa-steam","link":"https://steamcommunity.com/id/kizxmoe"},
{"name":"联系我contact@2bboy.com","class":"fa fa-envelope","link":"","target":"_self"},
{"name":"bilibili","status":"single","link":"https://space.bilibili.com/22411920"},
{"name":"网易云","status":"single","link":"https://music.163.com/#/user/home?id=111496719"},
{"name":"bangumi","status":"single","class":"fa fa-heartbeat","link":"http://bangumi.tv/user/305237"}

pjax回调函数

<!--彩色标签云-->
let tags = document.querySelectorAll("#tag_cloud-2 a");
let colorArr = ["#428BCA", "#AEDCAE", "#ECA9A7", "#DA99FF", "#FFB380", "#D9B999"];
tags.forEach(tag => {
    tagsColor = colorArr[Math.floor(Math.random() * colorArr.length)];
    tag.style.backgroundColor = tagsColor;
});
<!--代码高亮-->
if (typeof Prism !== 'undefined') {
var pres = document.getElementsByTagName('pre');
                for (var i = 0; i < pres.length; i++){
                    if (pres[i].getElementsByTagName('code').length > 0)
                        pres[i].className  = 'line-numbers';}
Prism.highlightAll(true,null);};
<!--Access插件-->
window.Access.track();

博客底部左侧

<div class="github-badge">
<a href="./" title="©2019&nbsp;kizx">
<span class="badge-subject">Copyright</span><span class="badge-value bg-blue">©2019&nbsp;kizx</span>
</a>
</div>
&nbsp;|&nbsp;
<div class="github-badge">
<a href="http://beian.miit.gov.cn" target="_blank" title="陕ICP备19016973号" style="cursor: url(&quot;/usr/plugins/HoerMouse/static/image/dew/link.cur&quot;), pointer;">
<span class="badge-subject">陕ICP备</span><span class="badge-value bg-green">19016973号</span>
</a>
</div>

博客底部右侧

<div class="github-badge">
<a href="http://www.typecho.org" target="_blank" title="由 Typecho 强力驱动" style="cursor: url(&quot;/usr/plugins/HoerMouse/static/image/dew/link.cur&quot;), pointer;">
<span class="badge-subject">Powered</span><span class="badge-value bg-blue">Typecho</span>
</a>
</div>
&nbsp;|&nbsp; 
<div class="github-badge">
<a href="https://www.ihewro.com/archives/489/" target="_blank" title="Handsome主题" style="cursor: url(&quot;/usr/plugins/HoerMouse/static/image/dew/link.cur&quot;), pointer;">
<span class="badge-subject">Theme</span><span class="badge-value bg-orange">Handsome</span>
</a>
</div>

自定义css

/*超链接文字颜色和加粗*/
.comment-content-true a, .wrapper-lg .entry-content a {
    color: #23b7e5;
    font-weight: bold;
    border-bottom: none;
}

.comment-content-true a:hover, .wrapper-lg .entry-content a:hover {
    color: white;
    background: #23b7e5;
    border-radius: 0.25em;
}

#bangumiList a:hover {
    color: darkorange;
    background: none;
}

/* 首页文章列表悬停上浮 */
.blog-post .panel:not(article) {
  transition: all 0.3s;
}

.blog-post .panel:not(article):hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 10px rgba(73, 90, 47, 0.47);
}

/* 头像呼吸光环和鼠标悬停旋转放大 */
.img-full {
  width: 100px;
  border-radius: 50%;
  animation: light 4s ease-in-out infinite;
  transition: 0.5s;
}

.img-full:hover {
  transform: scale(1.15) rotate(720deg);
}

@keyframes light {
  0% {
      box-shadow: 0 0 4px #f00;
  }

  25% {
      box-shadow: 0 0 16px #0f0;
  }

  50% {
      box-shadow: 0 0 4px #00f;
  }

  75% {
      box-shadow: 0 0 16px #0f0;
  }

  100% {
      box-shadow: 0 0 4px #f00;
  }
}

/*底部页脚*/
.github-badge {
  display: inline-block;
  border-radius: 4px;
  text-shadow: none;
  font-size: 12px;
  color: #fff;
  line-height: 15px;
  background-color: #abbac3;
  margin-bottom: 5px
}

.github-badge .badge-subject {
  display: inline-block;
  background-color: #4d4d4d;
  padding: 4px 4px 4px 6px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px
}

.github-badge .badge-value {
  display: inline-block;
  padding: 4px 6px 4px 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px
}

.github-badge .bg-blue {
  background-color: #007ec6
}

.github-badge .bg-orange {
  background-color: #ffa500
}

.github-badge .bg-red {
  background-color: #f00
}

.github-badge .bg-green {
  background-color: #3bca6e
}

.github-badge .bg-purple {
  background-color: #ab34e9
}

/*视频挂载*/

.iframe_video {
    position: relative;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .iframe_video {
        height: 15em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .iframe_video {
        height: 20em;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .iframe_video {
        height: 30em;
    }
}

@media only screen and (min-width: 1200px) {
    .iframe_video {
        height: 40em;
    }
}

.iframe_cross {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%
}

.iframe_cross iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0
}

自定义javascript

<!--彩色标签云-->
let tags = document.querySelectorAll("#tag_cloud-2 a");
let colorArr = ["#428BCA", "#AEDCAE", "#ECA9A7", "#DA99FF", "#FFB380", "#D9B999"];
tags.forEach(tag => {
    tagsColor = colorArr[Math.floor(Math.random() * colorArr.length)];
    tag.style.backgroundColor = tagsColor;
})

自定义Head

<!--百度统计-->
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?676666207bb69b52dc8af00f42ad387c";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<!--图标-->
<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!--动态标题-->
<script>document.addEventListener('visibilitychange',function(){if(document.visibilityState=='hidden'){normal_title=document.title;document.title='人呢?快回来!';}else{document.title=normal_title;}});</script>

pio插件设置

{
    "welcome": [
        "你好,欢迎来到本站!",
        "这里是醉后的星星,有问题欢迎留言"
    ],
    "touch": [
        "你这个绅士!",
        "别碰我!",
        "你在干什么?",
        "再摸我就报警了!",
        "HENTAI!",
        "你够了喔!",
        "萝莉是什么呀"
    ],
    "skin": [
        "想看看我的新服装吗?",
        "新衣服真漂亮~"
    ],
    "home": "点击这里回到首页!",
    "link": "https://docs.paul.ren/pio/#/",
    "referer": "Hi,欢迎来自 %t 的朋友",
    "close": "QWQ 下次再见吧~",
    "custom": [
        {
            "type": "read",
            "selector": ".post-meta>h2 a"
        },
        {
            "selector": ".music-box",
            "text": "你想听歌吗o((;=゚ 3゚ =))o~♪"
        },
        {
            "selector": ".comment-form-comment",
            "text": "别发小广告噢~"
        }
    ]
}
Last modification:February 8th, 2020 at 07:46 pm