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 Clearing font settings
The file "night.css" is used as night mode, click the following links to install one: The file "night.css" is used as night mode, click the following links to install one:
webview 81+ night mode 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>
<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> <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.css">webview 81+ night mode</a><br>
<a href="i:0hnight.css:../../zh/searchurl/txt/night_old.css">webview 80- night mode</a></p> <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> </div>
<p>Last Modified: 14 February 2023<br> <p>Last Modified: 20 April 2023<br>
i:0h to use relative path<br> support .js files under &#39;css&#39; folder<br>
<pre></pre> <pre></pre>
</p> </p>

View file

@ -339,13 +339,14 @@ Clear logcat::logcat -c</description>
<guid>/en/rjs/</guid> <guid>/en/rjs/</guid>
<description>javascript for domains <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: 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 &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 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): 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 Eruda
Performance 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>
<item> <item>
@ -376,7 +377,8 @@ It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
Clearing font settings Clearing font settings
The file &amp;quot;night.css&amp;quot; is used as night mode, click the following links to install one: 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 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>
<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> 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>
<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> 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> [title\n][msg\n][i:0url].</p>
</li> </li>
</ul> </ul>
</div> </div>
<p>Last Modified: 18 April 2023<br> <p>Last Modified: 19 April 2023<br>
support bundled installation<br> support .js files under &#39;css&#39; folder<br>
<pre>i:56 urls support CTRL_A to CTRL-Z <pre>i:56 urls support CTRL_A to CTRL-Z
</pre> </pre>
</p> </p>

View file

@ -49,8 +49,8 @@
</ul> </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> <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> <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/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: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/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> <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><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> <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>
</div> </div>
<p>Last Modified: 16 April 2023<br> <p>Last Modified: 19 April 2023<br>
refine bingWrite<br> support .js files under &#39;css&#39; folder<br>
<pre></pre> <pre></pre>
</p> </p>

View file

@ -48,7 +48,8 @@
</ul> </ul>
<p><a href="../sitejs/index.html">javascript for domains</a><br> <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> &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> <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> <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><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> <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> [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> <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> <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> </div>
<p>Last Modified: 20 February 2023<br> <p>Last Modified: 20 April 2023<br>
add simple modification info<br> support .js files under &#39;css&#39; folder<br>
<pre></pre> <pre></pre>
</p> </p>

View file

@ -62,7 +62,7 @@
<ul> <ul>
<li>Need to be named as &quot;[domain root].css&quot;, such as yahoo.com.css or finance.yahoo.com.css。</li> <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>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> <li>Long press the button &quot;settings&quot;, check the option &quot;Apply user styles&quot;.</li>
</ul> </ul>
<p>If file &quot;default.css&quot; exists, the style will be applied to all sites not matching [domain root].css.</p> <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> <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> </div>
<p>Last Modified: 29 January 2023<br> <p>Last Modified: 20 April 2023<br>
update README<br> support .js files under &#39;css&#39; folder<br>
<pre></pre> <pre></pre>
</p> </p>

View file

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

View file

@ -139,13 +139,14 @@ Clear logcat::logcat -c</description>
<guid>/en/rjs/</guid> <guid>/en/rjs/</guid>
<description>javascript for domains <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: 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 &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 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): 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 Eruda
Performance 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>
</channel> </channel>

View file

@ -4,14 +4,14 @@
<sitemap> <sitemap>
<loc>en/sitemap.xml</loc> <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>
<sitemap> <sitemap>
<loc>zh/sitemap.xml</loc> <loc>zh/sitemap.xml</loc>
<lastmod>2023-04-18T15:54:20+08:00</lastmod> <lastmod>2023-04-19T23:06:34+08:00</lastmod>
</sitemap> </sitemap>

View file

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

View file

@ -54,7 +54,7 @@
<p>方法1:</p> <p>方法1:</p>
<ul> <ul>
<li> <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>
<li> <li>
<p>或者分步安装:<br> <p>或者分步安装:<br>
@ -95,8 +95,8 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
<a href="../filenames">配置文件列表</a>中直接点击文件名即可编辑。</p> <a href="../filenames">配置文件列表</a>中直接点击文件名即可编辑。</p>
</div> </div>
<p>Last Modified: 18 April 2023<br> <p>Last Modified: 19 April 2023<br>
support bundled installation<br> support .js files under &#39;css&#39; folder<br>
<pre></pre> <pre></pre>
</p> </p>