Chrome Plugins

Chrome Plugins

Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 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 4 at 20:06 PST
sprinkles

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

Hope that helps with the basics.
 
 
 
2011 Jan 4 at 20:50 PST
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 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 4 at 20:55 PST
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 4 at 21:33 PST — Ed. 2011 Jan 4 at 22:39 PST
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 05:02 PST
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 11:21 PST
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 11:51 PST
sprinkles

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

2009 Nov 13 • 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 5 at 17:36 PST
Page [1]