返回> 网站首页 

浏览器快捷按钮 - 浏览器地址栏脚本

yoours2011-07-28 17:11:53 阅读 1230

简介一边听听音乐,一边写写文章。

在没有输入法的时候,可以使用在线输入法:
QQ输入法
javascript:(function(q){!!q?q.toggle():(function(d,j){j=d.createElement('script');j.src='//ime.qq.com/fcgi-bin/getjs';j.setAttribute('ime-cfg','lt=2');d.getElementsByTagName('head')[0].appendChild(j)})(document)})(window.QQWebIME)

搜狗输入法
javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('src','http://web.pinyin.sogou.com/web_ime/init.js');document.body.appendChild(e);})())

分享一篇文章时,没有提供分享按钮
QQ空间分享
javascript:(function(){var p={url:location.href,desc:'',summary:'',title:'',site:'',pics:''};var s=[];for(var i in p){s.push(i+'='+encodeURIComponent(p[i]||''));}var d=['<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?',s.join('&'),'" target="_blank"><img src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/app_share/share_bt.png"/></a>'].join('');var mydiv=document.createElement("div");mydiv.setAttribute("style","float:right;position:fixed !important;top/**/:200px;position:absolute;z-index:300;top:expression(offsetParent.scrollTop+200);right:20px;");mydiv.innerHTML=d;document.body.appendChild(mydiv);})();

QQ微博分享
javascript:(function(){var p = {url:location.href,desc:'',summary:'',title:document.title,site:'',pics:'' };var s = [];for(var i in p){s.push(i + '=' + encodeURIComponent(p[i]||''));}var d=['<a href="http://v.t.qq.com/share/share.php?',s.join('&'),'" target="_blank"><img src="http://v.t.qq.com/share/images/s/b24.png"/></a>'].join(''); var mydiv=document.createElement("div"); mydiv.setAttribute("style","float:right;position:fixed !important; top/**/:200px;position:absolute; z-index:300; top:expression(offsetParent.scrollTop+200);right:20px;");mydiv.innerHTML = d; document.body.appendChild(mydiv);})();

添加到QQ书签
javascript:(function(){var%20p={uri:location.href,title:document.title,from:3,jumpback:2,noui:1};var%20s=[];for(var%20i%20in%20p){s.push(i+'='+encodeURIComponent(p[i]||''));}var%20d=['<a%20href="http://shuqian.qq.com/post?',s.join('&'),'"%20target="_blank"><img src="http://shuqian.qq.com/help/zh_CN/img/style1.gif"/></a>'].join('');var%20mydiv=document.createElement("div");mydiv.setAttribute("style","float:right;position:fixed%20!important;top/**/:200px;position:absolute;z-index:300;top:expression(offsetParent.scrollTop+200);right:20px;");mydiv.innerHTML=d;document.body.appendChild(mydiv);})();

网页射击游戏
javascript:var s=document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);

把他们粘贴到地址栏,然后回车可以观看效果。或者制作按钮来使用。
我将他们放在了safari浏览器的书签栏使用了

CSDN去除广告
javascript:(function(){var tad2=document.getElementById('tad2');if(tad2)tad2.src='';var ad_left=document.getElementById('ad_left');if(ad_left)ad_left.innerHTML='';var ad_right=document.getElementById('ad_right');if(ad_right)ad_right.innerHTML='';})();

HTML页面编辑
javascript:document.body.contentEditable='true';document.designMode='on';void(0);
javascript:document.body.contentEditable='false';void(0);

取消复制限制
javascript:document.body.oncopy ='reurn true;';void(0);
微信小程序扫码登陆

文章评论

1230人参与,0条评论