aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArman Rye <b0ac4fa13207f0f1ed765cd6dce219cd26588a80@cloudflare.com>2020-06-22 12:17:19 +0200
committerArman Rye <b0ac4fa13207f0f1ed765cd6dce219cd26588a80@cloudflare.com>2020-06-22 12:17:19 +0200
commitca67e4e6b246b25c937243d858c9a05025d55b05 (patch)
treef7470f53198ae936dee3c56cb252adfa1836e386
parentdccb05e84a9df1c49b60e73e79b6529204a7b222 (diff)
downloadcloudflare-tor-ca67e4e6b246b25c937243d858c9a05025d55b05.tar.lz
cloudflare-tor-ca67e4e6b246b25c937243d858c9a05025d55b05.tar.xz
cloudflare-tor-ca67e4e6b246b25c937243d858c9a05025d55b05.zip
ansero_example.html
-rw-r--r--tool/ansero_example.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/tool/ansero_example.html b/tool/ansero_example.html
index ff578c55..2d7c6ed2 100644
--- a/tool/ansero_example.html
+++ b/tool/ansero_example.html
@@ -22,16 +22,24 @@ a[onclick] {
}
</style>
<script>
+
+// API document:
+// 1. Open https://ss.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/
+// 2. Click =
+// 3. Click "Public API"
+
let apiurl = 'https://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ansero.php';
let favurl = 'https://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/favicon.php?f=';
let mylang = 'en-US';
let hide_domain = []; // e.g. 'google.com'
let hide_fqdn = []; // e.g. 'en.wikipedia.org'
let removeMITMsites = false;
+
function searchfor(key) {
document.getElementById('what').value = key;
search();
}
+
function search() {
let answer = '',
keyword = document.getElementById('what').value;
@@ -73,6 +81,7 @@ function search() {
}).catch(e => console.log(e));
return false;
}
+
</script>
</head>
<body>