add CSP & CORS white list support
This commit is contained in:
parent
2d016e3fdb
commit
8bb1645e7c
10 changed files with 34 additions and 39 deletions
|
@ -184,6 +184,7 @@ Save engine:i:54:
|
|||
Save link:i:55:
|
||||
Save to desktop:i:58
|
||||
Add to media storage::001
|
||||
Extract web app:i:0bsitecache/local/:
|
||||
tgurl:https://tx.me/share/url?url=
|
||||
tgdownload:https://tx.me/share/url?url=/download Compatible mode:i:5d
|
||||
papago:https://papago.naver.net/website?locale=en&target=en&url=
|
||||
|
@ -200,8 +201,7 @@ googlecache:http://webcache.googleusercontent.com/search?q=cache:
|
|||
google by image:https://www.google.com/searchbyimage?image_url=
|
||||
tinyeye:https://tineye.com/search?url=
|
||||
Yandex image:https://yandex.com/images/search?text=
|
||||
Yandex by image:https://yandex.com/images/search?family=yes&rpt=imageview&url=
|
||||
ascii2d:https://ascii2d.net/search/url/</description>
|
||||
Yandex by image:https://yandex.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -218,10 +218,6 @@ TTS</p>
|
|||
play video fullscreen. if videourl is empty, then make following requestFullscreen() work.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:5g[videourl]<br>
|
||||
play video in external player</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:5h[?postfix:|/regex/replacement:][url]<br>
|
||||
force html for [url] visiting</p>
|
||||
<ul>
|
||||
|
@ -238,6 +234,10 @@ Use the existing tab for the url with possible different url hash part.</p>
|
|||
if [string] is file url, then send the file/folder to network, otherwise send [string] to network.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:5p[videourl]<br>
|
||||
play video in external player</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:60[path]:[url]<br>
|
||||
If existing local file, then open it or visit the [url].</p>
|
||||
</li>
|
||||
|
|
|
@ -65,6 +65,10 @@
|
|||
<p><a href="i:04Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v">Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v</a></p>
|
||||
<p>Remote script configuration file "default.rjs" whose lines have the following format:<br>
|
||||
[script name]:[javascript code to return url arrays]</p>
|
||||
<h4 id="allow-remote-js-on-csp-content-security-policy-sites">Allow remote js on CSP (Content Security Policy) sites</h4>
|
||||
<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>
|
||||
<h4 id="allow-cors-cross-origin-resource-share">Allow CORS (Cross-Origin Resource Share)</h4>
|
||||
<p>Put a domain followed by "::" in the file "<a href="../redirect/index.html">default.redirect</a>" to allow CORS with the option "resource redirection".</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@ Save engine:i:54:
|
|||
Save link:i:55:
|
||||
Save to desktop:i:58
|
||||
Add to media storage::001
|
||||
Extract web app:i:0bsitecache/local/:
|
||||
tgurl:https://tx.me/share/url?url=
|
||||
tgdownload:https://tx.me/share/url?url=/download Compatible mode:i:5d
|
||||
papago:https://papago.naver.net/website?locale=en&amp;target=en&amp;url=
|
||||
|
@ -84,8 +85,7 @@ googlecache:http://webcache.googleusercontent.com/search?q=cache:
|
|||
google by image:https://www.google.com/searchbyimage?image_url=
|
||||
tinyeye:https://tineye.com/search?url=
|
||||
Yandex image:https://yandex.com/images/search?text=
|
||||
Yandex by image:https://yandex.com/images/search?family=yes&amp;rpt=imageview&amp;url=
|
||||
ascii2d:https://ascii2d.net/search/url/</description>
|
||||
Yandex by image:https://yandex.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
<p><a href="i:01Save link:i:55:">Save link:i:55:</a></p>
|
||||
<p><a href="i:01Save to desktop:i:58">Save to desktop:i:58</a></p>
|
||||
<p><a href="i:01Add to media storage::001">Add to media storage::001</a></p>
|
||||
<p><a href="i:01Extract web app:i:0bsitecache/local/:">Extract web app:i:0bsitecache/local/:</a></p>
|
||||
<p><a href="i:01tgurl:https://tx.me/share/url?url=">tgurl:https://tx.me/share/url?url=</a></p>
|
||||
<p><a href="i:01tgdownload:https://tx.me/share/url?url=/download ">tgdownload:https://tx.me/share/url?url=/download </a></p>
|
||||
<p><a href="i:01Compatible mode:i:5d">Compatible mode:i:5d</a></p>
|
||||
|
@ -88,7 +89,7 @@
|
|||
<p>in which "redirect" needs <a href="../redirect/index.html">default.redirect</a>.</p>
|
||||
<p>The following is mostly useful to send msg to TV (TV side needs to execute "wait for msg" first):</p>
|
||||
<p><a href="i:01Send url/file:i:5j">Send url/file:i:5j</a></p>
|
||||
<p><a href="i:01Send url(player):i:5ji:5g">Send url(player):i:5ji:5g</a></p>
|
||||
<p><a href="i:01Send url(player):i:5ji:5p">Send url(player):i:5ji:5p</a></p>
|
||||
<p><a href="i:01Send url(bookmark):i:5ji:52../home5:">Send url(bookmark):i:5ji:52../home5:</a></p>
|
||||
<p><a href="i:01Send url(clipboard):i:5ji:5b">Send url(clipboard):i:5ji:5b</a></p>
|
||||
<p><a href="i:01Send url(fullscreen):i:5ji:5f">Send url(fullscreen):i:5ji:5f</a></p>
|
||||
|
@ -98,7 +99,7 @@
|
|||
<p><a href="i:01Send url(bookmark site fullscreen):i:5ji:52../home5:i:0mi:5f:">Send url(bookmark site fullscreen):i:5ji:52../home5:i:0mi:5f:</a></p>
|
||||
<p>The following needs corresponding <a href="../html5/index.html">html5 application</a> to be installed:</p>
|
||||
<p><a href="i:01txtview:file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=">txtview:file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=</a></p>
|
||||
<p><a href="i:01mdkatex:file:///data/user/0/info.torapp.uweb/files/app/mdkatex.html?url=">mdkatex:file:///data/user/0/info.torapp.uweb/files/app/mdkatex.html?url=</a></p>
|
||||
<p><a href="i:01md+katex:file:///data/user/0/info.torapp.uweb/files/app/mdkatex.html?url=">md+katex:file:///data/user/0/info.torapp.uweb/files/app/mdkatex.html?url=</a></p>
|
||||
<p><a href="i:01markdeep:file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=">markdeep:file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=</a></p>
|
||||
<p><a href="i:01plyr:file:///data/user/0/info.torapp.uweb/files/app/plyr.html?u=">plyr:file:///data/user/0/info.torapp.uweb/files/app/plyr.html?u=</a></p>
|
||||
<p><a href="i:01dplayer:file:///data/user/0/info.torapp.uweb/files/app/dplayer.html?u=">dplayer:file:///data/user/0/info.torapp.uweb/files/app/dplayer.html?u=</a></p>
|
||||
|
|
11
index.html
11
index.html
|
@ -1,10 +1 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>en/</title>
|
||||
<link rel="canonical" href="en/">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="refresh" content="0; url=en/">
|
||||
</head>
|
||||
</html>
|
||||
<meta http-equiv="refresh" content="0; url=en/index.html">
|
||||
|
|
|
@ -163,7 +163,6 @@ vveby:https://www.vveby.com/search?keyword=
|
|||
历史价格3:http://www.xitie.com/s.php?no=
|
||||
买买买:https://just998.com/price?url=
|
||||
网页快照:https://his.sh/
|
||||
微软翻译:http://www.translatetheweb.com/?to=zh-Hans&amp;a=
|
||||
有道翻译:http://webtrans.yodao.com/webTransPc/index.html?from=auto&amp;to=zh-CHS&amp;type=1&amp;url=
|
||||
搜狗翻译:http://translate.sogoucdn.com/pcvtsnapshot?to=zh-CHS&amp;tfr=translatepc&amp;url=
|
||||
papago翻译:https://papago.naver.net/website?locale=en&amp;source=en&amp;target=zh-CN&amp;url=
|
||||
|
@ -196,14 +195,15 @@ google docs:http://docs.google.com/gview?embedded=true&amp;url=
|
|||
其中&quot;重定向&quot;由文件default.redirect配置,对&quot;file://&quot;重定向将调用合适编辑器编辑文件。
|
||||
适合向TV端发送:(TV端需先执行“等待接收...”)
|
||||
发送url/file:i:5j
|
||||
发送url(播放器):i:5ji:5g
|
||||
发送url(播放器):i:5ji:5p
|
||||
发送url(书签):i:5ji:52../home5:
|
||||
发送url(剪贴板):i:5ji:5b
|
||||
发送url(全屏播放):i:5ji:5f
|
||||
发送url(书签全屏):i:5ji:52../home5:i:5f
|
||||
发送url(整网全屏):i:5ji:0mi:5f:
|
||||
发送url(只显视频):i:5ji:0mc16:
|
||||
发送url(书签整网全屏):i:5ji:52../home5:i:0mi:5f:</description>
|
||||
发送url(书签整网全屏):i:5ji:52../home5:i:0mi:5f:
|
||||
以下需安装相应的html5应用至匹配的目录:</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -208,10 +208,6 @@ TTS</p>
|
|||
play video fullscreen. if videourl is empty, then make following requestFullscreen() work.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:5g[videourl]<br>
|
||||
play video in external player</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:5h[url]<br>
|
||||
force html for url</p>
|
||||
</li>
|
||||
|
@ -224,6 +220,10 @@ force html for url</p>
|
|||
if [string] is file url, then send the file/folder to network, otherwise send [string] to network.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:5p[videourl]<br>
|
||||
play video in external player</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:60[path]:[url]<br>
|
||||
如果本地文件存在就打开,否则访问远程url</p>
|
||||
</li>
|
||||
|
|
|
@ -117,7 +117,6 @@ vveby:https://www.vveby.com/search?keyword=
|
|||
历史价格3:http://www.xitie.com/s.php?no=
|
||||
买买买:https://just998.com/price?url=
|
||||
网页快照:https://his.sh/
|
||||
微软翻译:http://www.translatetheweb.com/?to=zh-Hans&amp;a=
|
||||
有道翻译:http://webtrans.yodao.com/webTransPc/index.html?from=auto&amp;to=zh-CHS&amp;type=1&amp;url=
|
||||
搜狗翻译:http://translate.sogoucdn.com/pcvtsnapshot?to=zh-CHS&amp;tfr=translatepc&amp;url=
|
||||
papago翻译:https://papago.naver.net/website?locale=en&amp;source=en&amp;target=zh-CN&amp;url=
|
||||
|
@ -150,14 +149,15 @@ google docs:http://docs.google.com/gview?embedded=true&amp;url=
|
|||
其中&quot;重定向&quot;由文件default.redirect配置,对&quot;file://&quot;重定向将调用合适编辑器编辑文件。
|
||||
适合向TV端发送:(TV端需先执行“等待接收...”)
|
||||
发送url/file:i:5j
|
||||
发送url(播放器):i:5ji:5g
|
||||
发送url(播放器):i:5ji:5p
|
||||
发送url(书签):i:5ji:52../home5:
|
||||
发送url(剪贴板):i:5ji:5b
|
||||
发送url(全屏播放):i:5ji:5f
|
||||
发送url(书签全屏):i:5ji:52../home5:i:5f
|
||||
发送url(整网全屏):i:5ji:0mi:5f:
|
||||
发送url(只显视频):i:5ji:0mc16:
|
||||
发送url(书签整网全屏):i:5ji:52../home5:i:0mi:5f:</description>
|
||||
发送url(书签整网全屏):i:5ji:52../home5:i:0mi:5f:
|
||||
以下需安装相应的html5应用至匹配的目录:</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -69,7 +69,6 @@
|
|||
<p><a href="i:01历史价格3:http://www.xitie.com/s.php?no=">历史价格3:http://www.xitie.com/s.php?no=</a></p>
|
||||
<p><a href="i:01买买买:https://just998.com/price?url=">买买买:https://just998.com/price?url=</a></p>
|
||||
<p><a href="i:01网页快照:https://his.sh/">网页快照:https://his.sh/</a></p>
|
||||
<p><a href="i:01微软翻译:http://www.translatetheweb.com/?to=zh-Hans&a=">微软翻译:http://www.translatetheweb.com/?to=zh-Hans&a=</a></p>
|
||||
<p><a href="i:01有道翻译:http://webtrans.yodao.com/webTransPc/index.html?from=auto&to=zh-CHS&type=1&url=">有道翻译:http://webtrans.yodao.com/webTransPc/index.html?from=auto&to=zh-CHS&type=1&url=</a></p>
|
||||
<p><a href="i:01搜狗翻译:http://translate.sogoucdn.com/pcvtsnapshot?to=zh-CHS&tfr=translatepc&url=">搜狗翻译:http://translate.sogoucdn.com/pcvtsnapshot?to=zh-CHS&tfr=translatepc&url=</a></p>
|
||||
<p><a href="i:01papago翻译:https://papago.naver.net/website?locale=en&source=en&target=zh-CN&url=">papago翻译:https://papago.naver.net/website?locale=en&source=en&target=zh-CN&url=</a></p>
|
||||
|
@ -102,7 +101,7 @@
|
|||
<p>其中"重定向"由<a href="../redirect/index.html">文件default.redirect配置</a>,对"file://"重定向将调用合适编辑器编辑文件。</p>
|
||||
<p>适合向TV端发送:(TV端需先执行“等待接收...”)<br>
|
||||
<a href="i:01发送url/file:i:5j">发送url/file:i:5j</a></p>
|
||||
<p><a href="i:01发送url(播放器):i:5ji:5g">发送url(播放器):i:5ji:5g</a></p>
|
||||
<p><a href="i:01发送url(播放器):i:5ji:5p">发送url(播放器):i:5ji:5p</a></p>
|
||||
<p><a href="i:01发送url(书签):i:5ji:52../home5:">发送url(书签):i:5ji:52../home5:</a></p>
|
||||
<p><a href="i:01发送url(剪贴板):i:5ji:5b">发送url(剪贴板):i:5ji:5b</a></p>
|
||||
<p><a href="i:01发送url(全屏播放):i:5ji:5f">发送url(全屏播放):i:5ji:5f</a></p>
|
||||
|
@ -111,13 +110,13 @@
|
|||
<p><a href="i:01发送url(只显视频):i:5ji:0mc16:">发送url(只显视频):i:5ji:0mc16:</a></p>
|
||||
<p><a href="i:01发送url(书签整网全屏):i:5ji:52../home5:i:0mi:5f:">发送url(书签整网全屏):i:5ji:52../home5:i:0mi:5f:</a></p>
|
||||
<p>以下需安装相应的<a href="../html5/index.html">html5应用</a>至匹配的目录:</p>
|
||||
<p><a href="i:01大文件:file:///data/data/info.torapp.uweb/files/app/txtview.html?url=">大文件:file:///data/data/info.torapp.uweb/files/app/txtview.html?url=</a></p>
|
||||
<p><a href="i:01markdeep大文件:file:///data/data/info.torapp.uweb/files/app/markdeep.html?url=">markdeep大文件:file:///data/data/info.torapp.uweb/files/app/markdeep.html?url=</a></p>
|
||||
<p><a href="i:01plyr播放器:file:///data/data/info.torapp.uweb/files/app/plyr.html?u=">plyr播放器:file:///data/data/info.torapp.uweb/files/app/plyr.html?u=</a></p>
|
||||
<p><a href="i:01dplayer播放器:file:///data/data/info.torapp.uweb/files/app/dplayer.html?u=">dplayer播放器:file:///data/data/info.torapp.uweb/files/app/dplayer.html?u=</a></p>
|
||||
<p><a href="i:01pdf:file:///data/data/info.torapp.uweb/files/app/pdfviewer.html?file=">pdf:file:///data/data/info.torapp.uweb/files/app/pdfviewer.html?file=</a></p>
|
||||
<p><a href="i:01epub:file:///data/data/info.torapp.uweb/files/app/epub.html?u=">epub:file:///data/data/info.torapp.uweb/files/app/epub.html?u=</a></p>
|
||||
<p><a href="i:01djvu:file:///data/data/info.torapp.uweb/files/app/djvu.html?url=">djvu:file:///data/data/info.torapp.uweb/files/app/djvu.html?url=</a></p>
|
||||
<p><a href="i:01大文件:file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=">大文件:file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=</a></p>
|
||||
<p><a href="i:01markdeep大文件:file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=">markdeep大文件:file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=</a></p>
|
||||
<p><a href="i:01plyr播放器:file:///data/user/0/info.torapp.uweb/files/app/plyr.html?u=">plyr播放器:file:///data/user/0/info.torapp.uweb/files/app/plyr.html?u=</a></p>
|
||||
<p><a href="i:01dplayer播放器:file:///data/user/0/info.torapp.uweb/files/app/dplayer.html?u=">dplayer播放器:file:///data/user/0/info.torapp.uweb/files/app/dplayer.html?u=</a></p>
|
||||
<p><a href="i:01pdf:file:///data/user/0/info.torapp.uweb/files/app/pdfviewer.html?file=">pdf:file:///data/user/0/info.torapp.uweb/files/app/pdfviewer.html?file=</a></p>
|
||||
<p><a href="i:01epub:file:///data/user/0/info.torapp.uweb/files/app/epub.html?u=">epub:file:///data/user/0/info.torapp.uweb/files/app/epub.html?u=</a></p>
|
||||
<p><a href="i:01djvu:file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=">djvu:file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=</a></p>
|
||||
<p>视频解析 (UA为PC时无广告):<br>
|
||||
<a href="i:01isyou:https://video.isyour.love/Search/SearchName/">isyou:https://video.isyour.love/Search/SearchName/</a></p>
|
||||
<p>更多视频服务见:<br>
|
||||
|
|
Loading…
Reference in a new issue