Browse Source

ansero_example.html

pull/23/head
Arman Rye 1 month ago
parent
commit
ca67e4e6b2
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      tool/ansero_example.html

+ 9
- 0
tool/ansero_example.html View File

@@ -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>


Loading…
Cancel
Save