styling bookmark, markdown or other files

This commit is contained in:
James Feng Cao 2023-02-16 14:20:01 +08:00
parent 5838a014cf
commit 1ed0b0c7ca
12 changed files with 62 additions and 55 deletions

View File

@ -15,6 +15,20 @@
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. 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 &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>
</item>
<item>
<title>Bookmarks</title>
<link>/en/bookmark/</link>
<pubDate>Mon, 16 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/bookmark/</guid>
<description>Wait for url from other devices
berify: reverse image search for video
Tips File handling and styling with home.css &amp;quot;home.css&amp;quot; styles bookmarks and search engines in the same folder or subfolders. The file is in html format instead of CSS, so it needs &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS.
Markdeep for markdown files under the folder &amp;quot;bookmark/md/&amp;quot; Install markdeep styling
Install link for markdown files
Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.</description>
</item>
<item>
<title>Tips</title>
<link>/en/tips/</link>
@ -159,20 +173,6 @@ Toggle all checkboxes in forms
Enable selection</description>
</item>
<item>
<title>Bookmarks</title>
<link>/en/bookmark/</link>
<pubDate>Wed, 18 May 2022 00:00:00 +0000</pubDate>
<guid>/en/bookmark/</guid>
<description>Wait for url from other devices
berify: reverse image search for video
Tips Use the file &amp;quot;home.css&amp;quot; in the same folder or parent folder to style the search engines and bookmarks.
Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.search&amp;quot;) file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace &amp;quot;xxx&amp;quot; with real user and password):
box cloud:POST:type=webdav&amp;amp;url=https://dav.box.com/dav&amp;amp;username=xxx&amp;amp;password=xxx:https://demo.filestash.app/login
Commands Clicking to run is only allowed from local pages for bookmarks in this section.</description>
</item>
<item>
<title>Resource redirection</title>
<link>/en/redirect/</link>

View File

@ -50,7 +50,11 @@
<p><a href="i:1w">Wait for url from other devices</a><br>
<a href="https://berify.com">berify: reverse image search for video</a></p>
<h3 id="tips">Tips</h3>
<p>Use the file &quot;home.css&quot; in the same folder or parent folder to style the search engines and bookmarks.</p>
<h4 id="file-handling-and-styling-with-homecss">File handling and styling with home.css</h4>
<p>&quot;home.css&quot; styles bookmarks and search engines in the same folder or subfolders. The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.</p>
<h5 id="markdeep-for-markdown-files-under-the-folder-bookmarkmd">Markdeep for markdown files under the folder &quot;bookmark/md/&quot;</h5>
<p><a href="i:0hbookmark/md/home.css:../searchurl/txt/markdeep.html">Install markdeep styling</a><br>
<a href="i:0gdefault.link::Markdowns:file:///data/data/info.torapp.uweb/files/bookmark/md/ {let as=document.getElementsByTagName('a');for(let i=as.length-1;i>=0;i--){let h=as[i].href;if(h.startsWith('file:')&&h.endsWith('.md'))as[i].href=h%2B'.search';}}%0A">Install link for markdown files</a></p>
<h3 id="bookmarks-with-secrets-post-instead-of-get">Bookmarks with secrets (POST instead of GET)</h3>
<p>The search engine (&quot;.search&quot;) file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace &quot;xxx&quot; with real user and password):<br>
box cloud:POST:type=webdav&amp;url=https://dav.box.com/dav&amp;username=xxx&amp;password=xxx:https://demo.filestash.app/login</p>

View File

@ -51,7 +51,7 @@
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
<h4 id="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
<h4 id="change-logs">Change logs</h4>
<p>973: <a href="../bookmark/index.html">Bookmarks</a> to support css styling.<br>
<p>974: <a href="../bookmark/index.html">Bookmarks</a> to support styling for markdown etc.<br>
971: <a href="../links/index.html">multiple type profiles</a>: switch any data including website logins, user configurations orthogonally.<br>
968: multiple links support for single MENU/(New)Button/GESTURE definition.<br>
964: site source html preprocessing before rendering with user <a href="../sitejs/index.html">site extra html</a>.<br>

View File

@ -84,7 +84,7 @@
&quot;query.autoc&quot;: home screen search autocomplete candidate strings.<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home5.html">home5.html</a>&quot;: user defined home screen. home6.mht(or .html or .search), home7.mht(or .html or .search) ... multiple home screen (pressing right arrow button to visit; home4.mht(or .html or .search), home3.mht(or .html or .search) ... (long pressing left arrow button to access).<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home5.search">home5.search</a>&quot;:<a href="../search/index.html">search engines</a><br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home.css">home.css</a>&quot;: <a href="../searchurl/homescreen.html">home screen styles</a><br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home.css">home.css</a>&quot;: <span style="color:red">html</span> file for <a href="../searchurl/homescreen.html">home screen styling</a>, so the css code needs to be inside &quot;&lt;style&gt;&quot; elements.<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/bookmark.html">bookmark.html</a>&quot;: bookmarks<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/quickstart.html">quickstart.html</a>&quot;: <a href="../searchurl/quickstart.html">quick start</a><br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/colors.txt">colors.txt</a>&quot;: background colors<br>

View File

@ -101,6 +101,12 @@
</a>
</li>
<li class="post">
<a href="bookmark/index.html">
<span>Bookmarks</span>
</a>
</li>
<li class="post">
<a href="tips/index.html">
<span>Tips</span>
@ -155,12 +161,6 @@
</a>
</li>
<li class="post">
<a href="bookmark/index.html">
<span>Bookmarks</span>
</a>
</li>
<li class="post">
<a href="redirect/index.html">
<span>Resource redirection</span>

View File

@ -15,6 +15,20 @@
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. 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 &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>
</item>
<item>
<title>Bookmarks</title>
<link>/en/bookmark/</link>
<pubDate>Mon, 16 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/bookmark/</guid>
<description>Wait for url from other devices
berify: reverse image search for video
Tips File handling and styling with home.css &amp;quot;home.css&amp;quot; styles bookmarks and search engines in the same folder or subfolders. The file is in html format instead of CSS, so it needs &amp;quot;&amp;lt;style&amp;gt;&amp;quot; tag for CSS.
Markdeep for markdown files under the folder &amp;quot;bookmark/md/&amp;quot; Install markdeep styling
Install link for markdown files
Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.</description>
</item>
<item>
<title>Tips</title>
<link>/en/tips/</link>
@ -94,7 +108,7 @@ github
sourceforge
powerfolder
pagure
Main features Change logs 973: Bookmarks to support css styling.
Main features Change logs 974: Bookmarks to support styling for markdown etc.
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.
968: multiple links support for single MENU/(New)Button/GESTURE definition.
964: site source html preprocessing before rendering with user site extra html.
@ -293,20 +307,6 @@ 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 &amp;quot;search&amp;quot; button to popup the menu.</description>
</item>
<item>
<title>Bookmarks</title>
<link>/en/bookmark/</link>
<pubDate>Wed, 18 May 2022 00:00:00 +0000</pubDate>
<guid>/en/bookmark/</guid>
<description>Wait for url from other devices
berify: reverse image search for video
Tips Use the file &amp;quot;home.css&amp;quot; in the same folder or parent folder to style the search engines and bookmarks.
Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.search&amp;quot;) file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace &amp;quot;xxx&amp;quot; with real user and password):
box cloud:POST:type=webdav&amp;amp;url=https://dav.box.com/dav&amp;amp;username=xxx&amp;amp;password=xxx:https://demo.filestash.app/login
Commands Clicking to run is only allowed from local pages for bookmarks in this section.</description>
</item>
<item>
<title>Resource redirection</title>
<link>/en/redirect/</link>

View File

