I tried to inject a style using this code:
document.body.style.color=\'green!important\';
Per the CSS cascade ref, by applying the !i
I would like to pose that it may not be working not so much due to any error in code (excepting the space) but more because modifying the body tag isn't a specific enough element, class, or what have you to create the desired effect.
Like for instance the page text of a search result has a class of "st".
all search results are each encapsulated in an
tag.
So some code to such effect might look like this:
var arr = document.getElementsByClassName('st');
for(i=0; i