solve public functions by Claude.ai
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
"matches": ["*://chat.openai.com/*"],
|
||||
"js": [
|
||||
"globals.js",
|
||||
"utils.js",
|
||||
"addCheckboxes.js",
|
||||
"bulkDeleteConversations.js",
|
||||
"bulkArchiveConversations.js"
|
||||
|
||||
@@ -64,5 +64,6 @@
|
||||
</div>
|
||||
|
||||
<script src="popup.js"></script>
|
||||
<script src="utils.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
14
utils.js
Normal file
14
utils.js
Normal file
@@ -0,0 +1,14 @@
|
||||
function getUserInfo() {
|
||||
return new Promise((resolve) => {
|
||||
chrome.identity.getProfileUserInfo({ accountStatus: "ANY" }, (userInfo) => {
|
||||
if (chrome.runtime.lastError) {
|
||||
console.error(chrome.runtime.lastError);
|
||||
resolve(null);
|
||||
} else {
|
||||
resolve(userInfo);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
window.getUserInfo = getUserInfo;
|
||||
Reference in New Issue
Block a user