Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > Internet Gambling > Internet Gambling
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-22-2005, 05:54 PM
StevieG StevieG is offline
Senior Member
 
Join Date: Jan 2003
Location: Baltimore, MD, USA
Posts: 157
Default Automatic clean-up of long URL text

Annoyed when a user posts a long URL that causes the page to scroll out to the right?

If you use Firefox, and are not afraid of installing some extensions, then you no longer have to see that on 2+2.

I have a user script for you that will rename excessively long URLs to stop them from making you scroll horizontally to read the rest of the messages or messages on the same page. It will not stop you from seeing Angry Cola's "use clean links" rants.

How to install:

1. The rename user script requires Firefox to have the Grease Monkey extension. Grease Monkey is available at mozdev.org.

2. Once you have that installed you will need to exit Firefox and relaunch the application for the extension to be installed.

3. Right click the rename long URL link here and choose the "Install User Script..." option from the context sensitive menu.

4. Browse 2+2 and try it out.

5. PM me with bugs and suggestions.

Notes:

First, the replacement happens after the page is loaded, so you may notice a delay, and you may see the page refresh. This refresh won't happen unless a replacement is made.

Also, it's pretty dumb right now, in that it will only rename the text to (renamed long text) and it will only do this in the case of URLs that have no white space whatsoever, and are at least 81 characters long. That '81' magic number is fixed (no variables allowed in these user scripts).

The no white space requirement means if someone posts a link as "see http://really.long.ass.url" then that little bit of whitespace between "see" and the long ass URL will prevent the replacement from happening. But, hey, if they put in different text for the link than the URL itself, chances are it does not need to be cleaned up.

Lastly, this will not resize images that cause scrolling.
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 03:03 PM.


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