A trailing ; would be the right way to do it.
!important is not needed, inline CSS goes before linked stylesheets. I
guess !important is needed when the linked stylesheet also has
!important for a rule. But I never tried that out.
ArmEagle
On 15-04-13 07:54, Ben wrote:
Thank you.
Two more questions:
Do I have to append a ";" at the end of a document.querySeleector()
statement?
Assume I put the document.querySeleector() statement at the end of a
GM script (e.g. after other GM_addStyle() statements):
Do I have to add an "!important;" postfix to this statement?
Am Sonntag, 14. April 2013 09:54:47 UTC+2 schrieb ArmEagle:
document.querySelector('img[title="DIE WELT"]').setAttribute('style',
'width: 50%;')
--
You received this message because you are subscribed to the Google
Groups "greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.