-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (91 loc) · 15.2 KB
/
index.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<title>Js Lite Tool | 创智俱乐部</title>
<script type="text/javascript" src="js/do.js" ></script>
<link rel="stylesheet" href="css/typo.css" />
<link rel="stylesheet" href="css/view.css" />
</head>
<body>
<header>
<h1><i class="icon-tool"></i>Js小工具</h1>
</header>
<section>
<article>
<h1>使用方法</h1>
<p>拖拽链接到书签栏,使用时,点击即可。</p>
</article>
<article>
<h1 id="art-tools">一些Js小工具</h1>
<h2>搜索</h2>
<ul class="tool-list">
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter search terms for Wikipedia',''); open('https://zh.wikipedia.org' + (s ? '/w/index.php?title=Special:Search&search=' + encodeURIComponent(s) : '')).focus();" title="Wiki搜索"><i class="icon-wikipedia"></i>维基百科</a></li>
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter search terms for douban book',''); open('http://book.douban.com' + (s ? '/subject_search?search_text=' + encodeURIComponent(s) : '')).focus();" title="豆瓣图书"><i class="icon-book"></i>豆瓣图书</a></li>
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter search terms for douban music',''); open('http://music.douban.com' + (s ? '/subject_search?search_text=' + encodeURIComponent(s) : '')).focus();" title="豆瓣音乐"><i class="icon-music"></i>豆瓣音乐</a></li>
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter search terms for douban movie',''); open('http://movie.douban.com' + (s ? '/subject_search?search_text=' + encodeURIComponent(s) : '')).focus();" title="豆瓣电影"><i class="icon-movie"></i>豆瓣电影</a></li>
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter word to translate:',''); open('http://translate.google.cn' + (s ? '/#en/zh-CN/' + encodeURIComponent(s) : '')).focus();" title="Google翻译"><i class="icon-translate"></i>Google翻译</a></li>
<li><a href="javascript:void((function () { if (!document.body) { return } var popup = document.querySelectorAll('.cyxy-target-popup'); if (popup && popup.length > 0) { return } try { var trs = document.createElement('script'); trs.type = 'text/javascript'; trs.charset = 'UTF-8'; trs.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'caiyunapp.com/dest/trs.js'; document.body.appendChild(trs); } catch (e) { alert(e); } document.addEventListener('securitypolicyviolation', function handler(e) { console.error('securitypolicyviolation', e); alert('由于当前网站的内容安全策略(Content Security Policy),小译无法启动翻译程序,您可以在Chrome Web商店搜索彩云小译(LingoCloud)下载插件,或者将网页保存在本地(右键 -> 另存为)进行翻译,也欢迎您在手机应用商店下载彩云小译App :)'); document.removeEventListener('securitypolicyviolation', handler); });})());" title="彩云网页翻译"><i class="icon-translate"></i>彩云小译</a></li>
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter search terms for google trends',''); open('https://www.google.com/trends' + (s ? '/explore#q=' + encodeURIComponent(s) : '')).focus();" title="Google趋势"><i class="icon-trend"></i>Google趋势</a></li>
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter search terms for Amazon',''); open('http://www.amazon.cn' + (s ? '/s/?field-keywords=' + encodeURIComponent(s) : '')).focus();" title="亚马逊购物"><i class="icon-amazon"></i>亚马逊购物</a></li>
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter search terms for php',''); open('http://www.php.net' + (s ? '/search.php?l=zh&pattern=' + encodeURIComponent(s) : '')).focus();" title="PHP文档"><i class="icon-code"></i>PHP文档</a></li>
</ul>
<h2>工具</h2>
<ul class="tool-list">
<li><a href="javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter search URL for Web Cache',''); open('https://webcache.googleusercontent.com' + (s ? '/search?q=cache:' + encodeURIComponent(s) : '')).focus();" title="查看Google快照"><i class="icon-google"></i>Google快照</a></li>
<li><a href="javascript:(function(){eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5 2=8;5 3=2.K;3.7=3.k=3.e=3.9=3.6=3.y=3.7=3.z=2.7=2.k=2.e=2.9=2.6=4;2.7=2.6=2.c=2.9=p(){r t};g(8.n||8){d=4;c=4;6=4}5 a=8.15(\'*\');o(5 i=a.q-1;i>=0;i--){5 b=a[i];g(b.n||b){d=4;c=4}}s(h(\'%u%v%w%x%j%17%A%B%C%j%D\')+\'\\E\'+h(\'%F%G%H%I%J%l%L%l%M%N%O%P%Q%R%S%T%U%V%W%X%Y\')+\'\\Z.10.11\');3.m.13=\'14!f\';3.m.16=\'12!f\';',62,70,'||doc|bd|null|var|oncontextmenu|onselectstart|document|onkeydown|arAllElements|elmOne|onmousedown|onmouseup|onpaste|important|with|unescape||u5236|oncopy|u7528|style|wrappedJSObject|for|function|length|return|alert|true|u5DF2|u89E3|u9664|u590D|onmousemove|ondragstart|u53F3|u952E|u9650|uFF01|u000d|u66F4|u591A|u7CBE|u5F69|u5B9E|body|u5E94|uFF0C|u8BF7|u5173|u6CE8|u300E|u5F02|u6B21|u5143|u8F6F|u4EF6|u4E16|u754C|u300F|u000dwww|iPlaySoft|com|text|webkitUserSelect|auto|getElementsByTagName|MozUserSelect|u4E0E'.split('|'),0,{}))})()" title="解除不能右键限制"><i class="icon-block"></i>解除右键限制</a></li>
<li><a href='data:text/html,<style type="text/css">.e{position:absolute;top:0;right:50%;bottom:0;left:0;} .c{position:absolute;overflow:auto;top:0;right:0;bottom:0;left:50%;}</style><div class="e" id="editor"></div><div class="c"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script src="http://cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js"></script><script> function showResult(e){consoleEl.innerHTML=e}var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/markdown");var consoleEl=document.getElementsByClassName("c")[0];var converter=new Showdown.converter;e.commands.addCommand({name:"markdown",bindKey:{win:"Ctrl-E",mac:"Command-E"},exec:function(t){var n=e.getSession().getMode().$id;if(n=="ace/mode/markdown"){showResult(converter.makeHtml(t.getValue()))}},readOnly:true})</script>' title="Markdown编辑器,Ctrl+E预览" target="_blank"><i class="icon-markdown"></i>Markdown</a></li>
<li><a href='data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/python");</script>' title="带代码高亮的编辑器(python)" target="_blank"><i class="icon-edit"></i>编辑器</a></li>
<li><a href="javascript:function se(d){return d.selection?d.selection.createRange().text:d.getSelection()}function tU(str){code='';for(var i=0;i<str.length;i++){var uni=str.charCodeAt(i).toString(16).toUpperCase();while(uni.length<4){uni='0'+uni}uni='\\u'+uni;code+=uni};prompt(str+'\'s Unicode is ',code)}s=se(document);for(i=0;i<frames.length&&!s;i++)s=se(frames[i].document);if(!s||s=='')s=prompt('Enter search URL for toUniCode','');tU(s+'');" title="将字符串转码为unicode"><i class="icon-code"></i>To\uXXXX</a></li>
<li><a href="javascript:var el = document.getElementsByClassName('after');for(var i = 0; i < el.length; i++){ var ifr = document.createElement('iframe');ifr.name='download'+i;document.body.appendChild(ifr);open(el[i].getElementsByTagName('a')[0].href, 'download' +i);}" title="TingPng批量下载"><i class="icon-images"></i>TingPNG批量下载</a></li>
<li><a href="javascript:document.write('<!DOCTYPE html><html><head><meta charset="utf-8"><title>Responsive Design Testing</title><style>body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }.wrapper { width: 6000px; }.frame { float: left; }h2 { margin: 0 0 5px 0; }iframe { margin: 0 20px 20px 0; border: 1px solid #666; }</style></head><body><div class="wrapper"><div class="frame"><h2>240<span> x 320</span> <small>(mobile)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="240" height="320"></iframe></div><div class="frame"><h2>320<span> x 480</span> <small>(mobile)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="320" height="480"></iframe></div><div class="frame"><h2>480<span> x 640</span> <small>(small tablet)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="480" height="640"></iframe></div><div class="frame"><h2>768<span> x 1024</span> <small>(tablet - portrait)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="768" height="1024"></iframe></div><div class="frame"><h2>1024<span> x 768</span> <small>(tablet - landscape)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="1024" height="768"></iframe></div><div class="frame"><h2>1200<span> x 800</span> <small>(desktop)</small></h2><iframe src="' + window.location + '" sandbox="allow-same-origin allow-forms" seamless width="1200" height="800"></iframe></div></div></body></html>')" title="多分辨率测试"><i class="icon-display"></i>分辨率测试</a></li>
<li><a href="javascript:prompt('在线播放地址',Array.from(document.getElementsByClassName('playBtn')).map( x => x.dataset.cn + ($(x).siblings('.buylink-price').text().trim() == '免费' ? '(免费)' : '(收费)') + ',' + decodeURIComponent(x.href.split('?url=')[1]).split('?')[0]).join('\n'));" title="提取豆瓣电影在线播放地址"><i class="icon-movie"></i>豆瓣在线播放地址提取</a></li>
</ul>
<h2>Funny</h2>
<ul class="tool-list">
<li><a href="javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);" title="射击网页游戏"><i class="icon-shot"></i>射击网页</a></li>
<li><a href="javascript:document.body.contentEditable='true'; document.designMode='on'; void(0);" title="让网页变成可编辑"><i class="icon-edit"></i>编辑网页</a></li>
<li><a href="javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var DI= document.getElementsByTagName('img'); DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5+'px'; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5+'px'}R++}tag=setInterval('A()',5 );document.onmousedown=function(){clearInterval(tag);for(i=0; i<DIL; i++){DI[i].style.position='static';}}; void(0)" title="所有图片飞起来~"><i class="icon-fly"></i>图片飞起来</a></li>
</ul>
</article>
<article class="art-maker" >
<h1>制作你的Js小工具</h1>
<div>
<h2>搜索工具</h2>
<div id="search-maker">
<p class="tip">复制你所要制作的搜索引擎的搜索结果的地址,然后将关键字替换成#keyword#。</p>
<p><label for="search-name">工具名:</label><input type="text" id="search-name" placeholder="例:豆瓣读书搜索" /></p>
<p><label for="search-key">提示语:</label><input type="text" id="search-tip" placeholder="例:请输入书籍名字" /></p>
<p><label for="search-page">搜索页:</label><input type="text" id="search-page" placeholder="例:http://book.douban.com/subject_search?search_text=#keyword#" /></p>
<p id="search-bin"></p>
<p class="submit-block"><button id="push-search-tool">推荐</button><button id="build-search-tool">生成</button></p>
</div>
</div>
<div>
<h2>其他工具</h2>
<div id="code-maker">
<p class="tip">编写工具的js代码,贴入代码框中。</p>
<p><label for="code-name">工具名:</label><input type="text" id="code-name" placeholder="例:批量获取图片" /></p>
<p><label for="code-block">代码:</label><textarea rows="10" cols="78" id="code-block" spellcheck="false"></textarea></p>
<p id="code-bin"></p>
<p class="submit-block"><button id="push-code-tool">推荐</button><button id="build-code-tool">生成</button></p>
</div>
</div>
</article>
<article id="msg-alert">
<p class="msg-content"></p>
</article>
<article id="msg-prompt">
<h2 class="msg-title">推荐工具</h2>
<p><label for="msg-input" class="msg-tip">填写适用网站或工具说明:</label><span id="msg-code"></span></p>
<p><textarea rows="5" cols="78" id="msg-input" spellcheck="false" data-key="" data-post=""></textarea>
</p>
<p class="submit-block"><button id="msg-submit">Push</button></p>
</article>
</section>
<footer>
<p>Copyright © 2016, All Rights Reserved Powered By <a href="http://sxisa.com" target="_blank">创智俱乐部</a></p>
</footer>
</body>
</html>