Userscripts - Colored Bar *Customizable*

By Timothy Last update Jan 1, 2008 — Installed 1,161 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 7 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
InsaneNinja Scriptwright

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'))

 
Timothy Script's Author

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.

 
Sean Watson Scriptwright

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.

 
Sean Watson Scriptwright

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

 
Timothy Script's Author

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.

 
slippiefist User

works well. nice font on the default style. good job.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel