rjs.html 3.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
  2. <title>javascript</title></head><body>
  3. <h3>javascript</h3>
  4. <p><a href="../sitejs/index.html">javascript for domains</a></p>
  5. <p><b>Global javascript</b> files locates in subfolder "js". Long press button [☰] to configure. Click the following links to install:<br>
  6. <a target=_self" href="i:0hjs/savePassword.js:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/passwdsave.js">Save password</a><br>
  7. <a target="_self" href="i:0hjs/instantPage.js:https://fastly.jsdelivr.net/npm/instant.page">Instant page</a></p>
  8. <p><b>large size javascript code</b> can be installed to the folder &quot;bookmarklet&quot; (long pressing button "js" to popup menu):<br>
  9. <a target="_self" href='i:0hbookmarklet/eruda.js:https://fastly.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</a><br>
  10. <a target="_self" href="i:0hbookmarklet/performance.js:https://fastly.jsdelivr.net/gh/micmro/performance-bookmarklet/dist/performanceBookmarklet.min.js">Performance</a><br>
  11. </p>
  12. <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>
  13. <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>
  14. <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>
  15. <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>
  16. <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>
  17. <a href="i:04mdme:['https://fastly.jsdelivr.net/npm/mdme']">mdme:['https://fastly.jsdelivr.net/npm/mdme']</a><br><br>
  18. <a href="i:04md+tex:['https://fastly.jsdelivr.net/npm/texme']">md+tex:['https://fastly.jsdelivr.net/npm/texme']</a><br><br>
  19. <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>
  20. <a href="i:04Site search:;open('i:15site:' + location.hostname)">Site search:;open('i:15site:' + location.hostname)</a><br><br>
  21. <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>
  22. </p>
  23. <p>Remote script configuration file &quot;default.rjs&quot; whose lines have the following format:
  24. [script name]:[javascript code to return url arrays]</p>
  25. </body></html>