Forum Utility Bookmarklets

These are tools I use at forums. They were originally written to use at SPF but they also work at other vBulletin forums. To use them, right-click on the link and save it to your bookmarks/favorites. While viewing a post at a vB forum just click your saved bookmark.

Expand at SPF and HFT

Bookmarklet

The Expand at SPF and HFT bookmarklet expands the size of a code post at SPF and HFT. It works with [code], [html] and [php] posts. It's not very efficient, and makes some ugly assumptions, but it works ok for now ;-)

Currently (27Feb2007) SPF and HFT are using vBulletin 3.6.4.

There are 2 variables you can adjust, altho you probably won't need to.

f=60 is just a fudge-factor, it is subtracted from the TD's width.

w=700 is a default width if it can't be found directly.

Source

javascript:
(function(){
 var f=60,w=700,a,i,e=document.getElementById('posts');
 if(!e)return;
 a=e.getElementsByTagName('PRE');
 if(a.length){
  w=(a[0].offsetParent.offsetWidth-f);
  for(i=0;i<a.length;++i){
   a[i].style.height='auto';
   a[i].style.width=w+'px';
  }
 }
 a=e.getElementsByTagName('DIV');
 for(i=0;i<a.length;++i){
  if(a[i].className=='alt2'){
   a[i].style.height='auto';
   a[i].style.width=w+'px';
  }
 }
})();

Expand at TheScripts

Bookmarklet

The Expand at TheScripts bookmarklet collapses the right column at TheScripts (it doesn't actually expand code posts). Like the above, it makes some ugly assumptions, but it works ok for now.

Currently (27Feb2007) TheScripts is using vBulletin 3.0.7. (which is really bad!)

Source

javascript:
(function(){
var a=document.getElementsByTagName('table');
if(a.length>=4){a[3].rows[0].cells[2].style.display='none';}
})();

More Bookmarklets

These are all old, but I still use them sometimes.

About Cross-Browser.com

Cross-Browser.com is the home of X - a cross-browser Javascript library, and many demos, applications, articles and documentation.

Tech Support

Forum support is available at the X Library Support Forums.