Skip to content

Commit f20f138

Browse files
authored
Refactored the impersonation dialog (#994)
Moved the impersonation dialog from a new tab into a popup window. The instance page is refreshed with the new user's context, but the location remains the same.
1 parent f170630 commit f20f138

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Browser Bookmarklets/Impersonation/impersonation.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# User Impersonation
2+
When a user impersonates another user, the page is redirected to the home page for the new user. This bookmarklet will open the impersonation page in a popup window so the user impersonation can be completed without redirecting the paging being viewed. After selecting the new user, the popup will close and the instance page will refresh with the new user context.
3+
4+
This was updated from a new tab to the popup based on the "Quick Login to current instance" bookmarklet by OrgovanGeza.
5+
6+
```js
7+
javascript:let impWin=window.open("/impersonate_dialog.do", "Impersonation", "scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=300,height=300,left=100,top=100");setInterval(()=>{if(!impWin.location.pathname.includes("impersonate")){impWin.close();window.location.reload();};},500);
8+
```

0 commit comments

Comments
 (0)