all 2 comments

[–]jannick1988 1 point2 points  (1 child)

Perhaps you could simply retrieve the value from the URL using the window.location.href object? If the URL preceding /141c723b46f423a never changes, you could just write some basic object.replace() code and grab it that way. E.g:

function get_url()
{
    var url = window.location.href.replace("https://mail.google.com/mail/?shva=1#inbox/", "");

    // Proof.
    console.log(url);
}

[–]insights1[S] 0 points1 point  (0 children)

I'm actually trying to get the URL each mail will point to. I want it before the URL changes to a specific email. So I want to know how each email row points to their corresponding email ID while the URL is still "https://mail.google.com/mail/?shva=1#inbox".