Large

Simplepedia

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

Colors ruthlessly overridden

in
Subscribe to Colors ruthlessly overridden 11 posts, 3 voices



iaindalton User
MozillaX11

Links to articles that haven't been written yet should be red, not blue.

Keywords in search results links should be blue, not black.

 
Grant Stavely Script's Author
SafariMacintosh

I'm breaking this out to be an option.

 
auscompgeek User
FirefoxWindows

Grant, if you do, could you make it the default? (new articles links in red)

 
Grant Stavely Script's Author
SafariMacintosh

I'll work something out. Until then, you can always edit the script as installed. Sorry to keep saying that, I've been busy, and hope to get the source and build environment on github asap.

Replace:
GM_addStyle(".toctext, .toclinks,.toclevel-1, a:link, a:visited, a:active{text-decoration: none;color: " + GM_getValue('color') + " !important;font-weight: normal;}");

With (assuming your default link color is #fff red)
GM_addStyle(".toctext, .toclinks,.toclevel-1, a:link, {text-decoration: none;color: " + GM_getValue('color') + " !important;font-weight: normal;a:visited: blue; a:active: black;}");

... using the colors you want to use for blue, black, and so on.

 
auscompgeek User
OperaWindows

Grant, that's not what we mean...

 
Grant Stavely Script's Author
SafariMacintosh

Oh, written, not read.

Yeah landing on a stub is frustrating, great suggestion.

 
auscompgeek User
OperaWindows

Hmm... not just that, background colours in tables are also changed to the default grey... take http://en.wikipedia.org/wiki/Comparison_of_Inte... for example.

 
auscompgeek User
MozillaWindows

Ah, I found the class for "new" links, it's .new. So, you'd want something like this:

// New link color! 
if (GM_getValue('newColor') == undefined) {
	GM_setValue('newColor', 'red');
}


// All that other stuff...


if (GM_getValue('newColor') !== null) {
	try {
		GM_addStyle("a.new{text-decoration: none;color: " + GM_getValue('newColor') + " !important;font-weight: normal;}");
	}
	catch(err) {}
}

 
Grant Stavely Script's Author
SafariMacintosh

Thanks auscompgeek, that's great stuff.

 
auscompgeek User
OperaWindows

Oh, also found the class for stub links: .stub ;)

 
auscompgeek User
OperaWindows

I believe this is fixed in the latest version.

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