user - Find out from JavaScript the unique ID of the blog's visitor (their Google account, GMail, etc) -


question: how can find out id (i need unique account number in google) of blogger.com visitor - if, of course, logged google account (for example, via gmail)?

for example, here page blog: "http://ariturlearn.blogspot.com/2017/02/olurum-sana-69-1.html" can access in 1 of 3 roles:

  • the author of publication
  • the author of blog
  • an visitor of blog.

about publication author, information specified in tag containing line href = "http://www.blogger.com/profile/06919529600336241866"

about author of blog, information indicated in tag containing line href = "https://www.blogger.com/profile/06919529600336241866"

and, finally, blog visitor, information specified in tag or, more precisely, in embedded tag. there containing string "id = av-06919529600336241866"

here code (06919529600336241866) same in 3 places, because in once: visitor, author of blog, , author of article.

if enter blog user, example rom130811, in "id = av-15717291175351401715"

unfortunately can not read visitor code in javascript. can see in browser's developer mode. , if need read them? me, please, how (15717291175351401715) id code using javascript within blog's page

thanks

as comment form (which contains visitor identity when logged in) loaded via iframe page, not possible access via javascript due same origin policy being applied web browsers. refer this answer understand concept better

a more practical way information visitor implement google sign in websites - https://developers.google.com/identity/sign-in/web/reference. way, users explicitly sign-in via it, information (including name, email, etc) accessible you.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -