load .js files under 'css' folder at earliest time

This commit is contained in:
James Feng Cao 2023-04-20 10:23:42 +08:00
parent b21c1074d7
commit 6ae4b1bb30
12 changed files with 48 additions and 38 deletions

View File

@ -234,7 +234,8 @@ It formats as "[input mimetype]/[output mimetype]".
Clearing font settings
The file "night.css" is used as night mode, click the following links to install one:
webview 81+ night mode
webview 80- night mode</description>
webview 80- night mode
Earliest loaded global js The &amp;quot;.js&amp;quot; files under the folder &amp;quot;css&amp;quot; are loaded as earlier as possible on the page.</description>
</item>
<item>

View File

@ -52,10 +52,12 @@
<p>The file &quot;night.css&quot; is used as night mode, click the following links to install one:<br>
<a href="i:0hnight.css:../../zh/searchurl/txt/night.css">webview 81+ night mode</a><br>
<a href="i:0hnight.css:../../zh/searchurl/txt/night_old.css">webview 80- night mode</a></p>
<h4 id="earliest-loaded-global-js">Earliest loaded global js</h4>
<p>The &quot;.js&quot; files under the folder &quot;css&quot; are loaded as earlier as possible on the page.</p>
</div>
<p>Last Modified: 14 February 2023<br>
i:0h to use relative path<br>
<p>Last Modified: 20 April 2023<br>
support .js files under &#39;css&#39; folder<br>
<pre></pre>
</p>

View File

@ -339,13 +339,14 @@ Clear logcat::logcat -c</description>
<guid>/en/rjs/</guid>
<description>javascript for domains
Earliest loaded global javascript files locates in the subfolder &amp;quot;css&amp;quot; of app private folder.
Global javascript files locates in the subfolder &amp;quot;js&amp;quot; of app private folder. Long press button [☰] to configure. Click the following links to install:
&amp;lt;a target=_self&amp;quot; href=&amp;quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&amp;quot;&amp;gt;Save password
Instant page
large size javascript code can be installed to the folder &amp;quot;bookmarklet&amp;quot; (long pressing button &amp;quot;js&amp;quot; to popup menu):
Eruda
Performance
Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the &amp;quot;search&amp;quot; button to popup the menu.</description>
Remote javascript is defined in default.</description>
</item>
<item>
@ -376,7 +377,8 @@ It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
Clearing font settings
The file &amp;quot;night.css&amp;quot; is used as night mode, click the following links to install one:
webview 81+ night mode
webview 80- night mode</description>
webview 80- night mode
Earliest loaded global js The &amp;quot;.js&amp;quot; files under the folder &amp;quot;css&amp;quot; are loaded as earlier as possible on the page.</description>
</item>
<item>

View File

@ -296,15 +296,15 @@ Ex. i:92Host;209.216.230.240:https://news.ycombinator.com<br>
use &quot;i:0mi:92Host;209.216.230.240::https://news.ycombinator.com&quot; to visit the site with specified IP address.</p>
</li>
<li>
<p>i:b1[internal urls separated by newline]<br>
<p>i:b1[internal urls or javascript separated by newline]<br>
Bundle of internal urls, if it is an &quot;i:0&quot; url, then it should have the following format:<br>
[title\n][msg\n][i:0url].</p>
</li>
</ul>
</div>
<p>Last Modified: 18 April 2023<br>
support bundled installation<br>
<p>Last Modified: 19 April 2023<br>
support .js files under &#39;css&#39; folder<br>
<pre>i:56 urls support CTRL_A to CTRL-Z
</pre>
</p>

View File

@ -49,8 +49,8 @@
</ul>
<p>Offline resources locate in the folder &quot;sitecache&quot;. With the option &quot;use offline resources&quot; enabled, the corresponding files in &quot;sitecache/[domain name]/[full path including filename, the url path part]&quot; are loaded first before reaching the network.</p>
<h4 id="bingchat-ui">bingChat UI</h4>
<p><a href="i:0hsitecache/www.bing.com/ai.html:https://gitee.com/jamesfengcao/uweb/raw/master/en/searchurl/bingAI/bing.html">Install bingChat UI ai.html for censored area</a> (<a href="https://www.bing.com/ai.html">bingChat UI</a>)</p>
<p><a href="i:0hsitecache/www.bing.com/write.html:https://gitee.com/jamesfengcao/uweb/raw/master/en/searchurl/bingAI/write.html">Install bingWrite UI write.html for censored area</a> (<a href="https://www.bing.com/write.html">bingWrite</a>)</p>
<p><a href="i:0hsitecache/www.bing.com/ai.html:../searchurl/bingAI/bing.html">Install bingChat UI ai.html for censored area</a> (<a href="https://www.bing.com/ai.html">bingChat UI</a>)</p>
<p><a href="i:0hsitecache/www.bing.com/write.html:../searchurl/bingAI/write.html">Install bingWrite UI write.html for censored area</a> (<a href="https://www.bing.com/write.html">bingWrite</a>)</p>
<h4 id="serverless-local-sites">Serverless local sites</h4>
<p><a href="i:01Extract webapp:i:0bsitecache/local/:">Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;</a>: support web extensions (.crx for chrome &amp; .xpi for firefox).</p>
<p>Any folder under &quot;sitecache&quot; can be visited as a local site. Urls with search queries can be dynamically processed by the js/wasm code in the local file.</p>
@ -65,8 +65,8 @@
</div>
</div>
<p>Last Modified: 16 April 2023<br>
refine bingWrite<br>
<p>Last Modified: 19 April 2023<br>
support .js files under &#39;css&#39; folder<br>
<pre></pre>
</p>

