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
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue