网页禁止F12、审查元素

君子按下F12或者右击审查元素时,网站直接变成空白页,一段JavaScript就可以了,将下面这段代码插入到网站的</body> 标签前。(可惜,不兼容IE,据说也不兼容Firefox,自己测试吧,chrome内核肯定是可以的,所以只能用来防小白或者君子了)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!--more-->
ipt
<script>
//防止小白F12
function fuckyou(){
window.close(); //关闭当前窗口(防抽)
window.location="about:blank"; //将当前窗口跳转置空白页
}
function ck() {
console.profile();
console.profileEnd();
//我们判断一下profiles里面有没有东西,如果有,肯定有人按F12了,没错!!
if(console.clear) { console.clear() };
if (typeof console.profiles =="object"){
return console.profiles.length > 0;
}
}
function hehe(){
if( (window.console && (console.firebug || console.table && /firebug/i.test(console.table()) )) || (typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)){
fuckyou();
}
if(typeof console.profiles =="object"&&console.profiles.length > 0){
fuckyou();
}
}
hehe();
window.onresize = function(){
if((window.outerHeight-window.innerHeight)>200)
//判断当前窗口内页高度和窗口高度,如果差值大于200,那么呵呵
fuckyou();
}
</script>

搬运至:亲爱的娜 《网页禁止F12、审查元素》 https://www.dearna.com.cn/archives/241/

Hitokoto一言API

#鸽

更新日志

  • 2018年5月2日:第一版发布,仅仅支持GBK编码输出
  • 2018年5月4日:支持js格式输出!

请求

请求地址:https://xsy.app/hitokoto/get
请求方式:GET
请求编码:接口:charset 参数:UTF-8/

Read more

教大家如何用SendCloud发送评论回复邮件

前言

今天在跟群里的小哥聊天的时候,有人给我推荐了这么一款触发式邮件服务的云端邮件发送平台!搭配typecho插件刚刚好!给大家上一段百度百科吧~

SendCloud由搜狐武汉研发中心孵化的项目,是致力于为开发者提供高质量的触发邮件服务的云端邮件发送平台,为开发者提供便利的AP
Read more

添加几个特效

首页文章版式圆角化

/*首页文章版式圆角化*/
.panel{
    border: none;
    border-radius: 15px;
}

.panel-small{
    border: none;
    border-radius: 
<!--more-->
15px;
}

.item-thumb{
    border-radius: 15px;  
}

首页文章图片获取焦点放大

/*首页文章图片获取焦点放大*/
.item-thumb{
    cursor: pointer;  
    transition: all 0.6s;  
}

.item-thumb:hover{
      transform: scale(1.05);  
}

.item-thumb-small{
    cursor: pointer;  
    transition: all 0.6s;
}

.item-thumb-small:hover{
    transform: scale(1.05);
}
 

首页头像转动

/*首页头像转动*/
.thumb-lg{
    width:130px;
}

.avatar{
    -webkit-transition: 0.4s;
    -webkit-transition: -webkit-transform 0.4s ease-out;
    transition: transform 0.4s ease-out;
    -moz-transition: -moz-transform 0.4s ease-out; 
}

.avatar:hover{
    transform: rotateZ(360deg);
    -webkit-transform: rotateZ(360deg);
    -moz-transform: rotateZ(360deg);
}

#aside-user span.avatar{
    animation-timing-function:cubic-bezier(0,0,.07,1)!important;
    border:0 solid
}

#aside-user span.avatar:hover{
    transform:rotate(360deg) scale(1.2);
    border-width:5px;
    animation:avatar .5s
}

心知天气网页天气插件接入

前言

今天在访问别人的博客的时候发现这么一款小插件,美观,而且不是特别影响速度,代码量也不大,而且js还是cdn加速过的,经过各方面评估,决定接入这款天气插件,方便我,也方便大家啦。看博客的时候看天气,你值得拥有!

正文

第一步

打开心知天

Read more

将本地项目上传到Github

前言

今天教大家如何将本地仓库上传到Github,很方便的!Git安装大家都会啦,我就不说了~

操作

第一步

我们需要先创建一个本地的版本库(其实也就是一个文件夹)。

你可以直接右击新建文件夹,也可以右击打开Git bash命令行窗口通过命令来创建。

现在我通

Read more

修改网站鼠标样式

前言

嘿,我回来了,最近期中考试,学业紧张,所以文章不会发的那么积极,请谅解啦。今天教大家的就是如何修改网站图标样式!

讲解

首先我们分析下这段css代码,
default 表示的是默认的鼠标样式,也就是说你在我的页面上乱晃鼠标,就是一直显示这个样式的!

**poi

Read more

熊掌号粉丝关注改造

前言

嘿嘿嘿,我来了,群里的老哥说不造怎么引入熊掌号的关注页面嘞,所以我跑来写篇文章!就是这样

操作

  1. 来来来,首先找到你的主题文件
    /www/wwwroot/usr/themes/handsome
    大概就是这个样子的啦

  2. 再找到 component

Read more