View File

@ -48,7 +48,8 @@
</ul>
<p><a href="../sitejs/index.html">javascript for domains</a><br>
<b>Global javascript</b> files locates in the subfolder &quot;js&quot; of app private folder. Long press button [☰] to configure. Click the following links to install:<br>
<a href="../globalcss/index.html">Earliest loaded global javascript</a> files locates in the subfolder &quot;css&quot; of app private folder.</p>
<p><b>Global javascript</b> files locates in the subfolder &quot;js&quot; of app private folder. Long press button [☰] to configure. Click the following links to install:<br>
&lt;a target=_self&quot; href=&quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&quot;&gt;Save password</a><br>
<a target="_self" href="i:0hjs/instantPage.js:https://fastly.jsdelivr.net/npm/instant.page">Instant page</a></p>
<p><b>large size javascript code</b> can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&quot; to popup menu):<br>
@ -66,12 +67,15 @@
<p><a href="i:04Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v">Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v</a></p>
<p>Remote script configuration file &quot;default.rjs&quot; whose lines have the following format:<br>
[script name]:[javascript code to return url arrays]</p>
<h4 id="activated-scripts">Activated scripts</h4>
<p>Activate either local (bookmarklets) or remote js to execute the code on the similar sites with option &quot;Activate user script&quot;.</p>
<p>Since activated scripts use internal mechanism of <a href="../links/index.html">&quot;i:0m&quot; urls</a>, the script itself cannot have <span style="color:red">'H', '?' or '/'</span> as its very first character.</p>
<h4 id="allow-remote-js-on-csp-content-security-policy-sites">Allow remote js on CSP (Content Security Policy) sites</h4>
<p>All remote js (default.rjs) are allowed to execute on CSP sites. Local js files without remote resource access work fine when under the folder &quot;bookmarklet&quot;, others needs to be refered in default.rjs as http urls such as &quot;https://local/...&quot; (<a href="../html5/index.html">html5</a> or <a href="../offlinecache/index.html">offline cache</a>) .</p>
</div>
<p>Last Modified: 20 February 2023<br>
add simple modification info<br>
<p>Last Modified: 20 April 2023<br>
support .js files under &#39;css&#39; folder<br>
<pre></pre>
</p>

View File

@ -62,7 +62,7 @@
<ul>
<li>Need to be named as &quot;[domain root].css&quot;, such as yahoo.com.css or finance.yahoo.com.css。</li>
<li>Under folder &quot;sitecss&quot;.</li>
<li>&quot;[domain root].js&quot; is loaded at the earlieat time.</li>
<li>&quot;[domain root].js&quot; is loaded at the earliest time.</li>
<li>Long press the button &quot;settings&quot;, check the option &quot;Apply user styles&quot;.</li>
</ul>
<p>If file &quot;default.css&quot; exists, the style will be applied to all sites not matching [domain root].css.</p>
@ -76,8 +76,8 @@
<p>&quot;sitejs/.js&quot;, &quot;sitecss/.css&quot;, &quot;sitecss/.js&quot; and &quot;siteextra/.html&quot; are applied to all non-http urls (file urls etc.).</p>
</div>
<p>Last Modified: 29 January 2023<br>
update README<br>
<p>Last Modified: 20 April 2023<br>
support .js files under &#39;css&#39; folder<br>
<pre></pre>
</p>

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-04-18T16:06:03+08:00</lastmod>
<lastmod>2023-04-20T10:19:36+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -16,7 +16,7 @@
/>
</url><url>
<loc>/en/offlinecache/</loc>
<lastmod>2023-04-16T16:25:15+08:00</lastmod>
<lastmod>2023-04-19T22:58:18+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -45,7 +45,7 @@
/>
</url><url>
<loc>/en/tags/</loc>
<lastmod>2023-04-17T11:05:09+08:00</lastmod>
<lastmod>2023-04-20T10:17:34+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -58,7 +58,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-04-18T16:06:03+08:00</lastmod>
<lastmod>2023-04-20T10:19:36+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -71,7 +71,7 @@
/>
</url><url>
<loc>/en/links/</loc>
<lastmod>2023-04-18T16:06:03+08:00</lastmod>
<lastmod>2023-04-19T10:00:46+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -113,7 +113,7 @@
/>
</url><url>
<loc>/en/topposts/</loc>
<lastmod>2023-04-17T07:27:43+08:00</lastmod>
<lastmod>2023-04-20T10:15:37+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -126,7 +126,7 @@
/>
</url><url>
<loc>/en/tags/css/</loc>
<lastmod>2023-01-29T17:41:37+08:00</lastmod>
<lastmod>2023-04-20T10:17:34+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -139,7 +139,7 @@
/>
</url><url>
<loc>/en/tags/javascript/</loc>
<lastmod>2023-01-29T17:41:37+08:00</lastmod>
<lastmod>2023-04-20T10:17:34+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -152,7 +152,7 @@
/>
</url><url>
<loc>/en/sitejs/</loc>
<lastmod>2023-01-29T17:41:37+08:00</lastmod>
<lastmod>2023-04-20T10:17:34+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -291,7 +291,7 @@
/>
</url><url>
<loc>/en/rjs/</loc>
<lastmod>2023-02-20T22:02:48+08:00</lastmod>
<lastmod>2023-04-20T10:15:37+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -372,7 +372,7 @@
/>
</url><url>
<loc>/en/globalcss/</loc>
<lastmod>2023-02-14T14:51:20+08:00</lastmod>
<lastmod>2023-04-20T10:19:36+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"

