mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
supports user defined extra http request headers
This commit is contained in:
parent
b0147c8c85
commit
0d9d30d783
15 changed files with 62 additions and 35 deletions
|
@ -21,11 +21,12 @@
|
|||
<pubDate>Mon, 16 Jan 2023 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/bookmark/</guid>
|
||||
<description>Wait for url from other devices
|
||||
<description>AI, chatgpt etc.
|
||||
rebbe freegpt Wait for url from other devices
|
||||
berify: reverse image search for video
|
||||
Tips File handling and styling with home.css &quot;home.css&quot; (in current folder, parent folder or the &quot;bookmark&quot; folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.
|
||||
Install markdeep styling for markdown files
|
||||
Bookmarks with secrets (POST instead of GET) The search engine (&quot;.search&quot;) file can be used as bookmarks with secret.</description>
|
||||
Bookmarks with secrets (POST instead of GET) The search engine (&quot;.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
@ -240,8 +241,9 @@ If a new button is defined (file name &quot;20&quot; exists), uweb also
|
|||
[Engine name]:[url without '%s' inside]
|
||||
[Engine name]:[url with '%s' as keyword]
|
||||
[Engine name]:POST:[post params with '%s' as keyword]:[url]
|
||||
Limitations (they are here for performance reasons):
|
||||
The first engine in the file must be the first type that has no '%s' in the engine url. Internal scheme engine urls (such as i:, d:, c:) must have '%s', since '%s' format is more general (only type 2 is allowed, since POST makes no sense for internal schemes).</description>
|
||||
[Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]
|
||||
[Extra request headers] Ex. &quot;X-Forwarded-For;8.8.8.8&quot; Limitations (they are here for performance reasons):
|
||||
The first engine in the file must be the first type that has no '%s' in the engine url.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -47,7 +47,12 @@
|
|||
<ul class="tags">
|
||||
|
||||
</ul>
|
||||
<p><a href="i:1w">Wait for url from other devices</a><br>
|
||||
<p>AI, chatgpt etc.</p>
|
||||
<ul>
|
||||
<li><a href="https://rebbe.io">rebbe</a></li>
|
||||
<li><a href="https://freegpt.one">freegpt</a></li>
|
||||
</ul>
|
||||
<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>
|
||||
<h4 id="file-handling-and-styling-with-homecss">File handling and styling with home.css</h4>
|
||||
|
|
10
en/index.xml
10
en/index.xml
|
@ -21,11 +21,12 @@
|
|||
<pubDate>Mon, 16 Jan 2023 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/bookmark/</guid>
|
||||
<description>Wait for url from other devices
|
||||
<description>AI, chatgpt etc.
|
||||
rebbe freegpt Wait for url from other devices
|
||||
berify: reverse image search for video
|
||||
Tips File handling and styling with home.css &quot;home.css&quot; (in current folder, parent folder or the &quot;bookmark&quot; folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.
|
||||
Install markdeep styling for markdown files
|
||||
Bookmarks with secrets (POST instead of GET) The search engine (&quot;.search&quot;) file can be used as bookmarks with secret.</description>
|
||||
Bookmarks with secrets (POST instead of GET) The search engine (&quot;.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
@ -373,8 +374,9 @@ If a new button is defined (file name &quot;20&quot; exists), uweb also
|
|||
[Engine name]:[url without '%s' inside]
|
||||
[Engine name]:[url with '%s' as keyword]
|
||||
[Engine name]:POST:[post params with '%s' as keyword]:[url]
|
||||
Limitations (they are here for performance reasons):
|
||||
The first engine in the file must be the first type that has no '%s' in the engine url. Internal scheme engine urls (such as i:, d:, c:) must have '%s', since '%s' format is more general (only type 2 is allowed, since POST makes no sense for internal schemes).</description>
|
||||
[Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]
|
||||
[Extra request headers] Ex. &quot;X-Forwarded-For;8.8.8.8&quot; Limitations (they are here for performance reasons):
|
||||
The first engine in the file must be the first type that has no '%s' in the engine url.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -136,11 +136,12 @@ Ex. ":p x" or ":px" for screen width and infinite height (as
|
|||
Extract remote content (tar/tgz/zip) under the folder [path]. If [path] ends with "/", then put unzipped file under the folder "[path]/[file name stem]" (for zipped files only, not for tar/tgz).</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:0m[bookmarklet index|prefix|?postfix|/.../localfile|c[cssFlag]]:[url]<br>
|
||||
<p>i:0m[bookmarklet index|prefix|?postfix|/.../localfile|H[headers]|c[cssFlag]]:[url]<br>
|
||||
Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].</p>
|
||||
<ul>
|
||||
<li>[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, "00" as the first local bookmarklet; "01" as the first remote script; then "02" as the second local bookmarklet, ... The third digit is uplevel, 1 to make bookmarklet valid for parent path of [url].</li>
|
||||
<li>c[cssFlag]: For example, "c12" will apply the third and fourth global CSS (12=2^2+2^3).</li>
|
||||
<li>H[headers]: Ex. "HX-Forwarded-For;8.8.8.8" adds extra http request header "X-Forwarded-For:8.8.8.8".</li>
|
||||
<li>[?postfix]: the real visited url is "[url]+[?postfix]".</li>
|
||||
<li>[/.../localfile]: load the local html/js file that processes [url]. The first character of the local html file must be "<".</li>
|
||||
<li>All other cases will be treated as [prefix], the real visited url is "[prefix]+[url]".</li>
|
||||
|
|
|
@ -52,7 +52,11 @@
|
|||
<p>Any ".search" file can be opened as search engine file, each line of which has one of the following formats:<br>
|
||||
[Engine name]:[url without '%s' inside]<br>
|
||||
[Engine name]:[url with '%s' as keyword]<br>
|
||||
[Engine name]:POST:[post params with '%s' as keyword]:[url]</p>
|
||||
[Engine name]:POST:[post params with '%s' as keyword]:[url]<br>
|
||||
[Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]</p>
|
||||
<ul>
|
||||
<li>[Extra request headers] Ex. "X-Forwarded-For;8.8.8.8"</li>
|
||||
</ul>
|
||||
<p>Limitations (they are here for performance reasons):</p>
|
||||
<ul>
|
||||
<li>The first engine in the file must be the first type that has no '%s' in the engine url.</li>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
<style>a{color:inherit;text-decoration:inherit;}</style>
|
||||
<script>
|
||||
if(location.href.endsWith('/')){
|
||||
window.onload=function (){
|
||||
|
|
|
@ -16,8 +16,9 @@
|
|||
[Engine name]:[url without '%s' inside]
|
||||
[Engine name]:[url with '%s' as keyword]
|
||||
[Engine name]:POST:[post params with '%s' as keyword]:[url]
|
||||
Limitations (they are here for performance reasons):
|
||||
The first engine in the file must be the first type that has no '%s' in the engine url. Internal scheme engine urls (such as i:, d:, c:) must have '%s', since '%s' format is more general (only type 2 is allowed, since POST makes no sense for internal schemes).</description>
|
||||
[Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]
|
||||
[Extra request headers] Ex. &quot;X-Forwarded-For;8.8.8.8&quot; Limitations (they are here for performance reasons):
|
||||
The first engine in the file must be the first type that has no '%s' in the engine url.</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue