ebrowser v1.0.39

master
James Feng Cao 5 months ago
parent ad1d9e33b7
commit 8367164d73

@ -122,6 +122,11 @@ npm install ebrowser
</li>
<li>&quot;!&quot; address bar commands<br>
&quot;!xx ...&quot; evaluates &quot;xx.js&quot; with the whole text as arguments[0].</li>
<li>i: internal urls, which will be consistent with <a href="https://jamesfengcao.gitlab.io/uweb/en/links/index.html">uweb</a>.
<ul>
<li>&quot;i:0/js/xxx.js:[url]&quot; loads the &quot;[url]&quot; with bookmarklet &quot;js/xxx.js&quot;.</li>
</ul>
</li>
</ul>
<h4 id="commands-in-no-focus-mode-this-mode-is-similar-to-vi-normal-mode">Commands in no-focus mode (this mode is similar to vi Normal mode)</h4>
<p>Pressing &quot;ESC&quot; to enter no-focus mode if not sure.</p>
@ -185,7 +190,7 @@ npm install ebrowser
<p>You can copy or modify the code/program under the terms of the GPL3.0 or later versions.</p>
</div>
<p>Last Modified: 27 June 2024<br>
<p>Last Modified: 28 June 2024<br>
<br>
<pre></pre>
</p>

@ -6,7 +6,7 @@
<description>Recent content on uweb browser: unlimited power</description>
<generator>Hugo</generator>
<language>en</language>
<lastBuildDate>Thu, 27 Jun 2024 22:14:12 +0800</lastBuildDate>
<lastBuildDate>Fri, 28 Jun 2024 10:09:04 +0800</lastBuildDate>
<atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Text selection/processing</title>

@ -71,7 +71,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2024-06-27T22:14:12+08:00</lastmod>
<lastmod>2024-06-28T10:09:04+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -508,7 +508,7 @@
/>
</url><url>
<loc>/en/ebrowserreadme/</loc>
<lastmod>2024-06-27T22:14:12+08:00</lastmod>
<lastmod>2024-06-28T10:09:04+08:00</lastmod>
</url><url>
<loc>/en/mirrors/</loc>
<lastmod>2024-06-18T23:17:17+08:00</lastmod>
@ -539,7 +539,7 @@
/>
</url><url>
<loc>/en/unlist/</loc>
<lastmod>2024-06-27T22:14:12+08:00</lastmod>
<lastmod>2024-06-28T10:09:04+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"

@ -77,7 +77,9 @@ Like any popular browser, the very first word in address bar if defined in "sear
- pdf [filename w/o extension] {[options](https://www.electronjs.org/docs/latest/api/web-contents#contentsprinttopdfoptions)} : print to PDF file. All arguments are optional; empty option "{}" to capture long screenshot as vector graphics.
- "!" address bar commands
"!xx ..." evaluates "xx.js" with the whole text as arguments[0].
- i: internal urls, which will be consistent with [uweb](https://jamesfengcao.gitlab.io/uweb/en/links/index.html).
- "i:0/js/xxx.js:[url]" loads the "[url]" with bookmarklet "js/xxx.js".
#### Commands in no-focus mode (this mode is similar to vi Normal mode)
Pressing "ESC" to enter no-focus mode if not sure.
- ":" for address bar commands

@ -470,7 +470,7 @@ You should have received a copy of the GNU General Public License along with thi
case 48://'0' i:0
switch(subcmd){
case 47://'/' i:0/
if(106===url.charCodeAt(4) && 115===url.charCodeAt(5) && 47===url.charCoseAt(6)){
if(106===url.charCodeAt(4) && 115===url.charCodeAt(5) && 47===url.charCodeAt(6)){
//i:0/js/xx:[url]
let fname = url.slice(4,iColon);
let pname = path.join(__dirname,fname);
@ -504,7 +504,6 @@ function autocomplete(inp,container,arr) {
inp.addEventListener("input", function(e) {
const MAXITEMS = 30;
var b, i, val = this.value;
console.log(val)
if (!val) { return false;}
currentFocus = -1;
let items = container.children;

@ -1,4 +1,4 @@
{"version":"1.0.38",
{"version":"1.0.39",
"name": "ebrowser",
"description": "The keyboard-friendly minimal suckless web browser",
"main": "webview.js",

@ -17,5 +17,6 @@
"git":"https://github.com/search?type=Repositories&q=%s",
"gt":"https://kkgithub.com/search?type=Repositories&q=%s",
"360":"https://so.360.com/s?q=%s",
"tg":"i:0/js/hash2textarea.js:https://www.tiangong.cn/#%s",
"bd":"https://m.baidu.com/s?wd=%s"
}

@ -4,7 +4,7 @@
<sitemap>
<loc>/en/sitemap.xml</loc>
<lastmod>2024-06-27T22:14:12+08:00</lastmod>
<lastmod>2024-06-28T10:09:04+08:00</lastmod>
</sitemap>

Loading…
Cancel
Save