So, I’m trying to run a jQuery content script in a Chrome Extension. Simple enough, right? I can do:
$("#header").hide();
Just fine (if an element has the id “header”), but as soon as I try:
$(html).hide();
The console says:
Uncaught ReferenceError: html is not defined
I tried body, div, everything. I cannot directly grab all elements. What gives?
I’m using jQuery 1.8.3 if that helps.
htmlisn’t defined,"html"is. Put it in quotes.