uweb/tags/javascript/index.xml

60 lines
6.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>javascript on </title>
<link>https://jamesfengcao.gitee.io/uweb/tags/javascript/</link>
<description>Recent content in javascript on </description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="https://jamesfengcao.gitee.io/uweb/tags/javascript/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>小书签</title>
<link>https://jamesfengcao.gitee.io/uweb/bookmarklet/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jamesfengcao.gitee.io/uweb/bookmarklet/</guid>
<description>超微浏览器支持直接运行远程网址上的小书签(Bookmarklet),将本页面或其它包含小书签网址加入书签。使用时只需长按小书签链接,点击“新窗口打开”,小书签将作用于超微浏览器最后一个窗口(非小书签窗口)页面上。
查看浏览器UA
&#39;);s.close();var pre=s.body.appendChild(s.createElement(&#39;pre&#39;));pre.style.overflow=&#39;auto&#39;;pre.style.whiteSpace=&#39;pre-wrap&#39;;pre.appendChild(s.createTextNode(document.documentElement.innerHTML))})()&#34;网页源码
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(&#39;Page%20is%20dynamically%20generated,%20cannot%20determine%20date.&#39;);}else{alert(&#39;Page%20was%20last%20modified%20&#39;+maxd.toLocaleString());}&#34; class=&#34;bookmarklet&#34; rel=&#34;nofollow&#34;显示网页最后更改时间
切换复选框状态
解除选择复制限制无效时可设UA为PC
恢复长按菜单
=0){spannode=document.createElement(&amp;quot;SPAN&amp;quot;);spannode.style.backgroundColor=&amp;quot;yellow&amp;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;&amp;amp; node.childNodes &amp;amp;&amp;amp; node.tagName.toUpperCase()!=&amp;quot;SCRIPT&amp;quot; &amp;amp;&amp;amp; node.tagName.toUpperCase!=&amp;quot;STYLE&amp;quot;){for (var child=0; child 正则搜索
nCols)nCols=tab.rows[i].cells.length;return nCols;}function makeHeaderLink(tableNo, colNo, ord){var link;link=document.createElement(&#39;a&#39;);link.href=&#39;javascript:sortTable(&#39;+tableNo+&#39;,&#39;+colNo+&#39;,&#39;+ord+&#39;);&#39;;link.appendChild(document.createTextNode((ord0)?&#39;a&#39;:&#39;d&#39;));return link;}function makeHeader(tableNo,nCols){var header, headerCell, i;header=document.createElement(&#39;tr&#39;);for(i=0;i表格排序</description>
</item>
<item>
<title>特定网址用户脚本及样式</title>
<link>https://jamesfengcao.gitee.io/uweb/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jamesfengcao.gitee.io/uweb/sitejs/</guid>
<description>技巧等级:中级
脚本
脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到/sdcard/uweb/sitejs或/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。如果内部目录下sitejs存在则/sdcard/uweb/sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源包括网站离线资源等的配置一旦内部sitejs目录存在则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名。所以脚本请不要以很长的域名来命名。 样式
与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到/sdcard/uweb/sitecss目录下。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“/sdcard/uweb/default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 </description>
</item>
<item>
<title>运行javascript脚本</title>
<link>https://jamesfengcao.gitee.io/uweb/rjs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jamesfengcao.gitee.io/uweb/rjs/</guid>
<description>uweb浏览器支持运行本地及远程javascript脚本。
大型脚本可安装到&amp;quot;/sdcard/uweb/bookmarklet&amp;quot;目录下:
彩云小译
远程及小型脚本可安装到default.rjs文件中
点击安装站内搜索、背景图、新窗口打开链接、移除覆盖物等
远程脚本配置文件/sdcard/uweb/default.rjs示例如下
彩云小译:&#39;https://caiyunapp.com/dest/trs.js&#39; 移除覆盖物:&#39;https://jamesfengcao.gitee.io/uweb/searchurl/bml/content/rmo.js&#39; 新窗口打开链接:&#39;&#39;;{d=document,b=d.createElement(&#39;base&#39;);b.setAttribute(&#39;target&#39;,&#39;_blank&#39;);d.head.appendChild(b);} google translate:&#39;https://translate.google.cn/translate_a/element.js?cb=googleTranslateElementInit&#39;;b=d.body;v=d.createElement(&#39;div&#39;);v.id=&#39;google_translate_element&#39;;v.style.display=&#39;none&#39;;b.insertBefore(v,b.firstChild);p=d.createElement(&#39;script&#39;);p.text=&#34;function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage: &#39;auto&#39;,includedLanguages:&#39;zh-CN,zh-TW,en&#39;},&#39;google_translate_element&#39;);}&#34;;p.type=&#39;text/javascript&#39;;b.appendChild(p) default.rjs每行格式如下 (url部分支持js代码运算)
[远程脚本名]:[返回字符串的javascript代码]
重启浏览器,长按搜索按钮,则弹出远程脚本菜单。</description>
</item>
</channel>
</rss>