mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
load .js files under 'css' folder at earliest time
This commit is contained in:
parent
b21c1074d7
commit
6ae4b1bb30
12 changed files with 48 additions and 38 deletions
|
@ -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 &quot;.js&quot; files under the folder &quot;css&quot; are loaded as earlier as possible on the page.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -52,10 +52,12 @@
|
|||
<p>The file "night.css" 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 ".js" files under the folder "css" 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 'css' folder<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -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 &quot;css&quot; of app private folder.
|
||||
Global javascript files locates in the subfolder &quot;js&quot; of app private folder. Long press button [☰] to configure. Click the following links to install:
|
||||
&lt;a target=_self&quot; href=&quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&quot;&gt;Save password
|
||||
Instant page
|
||||
large size javascript code can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&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 &quot;search&quot; button to popup the menu.</description>
|
||||
Remote javascript is defined in default.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
@ -376,7 +377,8 @@ It formats as &quot;[input mimetype]/[output mimetype]&quot;.
|
|||
Clearing font settings
|
||||
The file &quot;night.css&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 &quot;.js&quot; files under the folder &quot;css&quot; are loaded as earlier as possible on the page.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -296,15 +296,15 @@ Ex. i:92Host;209.216.230.240:https://news.ycombinator.com<br>
|
|||
use "i:0mi:92Host;209.216.230.240::https://news.ycombinator.com" 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 "i:0" 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 'css' folder<br>
|
||||
<pre>i:56 urls support CTRL_A to CTRL-Z
|
||||
</pre>
|
||||
</p>
|
||||
|
|
|
@ -49,8 +49,8 @@
|
|||
</ul>
|
||||
<p>Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, the url path part]" 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 "sitecache/local/"</a>: support web extensions (.crx for chrome & .xpi for firefox).</p>
|
||||
<p>Any folder under "sitecache" 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 'css' folder<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -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 "js" 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 "css" of app private folder.</p>
|
||||
<p><b>Global javascript</b> files locates in the subfolder "js" of app private folder. Long press button [☰] to configure. Click the following links to install:<br>
|
||||
<a target=_self" href="i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js">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 "bookmarklet" (long pressing button "js" 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 "default.rjs" 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 "Activate user script".</p>
|
||||
<p>Since activated scripts use internal mechanism of <a href="../links/index.html">"i:0m" 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 "bookmarklet", others needs to be refered in default.rjs as http urls such as "https://local/..." (<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 'css' folder<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<ul>
|
||||
<li>Need to be named as "[domain root].css", such as yahoo.com.css or finance.yahoo.com.css。</li>
|
||||
<li>Under folder "sitecss".</li>
|
||||
<li>"[domain root].js" is loaded at the earlieat time.</li>
|
||||
<li>"[domain root].js" is loaded at the earliest time.</li>
|
||||
<li>Long press the button "settings", check the option "Apply user styles".</li>
|
||||
</ul>
|
||||
<p>If file "default.css" exists, the style will be applied to all sites not matching [domain root].css.</p>
|
||||
|
@ -76,8 +76,8 @@
|
|||
<p>"sitejs/.js", "sitecss/.css", "sitecss/.js" and "siteextra/.html" 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 'css' folder<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 &quot;css&quot; of app private folder.
|
||||
Global javascript files locates in the subfolder &quot;js&quot; of app private folder. Long press button [☰] to configure. Click the following links to install:
|
||||
&lt;a target=_self&quot; href=&quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&quot;&gt;Save password
|
||||
Instant page
|
||||
large size javascript code can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&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 &quot;search&quot; button to popup the menu.</description>
|
||||
Remote javascript is defined in default.</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue