Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need a Chrome extension that assigns any kind of attribute to the <html> tag. The only requirements are that it does so predictably, so I know I can always count on it setting that attribute, and also that the extension doesn't do anything obnoxious.

I don't care what the extension is for, I just want that attribute.

The reason I want this is because I want to construct a selector that selects the <html> tag just before the extensions load, and then deselects it as soon as they load, for this question.)

Is anyone familiar with such an extension?

share|improve this question
    
If you still need it (after my answer to your other question), let me know. It would be trivial to construct this based on Dark by Default. –  Oliver Salzburg May 12 '13 at 16:29
    
@OliverSalzburg Yep, I want it, thanks! And you should post it here as an answer and get the bounty. –  Ram Rachum May 13 '13 at 10:45

2 Answers 2

up vote 1 down vote accepted
+50

I wrote the extension Dark by Default which applies a black background to the <html> element as soon as it becomes available for manipulation.

The extension is also available on GitHub.

As of version 0.3, the extension will leave a CSS class on the <html> element dark-by-default, you could use that CSS class for your selector.

I actually started using the extension myself. It goes very well with the Super User Dark Theme :D

share|improve this answer

Chrome natively supports user scripts, so Greasemonkey scripts also work in Google Chrome (and not only in Firefox).

For starters, see :

Beginner Guide for Greasemonkey Scripts in Google Chrome.
Greasemonkey Manual:Getting Help

You might also have a look at these depositories of Greasemonkey Scripts :

Userscript.org
Userstyles.org

share|improve this answer
    
That's a good option, but if I could get a regular extension that I don't have to write or maintain across computers, that'd be better. –  Ram Rachum May 10 '13 at 8:38
    
The extension Tampermonkey may help. –  harrymc May 10 '13 at 8:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.