javascript

javascript for domains

Global javascript files locates in subfolder "js". Long press button [☰] to configure. Click the following links to install:
Save password
Instant page

large size javascript code can be installed to the folder "/sdcard/uweb/bookmarklet" (long pressing button "js" 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 button with icon "search" to popup the menu.):
Selection to sentence:;let g='sentence';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);

Selection to paragraph:;let g='paragraph';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);

mathjax:['https://fastly.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js']

mdme:['https://fastly.jsdelivr.net/npm/mdme']

md+tex:['https://fastly.jsdelivr.net/npm/texme']

New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)

Site search:;open('i:15site:' + location.hostname)

Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v

Remote script configuration file "/sdcard/uweb/default.rjs" whose line has the following format: [script name]:[javascript code to return url arrays]