You are not logged in.

#1 2010-07-02 03:42:11

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Adjust Arch forum text with dark theme

I have written 2 greasemonkey scripts (these are usually helpful for people with dark themes):
- One that changes the subject box and buttons to white text

// ==UserScript==
// @name          Arch Linux Dark Text Fix
// @description   Displays dark text on an Arch Linux page.
// @include       http://bbs.archlinux.org/post.php*
// @include       http://bbs.archlinux.org/edit.php*
// ==/UserScript==

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('input { color:white; }');

- One that changes the message box to black text

// ==UserScript==
// @name          Arch Linux Light Text Fix
// @description   Displays light text on an Arch Linux page.
// @include       http://bbs.archlinux.org/post.php*
// @include       http://bbs.archlinux.org/edit.php*
// ==/UserScript==

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('textarea { color:black; }');

Save those into a text file with a .user.js extension and import them into greasemonkey.

Last edited by cesura (2010-07-02 03:49:00)

Offline

#2 2010-07-02 05:13:06

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: Adjust Arch forum text with dark theme

can you show a screenshot of what it does (with and w/o the script preferably)?  currently i use a variant of tjw's dark script, and i'm not seeing issues...


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#3 2010-07-02 17:15:31

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Adjust Arch forum text with dark theme

toxygen wrote:

can you show a screenshot of what it does (with and w/o the script preferably)?  currently i use a variant of tjw's dark script, and i'm not seeing issues...

Well, a screenshot wouldn't be of use, because the text is a very dim white, and you wouldn't even be able to see it. Just imagine what it looks like tongue

But here it is anyway. If you look really closely you can see the text "This is white text".
http://img35.imageshack.us/img35/3728/2 … 0x1080.png

As for the dark text fix, you can look at this thread:
http://bbs.archlinux.org/viewtopic.php?id=100296

Last edited by cesura (2010-07-02 17:22:53)

Offline

Board footer

Powered by FluxBB