mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
ebrowser updates
This commit is contained in:
parent
2cc5b79da4
commit
eba6f63b7f
13 changed files with 113 additions and 53 deletions
|
@ -49,20 +49,25 @@
|
|||
<li>lightweight (less than 20k bytes) without bundled electron.</li>
|
||||
<li>much less memory footprint than edge/chrome browser and highly performant.</li>
|
||||
<li>keyboard friendly with vim-style keymaps and command line support in address bar.</li>
|
||||
<li>global redirection to bypass censorship.</li>
|
||||
<li><a href="https://uweb.surge.sh/en/redirect/index.html#">global redirection</a> to bypass censorship.</li>
|
||||
<li>user scripts at will. Ex. pressing "tr" to translate the page (need mapkeys.json config).</li>
|
||||
<li>customizable.</li>
|
||||
</ul>
|
||||
<p>Note: Usually electron apps are heavyweight as they use browsers for simple things. Ebrowser uses core chromium effectively and very lightweight. Recommend to install electron separately.</p>
|
||||
<h4 id="install-for-windows-macos-and-linux">Install (for Windows, MacOS and Linux)</h4>
|
||||
<p>Install ebrowser with nodejs installed</p>
|
||||
<pre><code>npm install ebrowser
|
||||
<h4 id="installing-for-windows-macos-and-linux">Installing (for Windows, MacOS and Linux)</h4>
|
||||
<h5 id="install-with-prebuilt-binaries">Install with prebuilt binaries</h5>
|
||||
<p>You can find prebuilt binaries <a href="https://github.com/torappinfo/ebrowser/releases">here</a>.</p>
|
||||
<h5 id="install-with-nodejs-installed">Install with nodejs installed</h5>
|
||||
<pre><code>npm install electron
|
||||
npm install ebrowser
|
||||
</code></pre>
|
||||
<p>Run ebrowser</p>
|
||||
<pre><code>electron ~/node_modules/ebrowser
|
||||
</code></pre>
|
||||
<p>Later on, you can run "npm install electron" to update electron/chromium or "npm install ebrowser" to update ebrowser independently.</p>
|
||||
<h4 id="key-shortcuts">Key shortcuts</h4>
|
||||
<ul>
|
||||
<li>F1: Help</li>
|
||||
<li>CTRL+C: stop loading</li>
|
||||
<li>CTRL+G: address bar to show page url</li>
|
||||
<li>CTRL+L: focus to address bar</li>
|
||||
|
@ -101,13 +106,14 @@
|
|||
<li>nh/uh for No/Use url history.</li>
|
||||
<li>nj/uj for No/Use external Javascript files.</li>
|
||||
<li>nr/ur for No/Use "redirect.json" for domain redirection.</li>
|
||||
<li>np : no proxy</li>
|
||||
<li>up [proxyName] : use proxy. privous proxy or the first proxy in proxy.json w/o [proxyName].</li>
|
||||
<li>np : no proxy.</li>
|
||||
<li>up [proxyName] : use proxy. privous proxy or the first proxy in proxy.json w/o [proxyName]. ":up" command also disables global and domain redirections, which are not restored by ":np".</li>
|
||||
<li>ua [useragentName] : set user agent for future tabs. default user agent w/o arguments.</li>
|
||||
<li>pdf [filename w/o extension] {<a href="https://www.electronjs.org/docs/latest/api/web-contents#contentsprinttopdfoptions">options</a>} : print to PDF file. All arguments are optional; empty option "{}" to capture long screenshot as vector graphics.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>":!" address bar commands</li>
|
||||
<li>"!" address bar commands<br>
|
||||
"!xx ..." evaluates "xx.js" with the whole address bar text as arguments[0].</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 "ESC" to enter no-focus mode if not sure.</p>
|
||||
|
@ -150,9 +156,11 @@
|
|||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 id="license">License</h4>
|
||||
<p>You can copy or modify the code/program under the terms of the GPL3.0 or later versions.</p>
|
||||
|
||||
</div>
|
||||
<p>Last Modified: 15 June 2024<br>
|
||||
<p>Last Modified: 18 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>Sat, 15 Jun 2024 09:56:42 +0800</lastBuildDate>
|
||||
<lastBuildDate>Tue, 18 Jun 2024 10:22:59 +0800</lastBuildDate>
|
||||
<atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Text selection/processing</title>
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<p><a href="i:04Selection to sentence:;let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);">Selection to sentence:;let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);</a></p>
|
||||
<p><a href="i:04Selection to line:;let g='line';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);</a></p>
|
||||
<p><a href="i:04Selection to paragraph:;let g='paragraph';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);</a></p>
|
||||
<p><a href="i:04markdown:['https://cdn.jsdelivr.net/npm/showdown/dist/showdown.min.js'];var d=document;var md=d.querySelector('pre').innerText;var c=new showdown.Converter({emoji:true,underline:true,});c.setFlavor('github');d.body.innerHTML=c.makeHtml(md);d.title=d.title||d.body.firstElementChild.innerText.trim();">markdown:['https://cdn.jsdelivr.net/npm/showdown/dist/showdown.min.js'];var d=document;var md=d.querySelector('pre').innerText;var c=new showdown.Converter({emoji:true,underline:true,});c.setFlavor('github');d.body.innerHTML=c.makeHtml(md);d.title=d.title||d.body.firstElementChild.innerText.trim();</a></p>
|
||||
<p><a href="i:04markdown:['https://cdn.jsdelivr.net/npm/marked@12.0.2/marked.min.js'];var d=document;d.body.innerHTML=marked.parse(d.body.textContent);d.title=d.title||d.body.firstElementChild.innerText.trim();">markdown:['https://cdn.jsdelivr.net/npm/marked@12.0.2/marked.min.js'];var d=document;d.body.innerHTML=marked.parse(d.body.textContent);d.title=d.title||d.body.firstElementChild.innerText.trim();</a></p>
|
||||
<p><a href="i:04mermaid:;loadModuleJS(`import mermaid from 'https://unpkg.com/mermaid/dist/mermaid.esm.min.mjs';mermaid.initialize({startOnLoad:true});`)">mermaid:;loadModuleJS(<code>import mermaid from 'https://unpkg.com/mermaid/dist/mermaid.esm.min.mjs';mermaid.initialize({startOnLoad:true});</code>)</a></p>
|
||||
<p><a href="i:04mathjax:['https://fastly.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js']">mathjax:['https://fastly.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js']</a></p>
|
||||
<p><a href="i:04New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)">New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)</a></p>
|
||||
|
@ -76,7 +76,7 @@
|
|||
<p>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/..." (<a href="../html5/index.html#">html5</a> or <a href="../offlinecache/index.html#">offline cache</a>) .</p>
|
||||
|
||||
</div>
|
||||
<p>Last Modified: 8 April 2024<br>
|
||||
<p>Last Modified: 18 June 2024<br>
|
||||
fix typos<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/</loc>
|
||||
<lastmod>2024-06-15T09:56:42+08:00</lastmod>
|
||||
<lastmod>2024-06-18T10:22:59+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -181,7 +181,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/topposts/</loc>
|
||||
<lastmod>2024-06-08T10:09:00+08:00</lastmod>
|
||||
<lastmod>2024-06-18T08:06:41+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -359,7 +359,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/rjs/</loc>
|
||||
<lastmod>2024-04-08T18:08:11+08:00</lastmod>
|
||||
<lastmod>2024-06-18T08:06:41+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -508,7 +508,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/ebrowserreadme/</loc>
|
||||
<lastmod>2024-06-15T09:56:42+08:00</lastmod>
|
||||
<lastmod>2024-06-18T10:22:59+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>/en/mirrors/</loc>
|
||||
<lastmod>2024-04-06T10:20:49+08:00</lastmod>
|
||||
|
@ -539,7 +539,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/unlist/</loc>
|
||||
<lastmod>2024-06-15T09:56:42+08:00</lastmod>
|
||||
<lastmod>2024-06-18T10:22:59+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<description>Recent content in Topposts on uweb browser: unlimited power</description>
|
||||
<generator>Hugo</generator>
|
||||
<language>en</language>
|
||||
<lastBuildDate>Sat, 08 Jun 2024 10:09:00 +0800</lastBuildDate>
|
||||
<lastBuildDate>Tue, 18 Jun 2024 08:06:41 +0800</lastBuildDate>
|
||||
<atom:link href="/en/topposts/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Search engines</title>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue