aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/ansero_example.html8
-rw-r--r--tool/irssi_cf_alturl.pl14
2 files changed, 9 insertions, 13 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>';
diff --git a/tool/irssi_cf_alturl.pl b/tool/irssi_cf_alturl.pl
index 07dd8449..24472c85 100644
--- a/tool/irssi_cf_alturl.pl
+++ b/tool/irssi_cf_alturl.pl
@@ -24,7 +24,7 @@
use vars qw($VERSION %IRSSI);
-$VERSION = "20190706";
+$VERSION = "20200501";
%IRSSI = (
# Special thanks to: "eo, tsaavik"
@@ -227,10 +227,10 @@ sub GotUrl {
deb("$target Asking API about $fqdn");
$answer = '';
$url =
- 'https://api.searxes.eu.org/_/ismitm.php?f='
+ 'https://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ismitm.php?f='
. $fqdn;
$browser = LWP::UserAgent->new;
- $browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
+ $browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Firefox/78.0");
$response = $browser->get($url);
$answer = $response->content;
if ( $answer eq '[true,true]' ) {
@@ -246,14 +246,14 @@ sub GotUrl {
if ( length($myurl) > $cfg_minurllen ) {
if ( $cfg_shortonion == 1 ) {
deb("$target Creating Short Onion for $myurl");
- $url = 'https://url.danwin1210.me/?i=new&url=' . $myurl;
+ $url = 'http://hbfkuwcbzhcht33fetbiajuh7i6gqupgnyupxcmujiky34drzmpajrid.onion/?i=new&url=' . $myurl;
$browser = LWP::UserAgent->new;
- $browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
+ $browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Firefox/78.0");
$response = $browser->get($url);
$answer = $response->content;
if (
index( $answer,
- 'http://dt2tq5y2ccowebjo.onion/?' ) == 0
+ 'http://hbfkuwcbzhcht33fetbiajuh7i6gqupgnyupxcmujiky34drzmpajrid.onion/?' ) == 0
)
{
if ( $mytype eq '' ) {
@@ -270,7 +270,7 @@ sub GotUrl {
$url =
'https://ux.nu/api/short?format=plain&url=' . $myurl;
$browser = LWP::UserAgent->new;
- $browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
+ $browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Firefox/78.0");
$response = $browser->get($url);
$answer = $response->content;
if ( index( $answer, 'https://ux.nu/' ) == 0 ) {