mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
31 lines
3.4 KiB
HTML
31 lines
3.4 KiB
HTML
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>javascript</title></head><body>
|
||
<h3>javascript</h3>
|
||
|
||
<p><a href="../sitejs/index.html">javascript for domains</a></p>
|
||
<p><b>Global javascript</b> files locates in subfolder "js". Long press button [☰] to configure. Click the following links to install:<br>
|
||
<a target=_self" href="i:0h/sdcard/uweb/js/savePassword.js:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/passwdsave.js">Save password</a><br>
|
||
<a target="_self" href="i:0h/sdcard/uweb/js/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 "/sdcard/uweb/bookmarklet" (long pressing button "js" to popup menu):<br>
|
||
<a target="_self" href='i:0h/sdcard/uweb/bookmarklet/eruda.js:https://fastly.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</a><br>
|
||
<a target="_self" href="i:0h/sdcard/uweb/bookmarklet/performance.js:https://fastly.jsdelivr.net/gh/micmro/performance-bookmarklet/dist/performanceBookmarklet.min.js">Performance</a><br>
|
||
</p>
|
||
|
||
<p><b>Remote javascript</b> is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app</b>, then long press the button with icon "search" to popup the menu.):<br>
|
||
|
||
<a href="i:04Selection to sentence:;let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);">Selection to sentence:;let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);</a><br><br>
|
||
<a href="i:04Selection to line:;let g='line';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);">Selection to line:;let g='line';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);</a><br><br>
|
||
<a href="i:04Selection to paragraph:;let g='paragraph';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);">Selection to paragraph:;let g='paragraph';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);</a><br><br>
|
||
<a href="i:04mathjax:['https://fastly.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js']">mathjax:['https://fastly.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js']</a><br><br>
|
||
<a href="i:04mdme:['https://fastly.jsdelivr.net/npm/mdme']">mdme:['https://fastly.jsdelivr.net/npm/mdme']</a><br><br>
|
||
<a href="i:04md+tex:['https://fastly.jsdelivr.net/npm/texme']">md+tex:['https://fastly.jsdelivr.net/npm/texme']</a><br><br>
|
||
<a href="i:04New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)">New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)</a><br><br>
|
||
<a href="i:04Site search:;open('i:15site:' + location.hostname)">Site search:;open('i:15site:' + location.hostname)</a><br><br>
|
||
<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><br><br>
|
||
</p>
|
||
<p>Remote script configuration file "/sdcard/uweb/default.rjs" whose line has the following format:
|
||
[script name]:[javascript code to return url arrays]</p>
|
||
|
||
|
||
</body></html>
|