Large

Simplepedia

By Grant Stavely Last update Jul 16, 2010 — Installed 21,596 times.

Problem

in
Subscribe to Problem 8 posts, 3 voices



Glenn Larsen User
FirefoxX11

I have a problem with the script. When I for example browse an article about a soccer team the shirt colors doesn't show. I'll show you what I mean.
Without Simplepedia:
http://img34.imageshack.us/img34/5880/screensho...
With Simplepedia:
http://img30.imageshack.us/img30/4173/screensho...

Can someone please try and help me?

 
auscompgeek User
FirefoxWindows

If you give us the article's URL we could help you. Also, make sure you are using the latest version of Firefox (at time of writing: 3.0.12 or 3.5.1).

 
Grant Stavely Script's Author
SafariMacintosh

Simplepedia works pretty diligently to remove all hard-coded wikipedia color declarations, frequently through brute force. I could make undoing that an option, or target specific interesting and non-style related color settings.

http://www.grantstavely.com/images/spy/spy.0722...

The jersey hack is tricky, but fixable. There are no declarative id or class attributes to suggest that the 100px wide div contains anything special. If that first div was 'id=footballkit', this would be trivial. Instead I think simplepedia will have to walk through every img element on the page and after finding one with the src attribute that contains the word 'Kit_', give the parent of the parent of the parent element a 'footballkit' class attribute.

I'll add it to the color-support issues list and think about it a bit more, I may be overcomplicating matters.

 
Grant Stavely Script's Author
SafariMacintosh

In the meantime, if you edit the installed script, search and replace this long string:

span, div {border: none !important;background-color: inherit !important;color: #000 !important;font-size: inherit !important;line-height: inherit !important;}

With this shorter bit:
span, div {border: none !important; font-size: inherit !important;line-height: inherit !important;}

Then kit colors looks as they should. Be careful not to break up the huge long single line that the string is in into multiple lines, or it will break the script.

There may be other color related ramifications to doing this, I am running it through testing to find them.

 
Glenn Larsen User
FirefoxX11

Thank you very much. That did the trick:D

 
auscompgeek User
FirefoxWindows

Hmm, I seem to have a similar problem with images not loading. There is now a beta version of Wikipedia. If you go here:
http://en.wikipedia.org/w/index.php?title=Speci...
you will probably see that the images aren't loading.

Anyway, screenshots for Wikipedia beta?

 
Grant Stavely Script's Author
SafariMacintosh

The beta looks nicer than monobook, but I'll add detection for it to simplepedia.

 
Grant Stavely Script's Author
SafariMacintosh

Basic detection that is, not full support - a lot is in flux, search is broken, etc.

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