Skip to content

Commit

Permalink
💪
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mhany committed Dec 10, 2023
1 parent 9c0810e commit 2381cf3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
2 changes: 0 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Background script for a Chrome Extension

console.log("Background script loading");

// Function to save a cookie to Cloudflare KV
Expand Down
22 changes: 0 additions & 22 deletions content_scripts/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ if (isLoggedOut()) {
}

// Function to save credentials to Cloudflare KV
// This function should be called when you're ready to save the credentials
function saveCredentialsToCloudflare() {
console.log("Saving credentials to Cloudflare.");

Expand Down Expand Up @@ -159,24 +158,3 @@ requestCookie("fem_auth_mod", (response) => {
console.log("Cookie not found or response is empty");
}
});

// Function that sets user credentials in the page's input fields
// function setUserCredentialsInPage(username, password) {
// const usernameInput = document.getElementById("username");
// const passwordInput = document.getElementById("password");

// if (usernameInput && passwordInput) {
// usernameInput.value = username;
// passwordInput.value = password;
// console.log("User credentials have been set on the page.");
// } else {
// console.error("Username or Password input fields not found on the page.");
// }
// }

// Listener for messages from the background script
// chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
// if (message.action === "setUserCredentials") {
// setUserCredentialsInPage(message.username, message.password);
// }
// });

0 comments on commit 2381cf3

Please sign in to comment.