Chrome Plugins

Chrome Plugins

Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
So I got bored and decided I'd slap together a plugin for chrome, only to find out its not as easy as that.

Basically all I want to do is alter the CSS of a page, so I can change color values and whatnot. Anyone know how to do this? I've searched google for a while with no decent results
 
 
 
2011 Jan 5 at 04:06 UTC
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
http://superjer.com/sprinkles/chrome%20extension/

Hope that helps with the basics.
 
 
 
2011 Jan 5 at 04:50 UTC
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
Well, I've gotten that far (I read google's tutorials ;)). But I don't want to create a popup window, I just want to modify the css... how do I do that?
 
 
 
2011 Jan 5 at 04:55 UTC
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
It works with page actions. I'm not sure about the rest though.

Here is a CSS tester thing: http://superjer.com/sprinkles/0.2_0/

Here is NotScripts: http://superjer.com/sprinkles/0.9.6_0/

Those should help you with page actions.
 
 
 
2011 Jan 5 at 05:33 UTC — Ed. 2011 Jan 5 at 06:39 UTC
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
Can you not write something a bit like a Greasemonkey script? Wikipedia tells me that quite a few of them run natively. You should have a look, the Greasemonkey has many tutorials.
 
 
 
2011 Jan 5 at 13:02 UTC
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Its all done with javascript. It should be fairly easy to get the CSS. Jus' grab the head section, and search for the link, or inline stuff. Do that first, I'd say, then jus' display the result.

I'm in no way sure how you would change this actively. The best guess I would say is: You reload the page, then change the CSS (The extension will run before the page is actually loaded).

I think.
 
 
 
2011 Jan 5 at 19:21 UTC
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
sprinkles said:
Its all done with javascript. It should be fairly easy to get the CSS. Jus' grab the head section, and search for the link, or inline stuff. Do that first, I'd say, then jus' display the result.

I'm in no way sure how you would change this actively, unless you used the built-in support for scripts that Chrome has. The best guess I would say is: You reload the page, then change the CSS (The extension will run before the page is actually loaded).

I think.

Does no-one ever read the things I say?

For an example here, I have a small script running in FireFox which, on www.rockpapershotgun.com, takes the alt-text from images and displays it beneath them. Because alt-text isn't displayed as a tool-tip but Wordpress only provides opportunity to insert alt-text it makes life easier, because there are often funnies in the alt-text.

Whew! Basically, use Greasemonkey (scripts).
 
 
 
2011 Jan 5 at 19:51 UTC
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
 
 
 
2011 Jan 5 at 20:15 UTC
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
This is dumb... even when I follow tutorials I get some sort of error >.>
Anyone wanna give me the 'base code' I need, where I can just add the css into it that I want?
 
 
 
2011 Jan 6 at 01:36 UTC
Page [1]