-2

I want to attach one label below Inbox in gmail with some name, and on click it should show some content in content area, problem is gmail do not have id of left pane how can i do this using javascript? please seen attached picture

enter image description here

Arvind
  • 1,207
  • 6
  • 27
  • 55
  • You misunderstand Stack Overflow. We're not here to write code for you. Show us the markup and script that you've already tried and explain what was wrong with it. – Reinstate Monica Cellio Oct 22 '13 at 11:42

1 Answers1

1

You can go down through structure like:

$('div[tabindex=0]:first > div:nth-child(2) > div > div:nth-child(2) > div:first > div:first > div:first > div:nth-child(2) > div > div > div:nth-child(2)')

Or you can use :contains selector like (I have Polish version):

$('h2:contains(Etykiety)').parent()

By the way - isn't messing with gmail with use of some scripting injected into site against their user agreement rules?

Zbyszek
  • 1,420
  • 18
  • 23