Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Two Plus Two > About the Forums

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2007, 11:21 AM
StevieG StevieG is offline
Senior Member
 
Join Date: Jan 2003
Location: b-more
Posts: 3,558
Default 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:

javascripti=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.
Reply With Quote
  #2  
Old 09-27-2007, 12:32 PM
T-God T-God is offline
Senior Member
 
Join Date: May 2004
Location: I like colours!
Posts: 9,987
Default 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].
Reply With Quote
  #3  
Old 09-27-2007, 03:40 PM
evil twin evil twin is offline
Senior Member
 
Join Date: Jan 2005
Posts: 1,506
Default Re: Bookmarklet to reveal all white text

That is good, thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:26 PM.


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