Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   About the Forums (http://archives1.twoplustwo.com/forumdisplay.php?f=57)
-   -   Bookmarklet to reveal all white text (http://archives1.twoplustwo.com/showthread.php?t=510584)

StevieG 09-27-2007 11:21 AM

Bookmarklet to reveal all white text
 
Today I was reading this thread on "The King of Kong". Despite some initial flap, all of the posters did a really nice job of putting potential spoilers in white text.

This is great, but means I was constantly highlighting text to read posts.

So instead I came up with a bookmarklet that turns all white text into black text.

Here's how you can use it.

Copy this text into notepad or some other editor, and make it one long single line:

javascript:pi=document.getElementsByTagName("font" );
for(var%20i=0;i<=pi.length;i++)
{if(pi.item(i).color=="white"){pi.item(i).color="b lack";}}

Create a new bookmark in your browser. Give it a name like "2+2 Reveal White Text" or something like that. Then for the location, copy all of the text (again, make sure it is a single line) and paste it in as the Location.

Then all you need to do is use the bookmark and any white text on the page, like this <font color="white">white text white text white text</font> will turn black.

T-God 09-27-2007 12:32 PM

Re: Bookmarklet to reveal all white text
 
You could also use Durron's 2+2 layout. Spoilers actually stand out more than normal text for me [img]/images/graemlins/smile.gif[/img].

evil twin 09-27-2007 03:40 PM

Re: Bookmarklet to reveal all white text
 
That is good, thanks.


All times are GMT -4. The time now is 01:17 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.