Author Topic: How to force everyone to type in 10pt black verdana  (Read 2417 times)

BY POPULAR DEMAND

Tired of tiny posts? Big posts? Red posts? Blue posts? Almost invisible posts? Rainbow posts?

Here are a couple of greasemonkey scripts to make browsing the forums less of an eyesore.

Firefox:
This script takes every font size tag that is not equal to the default form font size and blanks it. It's pretty simple.
If you don't have greasemonkey already, download it here:
https://addons.mozilla.org/en-US/firefox/addon/748

Now download and install the script:
http://userscripts.org/scripts/show/70849

Okay, you've got the script. But it only effects phpbb2 forums (like RTB) at the moment. We need to change the filter so that it applies to the Blockland forums.

Right click the monkey icon in the lower left hand side of your browser and click Manage User Scripts. Alternatively go to Tools>Greasemonkey>Manage User Scripts...

You should see Override phpBB Font on the left side of the screen along with any other scripts you have installed. Click on Override phpBB Font. Click on the only link under Included Pages and click Edit... Change the URL to http://forum.blockland.us/*

Great! Now the script will automatically fix any stray font sizes.

But wait, suppose you want to get rid of colors too? I think I mentioned that in the beginning of the post.

In the Script Manager click on Override phpBB Font. Click the edit button down at the button at the bottom of the screen.

Something that looks like this should appear:
Code: [Select]
// ==UserScript==

// @name           Override phpBB Font

// @namespace      *

// @include        */viewtopic.php*

// ==/UserScript==





 for (var i = 0; i < document.getElementsByTagName("span").length; i++)

    if(document.getElementsByTagName("span")[i].style.fontSize != "") document.getElementsByTagName("span")[i].style.fontSize = "";

Change it to this and you're done:
Code: [Select]
// ==UserScript==

// @name           Override phpBB Font

// @namespace      *

// @include        */viewtopic.php*

// ==/UserScript==





 for (var i = 0; i < document.getElementsByTagName("span").length; i++)

    if(document.getElementsByTagName("span")[i].style.fontSize != "") document.getElementsByTagName("span")[i].style.fontSize = "";

 for (var i = 0; i < document.getElementsByTagName("span").length; i++)

    if(document.getElementsByTagName("span")[i].style.color != "") document.getElementsByTagName("span")[i].style.color = "";

Neither color nor strange font sizes will ever bother you again!

Google Chrome:
Download this:
http://forum.blockland.us/index.php?action=dlattach;topic=103197.0;attach=80584

To install just rename it from code.user.js.txt to code.user.js. Then drag and drop it into the google chrome window and it will automatically install.
« Last Edit: April 04, 2010, 02:00:38 PM by Wedge »

Wow, awesome! I was just thinking of searching around the internet for some Greasemonkey scripts that pertain to foruming concepts like this, but this saves me the work. Thanks :D

Could you make it so it somehow shows you that the text was originally colored or tiny before it fixed it, if it doesn't do that already?

Because people might be talking about how certain text was colored or tiny, and you could forget you have this thing and go "what are you people talking about?".
« Last Edit: March 14, 2010, 10:04:34 PM by Regulith »

I have no idea how to do that :(

I have no idea how to do that :(
If you know some simple Javascript, then it's really easy to write Greasemonkey scripts.

I have no idea how to do that :(

It's okay, it was just a suggestion.


Wow this topic is really helpful!


Actually it's not and I was being sarcastic.


 :cookieMonster:


hao2newforumsbackground?

Wow this topic is really helpful!


Actually it's not and I was being sarcastic.


 :cookieMonster:


How is it not?

Here is a version for people with google chrome. This includes both the font size and color stripper. I've also renamed it so that you can still install the original script if you want.

To install just rename it from code.user.js.txt to code.user.js. Then drag and drop it into the google chrome window and it will automatically install.

While it's in the txt format you can read the source code if you like, so you know it's safe.

It's a derivative work of a script by Adromir, so props to them.

Bump due to recent relevant events. Updated main post to be a lot more friendly.

1 post,
2 post,
red post,
blue post.
 :cookieMonster:

what about for clan topics or anything?