How come that didn't work when I tried it with my own code? I hate computers ;-;
Printable View
How come that didn't work when I tried it with my own code? I hate computers ;-;
Not sure, but:
* it's "color", not "Color", "textColor" or any other permutation of "text" and "color".
* it's "black", not "Black", "BLACK", or "0". "#000000" will work as well.
* it's "white", not "White", "WHITE", or "F". "#FFFFFF" will work as well.
Other than that, it's pretty easy.
I tried all sorts of shit, and nothing worked. I also could've sworn that one of the things I tried was exactly the code you have up there, and it didn't work. Though I guess it doesn't matter anymore.
Use this for your GreaseMonkey script:
Code:// ==UserScript==
// @name White on Black Shardstorm
// @namespace http://www.shardstorm.com/
// @include http://www.shardstorm.com/
// ==/UserScript==
document.body.style.backgroundColor = "black";
document.body.style.color = "white";
I use this one:
(Note: I couldn't find anywhere how to have the image scaled to fit the screen, it just tiles by default, so the image is 1440x900 to match my resolution)Code:// ==UserScript==
// @name Shardstorm Pimpification
// @namespace http://shardstorm.com
// @description Makes the change log page look all cool and stuff...
// @include *.shardstorm.com/*
// ==/UserScript==
document.body.style.backgroundImage="url(http://img291.imageshack.us/img291/4940/sswallue5.jpg)";
document.body.style.color = "#c8c8c8";
(Another Note: I have no idea how to make the text "Glide" over the image when you scroll up and down. That's what I wanted to do, but again I have failed.)
This should do what you want. You can make the image smaller, and it'll center it in the top-middle of the screen (and, won't tile any more). Alas, you can't scale it at all. But, you can rely on the black background to fill in the blanks.Code:// ==UserScript==
// @name Shardstorm Pimpification
// @namespace http://shardstorm.com
// @description Makes the change log page look all cool and stuff...
// @include *.shardstorm.com/
// leave this at this, unless you want to affect other things than the change log
// ==/UserScript==
document.body.style.backgroundImage="url(http://img291.imageshack.us/img291/4940/sswallue5.jpg)";
document.body.style.backgroundAttachment="fixed";
document.body.style.backgroundRepeat="no-repeat";
document.body.style.color = "#c8c8c8";
document.body.style.color = "black";
document.body.style.backgroundPosition="top center";
To learn more about what you can do, be sure to check out a CSS reference.
To figure out the javascript "name" of a CSS property, just remove dashes (-) in the property name, and then make the next letter capital. Eg, "foo-bar" becomes "fooBar". "zelda-classic" turns into "zeldaClassic". Etc.
Selecting other elements than the body is more difficult (and all but impossible on the change log), but if you wish to learn more, I can teach.
Is Greasemonkey an addon for Firefox?anyways to make this affect only certain pages with Firefox 3?Quote:
If you're using Firefox, you can just change the default text and background colors in your preferences.
EDIT 1: how to add scrips to greasemonkey and how to add http://www.shardstorm.dreamhosters.com/ ? it doesnt add when i add it and it doesnt get added to exluded either, I assume something im doing is wrong.
EDIT 2: Eh, I also tried the exact same formatting as DN and it doesnt work :/
For the URL, put "*.shardstorm.com", nothing else. That way, it'll only affect the Change log (and not, say, the wiki).
If you're using DN's version, make sure each comment (line starting with //) is on a separate line.
And, make sure that greasemonkey is enabled (smiling face), not disabled (greyed out frowny face).
Other than those things, it should work.
I figured out why it wasn't working lol, I was just overlooking the fact that I was looking at the full address, http://www.shardstorm.dreamhosters.com/ instead of http://www.shardstorm.com/ ^_^"