Javascript and CSS for domains
Javascript (load when page completes, earliest loaded JS should use sitecss).
- Need to be named as "[domain root].js", such as "yahoo.com.js" or "finance.yahoo.com.js". The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded.
- Script must be put under the folder "sitejs" or "/data/data/info.torapp.uweb/files/sitejs". The later folder has the priority.
- Long press the button "settings", check the option "Run user scripts".
- Support 2/3-segment domains. If the length of the last 2-segments of domain is less than 7 (ex. "com.pl"), then it is treated as one segment.
CSS style and earliest loaded JS
- Need to be named as "[domain root].css", such as yahoo.com.css or finance.yahoo.com.css。
- Under folder "sitecss".
- "[domain root].js" is loaded at the earlieat time.
- Long press the button "settings", check the option "Apply user styles".
If file "default.css" exists, the style will be applied to all sites without matching [domain root].css.
- Need to be named as "[domain].html". Notice: the file name here is "[full domain]" not "[domain root]".
- Under folder "siteextra".
- Long press the button "settings", check the option "Apply user extra".
The extra html could be placed before the site source html (uweb uses an algorithm to merge the extra html with the site source html automatically). Ex. when the extra html ends with "