-1

When I go to Google and try this bookmarklet, it doesn't work? Any help please?

javascript:void(document.getElementById('lga').style.display == 'none')

lga is the logo id which I found by inspecting the element. Thanks!

Rutwick Gangurde
  • 4,772
  • 11
  • 53
  • 87
user1947561
  • 1,117
  • 2
  • 8
  • 13

1 Answers1

3

You're using == which is a comparison operator. You want just a single = which will set the value of style.display to none.

javascript:void(document.getElementById('lga').style.display = 'none')
sachleen
  • 30,730
  • 8
  • 78
  • 73