How come that didn't work when I tried it with my own code? I hate computers ;-;
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.
Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
ZeldaGuard - Corruption in my save files? It's more likely than you think!
I do script requests!
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.
Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
ZeldaGuard - Corruption in my save files? It's more likely than you think!
I do script requests!
Is Greasemonkey an addon for Firefox?anyways to make this affect only certain pages with Firefox 3?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 :/
Computer specifications:
Windows 10 Pro x64 | Intel Core i7 @ 2.66GHZ | Asus P6T Motherboard | 6GB DDR3 RAM | Integrated Sound | Nvidia Geforce 560 Ti 2048MB PCI-E | Corsair AX760 Power Supply | Thermaltake Armor+ MX case
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.
Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
ZeldaGuard - Corruption in my save files? It's more likely than you think!
I do script requests!
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/ ^_^"
Computer specifications:
Windows 10 Pro x64 | Intel Core i7 @ 2.66GHZ | Asus P6T Motherboard | 6GB DDR3 RAM | Integrated Sound | Nvidia Geforce 560 Ti 2048MB PCI-E | Corsair AX760 Power Supply | Thermaltake Armor+ MX case
There are currently 1 users browsing this thread. (0 members and 1 guests)