diff options
author | themusicgod1 <themusicgod1@noreply.codeberg.org> | 2020-05-19 11:16:04 +0200 |
---|---|---|
committer | themusicgod1 <themusicgod1@noreply.codeberg.org> | 2020-05-19 11:16:04 +0200 |
commit | 9f6dff88bda0151fdc71f7c06f6275946e8e78a9 (patch) | |
tree | ea3ad62d5669ecde29fc31320868ee2bba832b28 /tool/ansero_example.html | |
parent | 86d35b6fc5b2cb509354d21dce2a83436eaf3a77 (diff) | |
parent | c3f903f2f12d9da2f9479e6c0f2a89c16a89d956 (diff) | |
download | cloudflare-tor-9f6dff88bda0151fdc71f7c06f6275946e8e78a9.tar.lz cloudflare-tor-9f6dff88bda0151fdc71f7c06f6275946e8e78a9.tar.xz cloudflare-tor-9f6dff88bda0151fdc71f7c06f6275946e8e78a9.zip |
Merge pull request 'Import changes from trac.torproject.org' (#4) from J0NA8_Fz/cloudflare-tor:master into master
Diffstat (limited to 'tool/ansero_example.html')
-rw-r--r-- | tool/ansero_example.html | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tool/ansero_example.html b/tool/ansero_example.html index 6cdc2fbb..ff578c55 100644 --- a/tool/ansero_example.html +++ b/tool/ansero_example.html @@ -22,8 +22,8 @@ a[onclick] { } </style> <script> -let apiurl = 'https://ansero.eu.org/api/ansero.php'; -let favurl = 'https://ansero.eu.org/api/favicon.php?f='; +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' @@ -61,10 +61,6 @@ function search() { } r.res.forEach(x => { if (!hide_fqdn.includes(x.fqdn) && !hide_domain.includes(x.dom)) { - if (/^https:\/\/www\.youtube\.com\/watch\?v=(.*)$/.test(x.url)) { - x.url = 'https://invidio.us/watch?' + x.url.split('/watch?')[1]; - x.fqdn = x.dom = 'invidio.us'; - } answer += '<span class="srch_sect">'; answer += '<img src="' + favurl + (x.url.startsWith('https:') ? '1-' : '0-') + x.fqdn + '"> '; answer += '<a href="' + x.url + '" class="srch_link">' + (x.mitm == 1 ? '[MITM!!] ' : '') + x.title + '</a><br>'; |