好久没写有关技术的文章了,现在来篇不太像样的。不过确实很实用的说。
使用方法:将代码复制输入到浏览器的地址栏,即可使用,但有时不灵验。建议加入到浏览器的收藏夹(书签),就能使用了。以后再要使用,点击收藏夹里面的(书签)就行了。
解除网页限制
有时候我们会遇到网页为了保护版权,而禁止右键的情况。那么我们需要以下代码(我们还是要自觉遵守版权的哦):
javascript:alert(document.onselectstart = document.onbeforecopy = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){return true;});void(document.body.onmouseup=''); void(document.body.onselectstart=''); void(document.body.onmouseup=''); void(document.body.oncopy='');
编辑网页
神马?网页能被任意摆布?!对,运行下面这行代码,能让我们修改网页上的文字等元素,让我们恶作剧吧:
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
使用后,双击网页上的文字,是不是能更改了?
解限修改
让我们把两者结合,几乎就无敌了呀!
javascript:alert(document.onselectstart = document.onbeforecopy = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){return true;});void(document.body.onmouseup=''); void(document.body.onselectstart=''); void(document.body.onmouseup=''); void(document.body.oncopy='');javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
取消编辑
编辑好以后,就取消编辑状态吧。然后就能天衣无缝了。注意刷新下就木有了哦!
javascript:document.body.contentEditable='false'; void 0;
设计者:网页上加上超链接
我们现在把上面所列代码的“javascript:”(不含冒号)后面一串内容用abc代替,那么要在网页要加上超链接实现这些功能,可以直接这样写:
<a href="javascript:abc">××功能</a>
这样是有一些问题的,所以我们建议这样写:
<a onclick="abc" href="javascript:void(0)">××功能</a>
欧了。若还有问题,在下面评论吧!
若无特别说明,本文系原创,遵循 署名-非商业性使用 3.0 (CC BY-NC 3.0) 协议,转载文章请注明来自【闪星空间】,或链接上原文地址:http://shansing.com/read/103/
It is easy to click the link in Favorites after add the link to Favorites.
cups?
It means '杯具'.
= =
木有关系,我们可以说中文
路过围观 = =
欢迎。。
问个问题。。回复邮件的插件叫什么名字
不知道。表示我是手动修改主题的。代码见此哦:http://kan.willin.org/?p=1295。另外表示你是第N个有这个需求的人。
赞一个 真的很实用哈 求批准我转走
注意保留原文链接。
[...] 有时候我们会遇到网页为了保护版权,而禁止右键的情况。那么我们需要以下代码(我们还是要自觉遵守版权的哦): javascript:alert(document.onselectstart = document.onbeforecopy = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){return true;});void(document.body.onmouseup=''
; void(document.body.onselectstart=''
; void(document.body.onmouseup=''
; void(document.body.oncopy=''
;右键这里加入书签吧 [...]
最后一行代码收下了~~

确实很常用到的。
比较少用这些代码。
收藏下还是应该的
收藏到生活博客了,很有用,做一下备忘。
好东西,之前只试过破解右键
所以偶必须分享出来!
[...] 原文:点此 « 买了本PHP书,重新系统的学习一下吧 寒假完美落幕 » 各大搜索引擎网站登录入口About页面折腾小记 [...]
[...] 有时候我们会遇到网页为了保护版权,而禁止右键的情况。那么我们需要以下代码(我们还是要自觉遵守版权的哦): javascript:alert(document.onselectstart = document.onbeforecopy = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){return true;});void(document.body.onmouseup=''
; void(document.body.onselectstart=''
; void(document.body.onmouseup=''
; void(document.body.oncopy=''
;右键这里加入书签吧 [...]
[...]原文:点此[...]
[...]原文:点此[...]
好牛掰呀
那是当然,忽忽。
[...]原文感谢:http://shansing.com/read/103/comment-page-1[...]
[...]原文感谢:http://shansing.com/read/103/comment-page-1[...]