View File

@ -139,13 +139,14 @@ Clear logcat::logcat -c</description>
<guid>/en/rjs/</guid>
<description>javascript for domains
Earliest loaded global javascript files locates in the subfolder &amp;quot;css&amp;quot; of app private folder.
Global javascript files locates in the subfolder &amp;quot;js&amp;quot; of app private folder. Long press button [☰] to configure. Click the following links to install:
&amp;lt;a target=_self&amp;quot; href=&amp;quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&amp;quot;&amp;gt;Save password
Instant page
large size javascript code can be installed to the folder &amp;quot;bookmarklet&amp;quot; (long pressing button &amp;quot;js&amp;quot; to popup menu):
Eruda
Performance
Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the &amp;quot;search&amp;quot; button to popup the menu.</description>
Remote javascript is defined in default.</description>
</item>
</channel>

View File

@ -4,14 +4,14 @@
<sitemap>
<loc>en/sitemap.xml</loc>
<lastmod>2023-04-18T16:06:03+08:00</lastmod>
<lastmod>2023-04-20T10:19:36+08:00</lastmod>
</sitemap>
<sitemap>
<loc>zh/sitemap.xml</loc>
<lastmod>2023-04-18T15:54:20+08:00</lastmod>
<lastmod>2023-04-19T23:06:34+08:00</lastmod>
</sitemap>

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/zh/_posts/</loc>
<lastmod>2023-04-18T15:54:20+08:00</lastmod>
<lastmod>2023-04-19T23:06:34+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -29,7 +29,7 @@
/>
</url><url>
<loc>/zh/</loc>
<lastmod>2023-04-18T15:54:20+08:00</lastmod>
<lastmod>2023-04-19T23:06:34+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -74,7 +74,7 @@
/>
</url><url>
<loc>/zh/tips/</loc>
<lastmod>2023-04-18T15:54:20+08:00</lastmod>
<lastmod>2023-04-19T23:06:34+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"

View File

@ -54,7 +54,7 @@
<p>方法1:</p>
<ul>
<li>
<p>点击一键安装<a href="i:b1Install bing chat UI%0A%0Ai:0hsitecache/www.bing.com/ai.html:../../en/searchurl/bingAI/bing.html%0AInstall bing compose UI%0A%0Ai:0hsitecache/www.bing.com/write.html:../../en/searchurl/bingAI/write.html%0AConfig hosts%0A%0Ai:0ghosts::www.bing.com;Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credentials;true mybing2.xn--xyza.top%0Ai:52:https://www.bing.com/ai.html%0Ai:52:https://www.bing.com/write.html">必应AI</a></p>
<p>点击一键安装<a href="i:b1Install bing chat UI%0A%0Ai:0hsitecache/www.bing.com/ai.html:../../en/searchurl/bingAI/bing.html%0AInstall bing compose UI%0A%0Ai:0hsitecache/www.bing.com/write.html:../../en/searchurl/bingAI/write.html%0AConfig hosts%0A空格后为魔法域名,请按需修改%0Ai:0ghosts::www.bing.com;Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credentials;true mybing2.xn--xyza.top%0Ai:52:https://www.bing.com/ai.html%0Ai:52:https://www.bing.com/write.html">必应AI</a></p>
</li>
<li>
<p>或者分步安装:<br>
@ -95,8 +95,8 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
<a href="../filenames">配置文件列表</a>中直接点击文件名即可编辑。</p>
</div>
<p>Last Modified: 18 April 2023<br>
support bundled installation<br>
<p>Last Modified: 19 April 2023<br>
support .js files under &#39;css&#39; folder<br>
<pre></pre>
</p>