Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Two Plus Two > About the Forums
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 01:02 AM.


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