Thread: The Mess (OOC)
View Single Post
  #8  
Unread 28th of June, 2011, 22:45
SinbadEV's Avatar
SinbadEV
Bodak [GM]

User is offline
 
Join Date: Jul 2006
Member: #1798
Location: North And East, But Not Far Enough East to be French.
Posts: 901 (0.20 per day)
So, I've found the following to be useful to me in the past so I'll just put it out there for y'all. I created a cludgey greasemonkey script that makes it so's people's character names show up beside their forum names... will work "out of the box" on Chrome, but you will need to install the "greasemonkey" plugin on most other browsers... like firefox... also, it will need to be modified whenever a new thread is added.

Code:
// ==UserScript==
// @name SinbadEVs ORP UserScript (Time for some thrilling heroics Edition)
// @match http://online-roleplaying.com/forums...ad.php?t=12289
// @include http://online-roleplaying.com/forums...ad.php?t=12289
// ==/UserScript==

window.setTimeout( function() 
{


function getElementsByClassName(classname, par)
{
    var a=[];   
    var re = new RegExp('\\b' + classname + '\\b');
        
    var els = par.getElementsByTagName("*");
 
    for(var i=0,j=els.length; i<j; i++) 
    {       
        if(re.test(els[i].className)) 
        {    
            a.push(els[i]);
        }
    }
    

    return a;
};

var users = getElementsByClassName("bigusername",document);
    for (var i = 0; i < users.length; i++) {
        var thisUser = users[i];
        if (thisUser.innerHTML == 'Ergonomic Cat' || thisUser.innerHTML == '<b>Ergonomic Cat</b>')
            {thisUser.innerHTML = thisUser.innerHTML + " - Game Master";}
        if (thisUser.innerHTML == 'SinbadEV' || thisUser.innerHTML == '<b>SinbadEV</b>')
            {thisUser.innerHTML = thisUser.innerHTML + ' - Harvey Branscomb ';}
        if (thisUser.innerHTML == 'GIJ00' || thisUser.innerHTML == '<b>GIJ00</b>')
            {thisUser.innerHTML = thisUser.innerHTML + ' - Patrick West';}
        if (thisUser.innerHTML == 'Krypton' || thisUser.innerHTML == '<b>Krypton</b>')
            {thisUser.innerHTML = thisUser.innerHTML + ' - Morris Arsaid';}
        if (thisUser.innerHTML == '5Solas' || thisUser.innerHTML == '<b>5Solas</b>')
            {thisUser.innerHTML = thisUser.innerHTML + ' - Minnesota Piers';}   
            
    }



}, 100);
Reply With Quote