From 6ae4b1bb301a4d6b19091bf17b7e4e17051a1f75 Mon Sep 17 00:00:00 2001
From: James Feng Cao
Date: Thu, 20 Apr 2023 10:23:42 +0800
Subject: [PATCH] load .js files under 'css' folder at earliest time
---
en/_posts/index.xml | 3 ++-
en/globalcss/index.html | 6 ++++--
en/index.xml | 6 ++++--
en/links/index.html | 6 +++---
en/offlinecache/index.html | 8 ++++----
en/rjs/index.html | 10 +++++++---
en/sitejs/index.html | 6 +++---
en/sitemap.xml | 22 +++++++++++-----------
en/topposts/index.xml | 3 ++-
sitemap.xml | 4 ++--
zh/sitemap.xml | 6 +++---
zh/tips/index.html | 6 +++---
12 files changed, 48 insertions(+), 38 deletions(-)
diff --git a/en/_posts/index.xml b/en/_posts/index.xml
index e308183..ad71c06 100644
--- a/en/_posts/index.xml
+++ b/en/_posts/index.xml
@@ -234,7 +234,8 @@ It formats as "[input mimetype]/[output mimetype]".
Clearing font settings
The file "night.css" is used as night mode, click the following links to install one:
webview 81+ night mode
-webview 80- night mode
+webview 80- night mode
+Earliest loaded global js The ".js" files under the folder "css" are loaded as earlier as possible on the page.
-
diff --git a/en/globalcss/index.html b/en/globalcss/index.html
index 36c1312..852a5ab 100644
--- a/en/globalcss/index.html
+++ b/en/globalcss/index.html
@@ -52,10 +52,12 @@
The file "night.css" is used as night mode, click the following links to install one:
webview 81+ night mode
webview 80- night mode
+Earliest loaded global js
+The ".js" files under the folder "css" are loaded as earlier as possible on the page.
-Last Modified: 14 February 2023
-i:0h to use relative path
+
Last Modified: 20 April 2023
+support .js files under 'css' folder
diff --git a/en/index.xml b/en/index.xml
index bfd304d..60cc73d 100644
--- a/en/index.xml
+++ b/en/index.xml
@@ -339,13 +339,14 @@ Clear logcat::logcat -c
-
diff --git a/en/links/index.html b/en/links/index.html
index 7f02898..4488207 100644
--- a/en/links/index.html
+++ b/en/links/index.html
@@ -296,15 +296,15 @@ Ex. i:92Host;209.216.230.240:https://news.ycombinator.com
use "i:0mi:92Host;209.216.230.240::https://news.ycombinator.com" to visit the site with specified IP address.
-i:b1[internal urls separated by newline]
+
i:b1[internal urls or javascript separated by newline]
Bundle of internal urls, if it is an "i:0" url, then it should have the following format:
[title\n][msg\n][i:0url].
-Last Modified: 18 April 2023
-support bundled installation
+
Last Modified: 19 April 2023
+support .js files under 'css' folder
i:56 urls support CTRL_A to CTRL-Z
diff --git a/en/offlinecache/index.html b/en/offlinecache/index.html
index c6e5f34..93a3d8d 100644
--- a/en/offlinecache/index.html
+++ b/en/offlinecache/index.html
@@ -49,8 +49,8 @@
Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, the url path part]" are loaded first before reaching the network.
bingChat UI
-Install bingChat UI ai.html for censored area (bingChat UI)
-Install bingWrite UI write.html for censored area (bingWrite)
+Install bingChat UI ai.html for censored area (bingChat UI)
+Install bingWrite UI write.html for censored area (bingWrite)
Serverless local sites
Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (.crx for chrome & .xpi for firefox).
Any folder under "sitecache" can be visited as a local site. Urls with search queries can be dynamically processed by the js/wasm code in the local file.
@@ -65,8 +65,8 @@
-Last Modified: 16 April 2023
-refine bingWrite
+
Last Modified: 19 April 2023
+support .js files under 'css' folder
diff --git a/en/rjs/index.html b/en/rjs/index.html
index 0c56e1c..02eb452 100644
--- a/en/rjs/index.html
+++ b/en/rjs/index.html
@@ -48,7 +48,8 @@
javascript for domains
-Global javascript files locates in the subfolder "js" of app private folder. Long press button [☰] to configure. Click the following links to install:
+Earliest loaded global javascript files locates in the subfolder "css" of app private folder.
+Global javascript files locates in the subfolder "js" of app private folder. Long press button [☰] to configure. Click the following links to install:
<a target=_self" href="i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js">Save password
Instant page
large size javascript code can be installed to the folder "bookmarklet" (long pressing button "js" to popup menu):
@@ -66,12 +67,15 @@
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 "default.rjs" whose lines have the following format:
[script name]:[javascript code to return url arrays]
+Activated scripts
+Activate either local (bookmarklets) or remote js to execute the code on the similar sites with option "Activate user script".
+Since activated scripts use internal mechanism of "i:0m" urls, the script itself cannot have 'H', '?' or '/' as its very first character.
Allow remote js on CSP (Content Security Policy) sites
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/..." (html5 or offline cache) .
-Last Modified: 20 February 2023
-add simple modification info
+
Last Modified: 20 April 2023
+support .js files under 'css' folder
diff --git a/en/sitejs/index.html b/en/sitejs/index.html
index 7656fd5..7b14235 100644
--- a/en/sitejs/index.html
+++ b/en/sitejs/index.html
@@ -62,7 +62,7 @@
- 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.
+- "[domain root].js" is loaded at the earliest 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 not matching [domain root].css.
@@ -76,8 +76,8 @@
"sitejs/.js", "sitecss/.css", "sitecss/.js" and "siteextra/.html" are applied to all non-http urls (file urls etc.).
-Last Modified: 29 January 2023
-update README
+
Last Modified: 20 April 2023
+support .js files under 'css' folder
diff --git a/en/sitemap.xml b/en/sitemap.xml
index c5d3908..2d09b8d 100644
--- a/en/sitemap.xml
+++ b/en/sitemap.xml
@@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
/en/_posts/
- 2023-04-18T16:06:03+08:00
+ 2023-04-20T10:19:36+08:00
/en/offlinecache/
- 2023-04-16T16:25:15+08:00
+ 2023-04-19T22:58:18+08:00
/en/tags/
- 2023-04-17T11:05:09+08:00
+ 2023-04-20T10:17:34+08:00
/en/
- 2023-04-18T16:06:03+08:00
+ 2023-04-20T10:19:36+08:00
/en/links/
- 2023-04-18T16:06:03+08:00
+ 2023-04-19T10:00:46+08:00
/en/topposts/
- 2023-04-17T07:27:43+08:00
+ 2023-04-20T10:15:37+08:00
/en/tags/css/
- 2023-01-29T17:41:37+08:00
+ 2023-04-20T10:17:34+08:00
/en/tags/javascript/
- 2023-01-29T17:41:37+08:00
+ 2023-04-20T10:17:34+08:00
/en/sitejs/
- 2023-01-29T17:41:37+08:00
+ 2023-04-20T10:17:34+08:00
/en/rjs/
- 2023-02-20T22:02:48+08:00
+ 2023-04-20T10:15:37+08:00
/en/globalcss/
- 2023-02-14T14:51:20+08:00
+ 2023-04-20T10:19:36+08:00
/en/rjs/
javascript for domains
+Earliest loaded global javascript files locates in the subfolder "css" of app private folder.
Global javascript files locates in the subfolder "js" of app private folder. Long press button [☰] to configure. Click the following links to install:
<a target=_self" href="i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js">Save password
Instant page
large size javascript code can be installed to the folder "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 "search" button to popup the menu.
+Remote javascript is defined in default.
diff --git a/sitemap.xml b/sitemap.xml
index 38e0290..dd463dd 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -4,14 +4,14 @@