Skip to content
Browse files

Added an option to show current user name in the Account Switcher

  • Loading branch information...
1 parent c5e7a03 commit a8466c946be81ea6576b21badafd86aa942c05a5 @Lugghawk committed Apr 18, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/reddit_enhancement_suite.user.js
View
7 lib/reddit_enhancement_suite.user.js
@@ -12608,6 +12608,11 @@ modules['accountSwitcher'] = {
type: 'boolean',
value: false,
description: 'Keep me logged in when I restart my browser.'
+ },
+ showCurrentUserName: {
+ type: 'boolean',
+ value: false,
+ description: 'Show my current user name in the Account Switcher.'
}
},
description: 'Store username/password pairs and switch accounts instantly while browsing Reddit!',
@@ -12655,7 +12660,7 @@ modules['accountSwitcher'] = {
var accountCount = 0;
for (var i=0, len=accounts.length; i<len; i++) {
thisPair = accounts[i];
- if (thisPair[0] != this.loggedInUser) {
+ if (thisPair[0] != this.loggedInUser || this.options.showCurrentUserName.value){
accountCount++;
var thisLI = document.createElement('LI');
addClass(thisLI, 'accountName');

0 comments on commit a8466c9

Please sign in to comment.
Something went wrong with that request. Please try again.