Update index.html

This commit is contained in:
bihlink 2022-07-06 02:10:19 +02:00 committed by GitHub
parent 372af57a7b
commit 57ec8c7c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -85,7 +85,19 @@
return document.getElementById(id).value;
}
var inUrl = 'https://' + val('urlin') + '/users/' + val('usernamein');
var instype = val('instancetype');
if (instype == "wordpress") {
var inUrl = 'https://' + val('urlin') + '/author/' + val('usernamein');
}
else if(instype == "misskey") {
var inUrl = 'https://' + val('urlin') + '/@' + val('usernamein');
}
else if(instype == "mastodon") {
var inUrl = 'https://' + val('urlin') + '/users/' + val('usernamein');
}
else {
var inUrl = 'https://' + val('urlin') + '/users/' + val('usernamein');
}
var showBoosts = (!document.getElementById('hideboosts').checked).toString();
var showReplies = (!document.getElementById('hidereplies').checked).toString();