[greasemonkey-users] who can give me a simple script to change the backgroud color of the webpage?

135 views
Skip to first unread message

zpcat

unread,
May 3, 2010, 7:10:49 AM5/3/10
to greasemonkey-users
Hello everyone, I am the new user of greasemonkey, and want to change
the background color of web page, I know this is really simple by
javascript, so who can give me a simple script to change the backgroud
color of the webpage?

--
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemon...@googlegroups.com.
To unsubscribe from this group, send email to greasemonkey-us...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.

Yeramihi

unread,
May 3, 2010, 7:55:35 AM5/3/10
to greasemonkey-users
Hi

User GreseMonkey to create new script. Put this line into its source:

document.body.style.backgroundColor = 'yellow';


And that's it. Replace yellow with different/proffered colour and off
you go.

zpcat

unread,
May 4, 2010, 9:15:21 AM5/4/10
to greasemonkey-users
it doesn't works!!

John Plsek

unread,
May 4, 2010, 9:45:35 AM5/4/10
to greasemon...@googlegroups.com
try

document.body.style.background = 'yellow';

instead, that way any backgroundImage is removed
--
Coming soon - BravoStudio, a complete internet radio/tv solution

zpcat

unread,
May 6, 2010, 6:45:08 AM5/6/10
to greasemonkey-users
It works!! Thanks!!

On 5月4日, 下午9时45分, John Plsek <jaroma...@gmail.com> wrote:
> try
>
> document.body.style.background = 'yellow';
>
> instead, that way any backgroundImage is removed
>
> On 4 May 2010 23:15, zpcat <suzp1...@gmail.com> wrote:
>
>
>
> > it doesn't works!!
>
> > On May 3, 7:55 pm, Yeramihi <wojciech.grym...@gmail.com> wrote:
> > > Hi
>
> > > User GreseMonkey to create new script. Put this line into its source:
>
> > > document.body.style.backgroundColor = 'yellow';
>
> > > And that's it. Replace yellow with different/proffered colour and off
> > > you go.
>
> > > On May 3, 12:10 pm, zpcat <suzp1...@gmail.com> wrote:
>
> > > > Hello everyone, I am the new user of greasemonkey, and want to change
> > > > the background color of web page, I know this is really simple by
> > > > javascript, so who can give me a simple script to change the backgroud
> > > > color of the webpage?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups "greasemonkey-users" group.
> > > > To post to this group, send email to
> > greasemon...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > greasemonkey-us...@googlegroups.com<greasemonkey-users%2Bunsu...@googlegroups.com>
> > .
> > > > For more options, visit this group athttp://
> > groups.google.com/group/greasemonkey-users?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "greasemonkey-users" group.
> > > To post to this group, send email to greasemon...@googlegroups.com
> > .
> > > To unsubscribe from this group, send email to
> > greasemonkey-us...@googlegroups.com<greasemonkey-users%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group athttp://
> > groups.google.com/group/greasemonkey-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "greasemonkey-users" group.
> > To post to this group, send email to greasemon...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > greasemonkey-us...@googlegroups.com<greasemonkey-users%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages