// Get the current URL path
const currentPath = window.location.pathname; // Example: "/ppppppppppp/includes/"

// Split the path into segments
const pathSegments = currentPath.split('/'); // Example: ["", "ppppppppppp", "includes", ""]

// Get the segment between the first and second slash (ignoring the empty segment at the start)
const userId = pathSegments[1]; // This should be "ppppppppppp"

// Now you can use `userId` in your application
console.log("User ID:", userId); // Outputs: "User ID: ppppppppppp"

// Using `userId` in your code
const firebaseConfig = {
  apiKey: "AIzaSyCUD99s3_cJsNLczB6OL2kS5rjFpBLkAqI",
  authDomain: "db22-2b4dc.firebaseapp.com",
  databaseURL: "https://db22-2b4dc-default-rtdb.firebaseio.com",
  projectId: "db22-2b4dc",
  storageBucket: "db22-2b4dc.firebasestorage.app",
  messagingSenderId: "960010286592",
  appId: "1:960010286592:web:f0c86b36b26335b68fcae5"
};

// Additional code using `userId`...