uweb/bookmarklet/index.html

168 lines
9.1 KiB
HTML
Raw Normal View History

2019-02-16 04:08:27 +00:00
<!DOCTYPE html>
<html lang="en">
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keyword" content="">
2020-03-13 14:56:23 +00:00
<link rel="shortcut icon" href="/uWeb/img/favicon.ico">
2019-02-16 04:08:27 +00:00
<title>
小书签
</title>
<!-- Custom CSS -->
2020-03-13 14:56:23 +00:00
<link rel="stylesheet" href="/uWeb/css/aircloud.css">
2019-02-16 04:08:27 +00:00
<link href="//at.alicdn.com/t/font_620856_pl6z7sid89qkt9.css" rel="stylesheet" type="text/css">
<!-- ga & ba script hoook -->
<script></script>
</head>
<body>
<div class="site-nav-toggle" id="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
<div class="index-about">
<i> </i>
</div>
<div class="index-container">
<div class="index-left">
<div class="nav" id="nav">
<div class="contents" id="nav-content">
<ul>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/">
2019-02-16 04:08:27 +00:00
<i class="iconfont icon-shouye1"></i>
2020-02-27 03:14:10 +00:00
<span>HOME</span>
2019-02-16 04:08:27 +00:00
</a>
</li>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/tags">
2019-02-16 04:08:27 +00:00
<i class="iconfont icon-biaoqian1"></i>
2020-02-27 03:14:10 +00:00
<span>TAGS</span>
2019-02-16 04:08:27 +00:00
</a>
</li>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/archives">
2019-02-16 04:08:27 +00:00
<i class="iconfont icon-guidang2"></i>
2020-02-27 03:14:10 +00:00
<span>ARCHIVES</span>
2019-02-16 04:08:27 +00:00
</a>
</li>
</ul>
</div>
<div id="toc" class="toc-article">
</div>
</div>
<div class="search-field" id="search-field">
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input">
2020-02-27 03:14:10 +00:00
<span id="begin-search">search</span>
2019-02-16 04:08:27 +00:00
</div>
<div class="search-result-container" id="search-result-container">
</div>
</div>
</div>
<div class="index-about-mobile">
<i> </i>
</div>
</div>
<div class="index-middle">
<!-- Main Content -->
<div class="post-container">
<div class="post-title">
小书签
</div>
<div class="post-meta">
2020-02-27 03:14:10 +00:00
<span class="attr">Post<span>2019-06-05 17:55:34</span></span>
2019-02-16 04:08:27 +00:00
2020-02-27 03:14:10 +00:00
<span class="attr">Tags/
2019-02-16 04:08:27 +00:00
2020-03-13 14:56:23 +00:00
<a class="tag" href="/uWeb/tags/#javascript" title="javascript">javascript</a>
2019-05-25 12:28:50 +00:00
<span>/</span>
</span>
2019-02-16 04:08:27 +00:00
</div>
<div class="post-content ">
2019-02-17 02:09:33 +00:00
<p><a href="/uweb/">超微浏览器</a>支持直接运行远程网址上的小书签(Bookmarklet),将本页面或其它包含小书签网址加入书签。使用时只需长按小书签链接,点击“新窗口打开”,小书签将作用于超微浏览器最后一个窗口(非小书签窗口)页面上。</p>
2020-02-21 08:03:43 +00:00
<p><a target="_self" href="javascript:alert(navigator.userAgent)">查看浏览器UA</a><br><a href="javascript:(function(){var w=window.open(''),s=w.document;s.write('<html><body></body></html>');s.close();var pre=s.body.appendChild(s.createElement('pre'));pre.style.overflow='auto';pre.style.whiteSpace='pre-wrap';pre.appendChild(s.createTextNode(document.documentElement.innerHTML))})()" target="_blank" rel="noopener">网页源码</a><br><a href="javascript:function%20gett(w){try{var%20lm=new%20Date(w.document.lastModified);if(lm>maxd)maxd=lm;for(var%20i=0;F=w.frames[i];i++){gett(F);}}catch(e){}}var%20now=new%20Date();var%20maxd=new%20Date(document.lastModified);gett(window);if(maxd.getTime()==0||now.toUTCString()==maxd.toUTCString()){alert('Page%20is%20dynamically%20generated,%20cannot%20determine%20date.');}else{alert('Page%20was%20last%20modified%20'+maxd.toLocaleString());}" class="bookmarklet" rel="noopener" target="_blank">显示网页最后更改时间</a><br><a href="javascript:(function(){ function toggle(box){ temp=box.onchange; box.onchange=null; box.checked=!box.checked; box.onchange=temp; } var x,k,f,j; x=document.forms; for (k=0; k<x.length; ++k) { f=x[k]; for (j=0;j<f.length;++j) if (f[j].type.toLowerCase() == &quot;checkbox&quot;) toggle(f[j]); } })();" target="_blank" rel="noopener">切换复选框状态</a><br><a href="javascript:(function(){var%20doc=document;var%20bd=doc.body;bd.onselectstart=bd.oncopy=bd.onpaste=bd.onkeydown=bd.oncontextmenu=bd.onmousemove=bd.onselectstart=bd.ondragstart=doc.onselectstart=doc.oncopy=doc.onpaste=doc.onkeydown=doc.oncontextmenu=null;doc.onselectstart=doc.oncontextmenu=doc.onmousedown=doc.onkeydown=null;void(0)})()" target="_blank" rel="noopener">解除选择复制限制无效时可设UA为PC</a><br><a href="javascript:(function() { function R(a){ona = &quot;on&quot;+a; if(window.addEventListener) window.addEventListener(a, function (e) { for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); window[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R(&quot;contextmenu&quot;); R(&quot;click&quot;); R(&quot;mousedown&quot;); R(&quot;mouseup&quot;); })()" target="_blank" rel="noopener">恢复长按菜单</a><br><a href="javascript:(function(){var count=0, text, regexp;text=prompt(&quot;Search regexp:&quot;, &quot;&quot;);if(text==null || text.length==0)return;try{regexp=new RegExp(&quot;(&quot; + text +&quot;)&quot;, &quot;i&quot;);}catch(er){alert(&quot;Unable to create regular expression using text '&quot;+text+&quot;'.\n\n&quot;+er);return;}function searchWithinNode(node, re){var pos, skip, spannode, middlebit, endbit, middleclone;skip=0;if( node.nodeType==3 ){pos=node.data.search(re);if(pos>=0){spannode=document.createElement(&quot;SPAN&quot;);spannode.style.backgroundColor=&quot;yellow&quot;;middlebit=node.splitText(pos);endbit=middlebit.splitText(RegExp.$1.length);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else if( node.nodeType==1 &amp;&amp; node.childNodes &amp;&amp; node.tagName.toUpperCase()!=&quot;SCRIPT&quot; &amp;&amp; node.tagName.toUpperCase!=&quot;STYLE&quot;){for (var child=0; child < node.childNodes.length; ++child){child=child+searchWithinNode(node.childNodes[child], re);}}return skip;}window.status=&quot;Searching for &quot;+regexp+&quot;...&quot;;searchWithinNode(document.body, regexp);window.status=&quot;Found &quot;+count+&quot; match&quot;+(count==1?&quot;&quot;:&quot;es&quot;)+&quot; for &quot;+regexp+&quot;.&quot;;})();" target="_blank" rel="noopener">正则搜索</a><br><a href="javascript:function toArray (c){var a, k;a=new Array;for (k=0; k<c.length; ++k)a[k]=c[k];return a;}function insAtTop(par,child){if(par.childNodes.length) par.insertBefore(child, par.childNodes[0]);else par.appendChild(child);}function countCols(tab){var nCols, i;nCols=0;for(i=0;i<tab.rows.length;++i)if(tab.rows[i].cells.length>nCols)nCols=tab.rows[i].cells.length;return nCols;}function makeHeaderLink(tableNo, colNo, ord){var li
2019-02-16 04:08:27 +00:00
<br>
<div id="comment-container">
</div>
<div id="disqus_thread"></div>
<div id="lv-container">
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<ul class="list-inline text-center">
</ul>
</footer>
</body>
<script>
// We expose some of the variables needed by the front end
window.hexo_search_path = ""
2020-03-13 14:56:23 +00:00
window.hexo_root = "/uWeb/"
2019-02-16 04:08:27 +00:00
window.isPost = true
</script>
2020-03-13 14:56:23 +00:00
<script src="/uWeb/js/index.js"></script>
2019-02-16 04:08:27 +00:00
</html>