Stripping colors from posts


Aggelakis

 

Posted

But I spent time and effort on my nice pastel signature colors! You think I chose Deep Sky Blue and Salmon on a whim?! Why, you meddling rascal! You may have gotten away with it THIS TIME.


@Captain-ElectricDetective MarvelThe Sapien SpiderMoravec ManThe Old Norseman
Dark-EyesDoctor SerpentineStonecasterSkymaidenThe Blue Jaguar
Guide to AltitisA Comic for New PlayersThe Lore ProjectIntro to extraterrestrials in CoH

 

Posted

Quote:
Originally Posted by Snow Globe View Post

Here is a script that does exactly what you asked for:
Excellent!

But, I don't mind the colors and size changes too much (with size, CTRL+MouseWheel easily fixes that)... it's when there's a huge block of text in stupid font (see Producer's Letter) that I want to force the default font. I tried editing the script so that it only forces a font change but not color or size, but couldn't get it to work.

If it's not to much trouble, could you please whip up a script that only prevents font change?

And now, the Gettysburg Address in Impact...


Speeding Through New DA Repeatables || Spreadsheet o' Enhancements || Zombie Skins: better skins for these forums || Guide to Guides

 

Posted

I sent it in a response to his PM, but I am not afraid to say it in public, too:

Quote:
Originally Posted by Snow Globe View Post
Here is a script that does exactly what you asked for:
... I love you.


Paragon Wiki: http://www.paragonwiki.com
City Info Terminal: http://cit.cohtitan.com
Mids Hero Designer: http://www.cohplanner.com
Quote:
Originally Posted by Dispari View Post
I don't know why Dink thinks she's not as sexy as Jay was. In 5 posts she's already upstaged his entire career.

 

Posted

Quote:
Originally Posted by Dark Ether View Post
There's probably a Greasemonkey script for FireFox that would do that...

I found one script here on userscripts.org, which the FireFox page for Greasemonkey links to. There are probably others as well.

I've not used this, and it has no comments/feedback on it, so I'd be careful to check out the script before using it.
I'll point out that my version is a heavily stripped down and slightly changed version of the above script.

Quote:
Originally Posted by Zombie Man View Post
Excellent!

But, I don't mind the colors and size changes too much (with size, CTRL+MouseWheel easily fixes that)... it's when there's a huge block of text in stupid font (see Producer's Letter) that I want to force the default font. I tried editing the script so that it only forces a font change but not color or size, but couldn't get it to work.

If it's not to much trouble, could you please whip up a script that only prevents font change?
Hmm... I'll try.

Quote:
Originally Posted by Aggelakis View Post
I sent it in a response to his PM, but I am not afraid to say it in public, too:


... I love you.
Thank you, I'm glad you found it useful!




Triumph: White Succubus: 50 Ill/Emp/PF Snow Globe: 50 Ice/FF/Ice Strobe: 50 PB Shi Otomi: 50 Ninja/Ninjistu/GW Stalker My other characters

 

Posted

Quote:
Originally Posted by Zombie Man View Post
Excellent!

But, I don't mind the colors and size changes too much (with size, CTRL+MouseWheel easily fixes that)... it's when there's a huge block of text in stupid font (see Producer's Letter) that I want to force the default font. I tried editing the script so that it only forces a font change but not color or size, but couldn't get it to work.

If it's not to much trouble, could you please whip up a script that only prevents font change?

And now, the Gettysburg Address in Impact...
Here you go. This doesn't change color or fontsize. It only forces a san-serif font family.
Code:
// ==UserScript==
// @name           Forums font-only changer
// @namespace      meh
// @include        http://boards.cityofheroes.com/*
// ==/UserScript==
var arFontTags = document.getElementsByTagName('font');
for (var i = arFontTags.length - 1; i >= 0; i--) {
    var elmFontTag = arFontTags[i];
    var elmSpan = document.createElement('font');
    elmSpan.innerHTML = elmFontTag.innerHTML;
    elmSpan.style.fontFamily = 'sans-serif ! important';
    elmSpan.size = elmFontTag.size;
    elmSpan.style.color = elmFontTag.color;
    elmFontTag.parentNode.replaceChild(elmSpan, elmFontTag);
}
It works in all browsers/add-ons that allow userscripts.




Triumph: White Succubus: 50 Ill/Emp/PF Snow Globe: 50 Ice/FF/Ice Strobe: 50 PB Shi Otomi: 50 Ninja/Ninjistu/GW Stalker My other characters

 

Posted

Quote:
Originally Posted by Sapphic_Neko View Post
I kinda agree with aggelakis.
I'd like an option i can check to just disable the text coloring. Much nicer on the eyes with the default coloring.
This should work for that:
Code:
// ==UserScript==
// @name           Forums font color-only changer
// @namespace      meh
// @include        http://boards.cityofheroes.com/*
// ==/UserScript==
var arFontTags = document.getElementsByTagName('font');
for (var i = arFontTags.length - 1; i >= 0; i--) {
    var elmFontTag = arFontTags[i];
    var elmSpan = document.createElement('font');
    elmSpan.innerHTML = elmFontTag.innerHTML;
    elmSpan.size = elmFontTag.size;
    elmFontTag.parentNode.replaceChild(elmSpan, elmFontTag);
}




Triumph: White Succubus: 50 Ill/Emp/PF Snow Globe: 50 Ice/FF/Ice Strobe: 50 PB Shi Otomi: 50 Ninja/Ninjistu/GW Stalker My other characters

 

Posted

Quote:
Originally Posted by Daemodand View Post
The person complaining about color in signatures, and goes as far as to use a script to take all color out of all signatures, uses color in her signature. Interesting.
Actually the complaints were about poor color choices in the body text, not the signatures.




Triumph: White Succubus: 50 Ill/Emp/PF Snow Globe: 50 Ice/FF/Ice Strobe: 50 PB Shi Otomi: 50 Ninja/Ninjistu/GW Stalker My other characters