Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/helpers/get-developer-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export function getDeveloperNameByPage() {
return $('.p-nickname.vcard-username.d-block').text().trim().split(' ')[0];
}
export function getDeveloperNameByUrl() {
return pageDetect.utils.getUsername()!;
const currentUrl = window.location.href;
const parsedUrl = new URL(currentUrl);
const pathParts = parsedUrl.pathname.split('/');
const developerName = pathParts[pathParts.length - 1];
return developerName;
}

export async function isDeveloperWithMeta() {
Expand Down