@ -0,0 +1,3 @@
<script>window.markdeepOptions = {onload};</script>
<script src=https://casual-effects.com/markdeep/latest/markdeep.min.js? charset=utf-8></script>

View File

@ -79,6 +79,19 @@
hreflang="en"
href="/en/"
/>
</url><url>
<loc>/en/bookmark/</loc>
<lastmod>2023-01-16T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/bookmark/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/bookmark/"
/>
</url><url>
<loc>/en/tips/</loc>
<lastmod>2023-01-16T00:00:00+00:00</lastmod>
@ -257,19 +270,6 @@
hreflang="en"
href="/en/rjs/"
/>
</url><url>
<loc>/en/bookmark/</loc>
<lastmod>2022-05-18T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/bookmark/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/bookmark/"
/>
</url><url>
<loc>/en/tags/redirection/</loc>
<lastmod>2022-04-25T00:00:00+00:00</lastmod>

View File

@ -18,7 +18,7 @@ github
sourceforge
powerfolder
pagure
Main features Change logs 973: Bookmarks to support css styling.
Main features Change logs 974: Bookmarks to support styling for markdown etc.
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.
968: multiple links support for single MENU/(New)Button/GESTURE definition.
964: site source html preprocessing before rendering with user site extra html.

View File

@ -359,7 +359,7 @@ webview 80- 夜间模式</description>
&amp;quot;query.autoc&amp;quot;:主屏搜索autocomplete候选字符串
&amp;quot;home5.html&amp;quot;:自定义主屏home6.html, home6.search, home7.html ... 多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ... (长按后退按钮可进)。
&amp;quot;home5.search&amp;quot;:主屏搜索引擎
&amp;quot;home.css&amp;quot;:主屏风格
&amp;quot;home.css&amp;quot;:主屏风格虽然后缀名为css但其格式为html故css代码需放在&amp;quot;&amp;lt;style&amp;gt;&amp;quot;元素内。
&amp;quot;bookmark.html&amp;quot;:主书签
&amp;quot;quickstart.html&amp;quot;:快速访问
&amp;quot;colors.txt&amp;quot;:护眼背景色

View File

@ -84,7 +84,7 @@
&quot;query.autoc&quot;:主屏搜索autocomplete候选字符串<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home5.html">home5.html</a>&quot;:自定义主屏home6.html, home6.search, home7.html ... 多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ... (长按后退按钮可进)。<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home5.search">home5.search</a>&quot;:<a href="../search/index.html">主屏搜索引擎</a><br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home.css">home.css</a>&quot;:<a href="../searchurl/homescreen.html">主屏风格</a><br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/home.css">home.css</a>&quot;:<a href="../searchurl/homescreen.html">主屏风格</a>虽然后缀名为css但其格式为html故css代码需放在&quot;&lt;style&gt;&quot;元素内。<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/bookmark.html">bookmark.html</a>&quot;:主书签<br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/quickstart.html">quickstart.html</a>&quot;:<a href="../searchurl/quickstart.html">快速访问</a><br>
&quot;<a href="file:///data/data/info.torapp.uweb/files/colors.txt">colors.txt</a>&quot;:护眼背景色<br>

View File

@ -571,7 +571,7 @@ webview 80- 夜间模式</description>
&amp;quot;query.autoc&amp;quot;:主屏搜索autocomplete候选字符串
&amp;quot;home5.html&amp;quot;:自定义主屏home6.html, home6.search, home7.html ... 多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ... (长按后退按钮可进)。
&amp;quot;home5.search&amp;quot;:主屏搜索引擎
&amp;quot;home.css&amp;quot;:主屏风格
&amp;quot;home.css&amp;quot;:主屏风格虽然后缀名为css但其格式为html故css代码需放在&amp;quot;&amp;lt;style&amp;gt;&amp;quot;元素内。
&amp;quot;bookmark.html&amp;quot;:主书签
&amp;quot;quickstart.html&amp;quot;:快速访问
&amp;quot;colors.txt&amp;quot;:护眼背景色