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!
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!
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')