Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Userscripts - Colored Bar *Customizable*
Changes the bright orange color of Userscripts.org to a different color.
Description
This script changes the orange bar across the top to a different color, of your choice, it includes 5 preset colors, and it is easy to choose which one you want, and its also not hard to program your own colors.Just add the code below to the bottom of the script. If you want to keep all the color variables together, put the "var color = "mycolor";" at the top with the other colors so if you end up with like 20 colors, your not scrolling through the script to find them.
How to Customize
Code for Custom colors
var color = "mycolor";
if(color=="mycolor"){
document.getElementById('header').style.backgroundColor = '#HEXCODEHERE';
var images = document.getElementsByTagName("img");
for (var i = 0; i < images.length; i++) {
var elem = images[i];
if (elem.src == "http://static.userscripts.org/images/userscripts.org.png?1173055699")
elem.src = "YOUR IMAGE URL HERE";
}}
Updates
April
July
Screenshots
Custom

Custom2
____________________
Blue

Black

Purple

Red

Green

You could comment on this script if you were logged in.

login to vote
that number is an unix time element i believe..
Every time you view the page, you'd re-download it. I'm not sure why they would use it, unless the banner is linked to a script that gathers statistics.
anyway, use this..
if (elem.src.match('static.userscripts.org/images/userscripts.org.png'))login to vote
Thanks, I noticed this a while back, but didn't think people were using my script so I didn't worry about fixing it. I know what I need to do to fix it. Just dont have much time at home lately.
If someone could fix it for me that'd be great.
Just get the URL to the image in a variable. have the script retrieve it from the page. Using somekind of loop. Then put the variable in the loop that changes the image instead of the URL.
login to vote
The image doesn't seem to work. I fixed it yesterday, but it looks like the image "changes" everyday.
Yesterday the image url was
http://static.userscripts.org/images/userscripts.org.png?1183602575
and today it's
http://static.userscripts.org/images/userscripts.org.png?1184358097
The only way that this would work right is if there was some way to use a wild card value like "*", but there isn't an easy way to do that as far as I know.
I'd like to help you out, but my knowledge of javascript is very limited.
login to vote
They seemed to have changed the code a little for the image.
I changed the
if (elem.src == "http://static.userscripts.org/images/userscripts.org.png?1173055699")
to
if (elem.src == "http://static.userscripts.org/images/userscripts.org.png?1183602575")
It works now, atleast for the time being.
I have taken the time to upload it here
login to vote
Thanks :)
I may end up just replacing all the styles with custom logos at least, and may extend it to change the entire color of the site.
login to vote
works well. nice font on the default style. good job.