Saucsse / JVC Sticker Zoom

// ==UserScript==
// @name         JVC Sticker Zoom
// @version      1.0
// @description 
// @author       Crafbukkit
// @match        http://www.jeuxvideo.com/forums/0-*
// @match        http://www.jeuxvideo.com/forums/42-*
// @match        http://www.jeuxvideo.com/forums/1-*
// @grant        none
// ==/UserScript==


function addOption()
{
    if(document.body.innerHTML.indexOf('<div class="f-mid-fill-h"') == "-1")
    {
        document.getElementsByClassName("f-mid-w")[0].style.height = "128px";
        document.getElementsByClassName("f-mid")[0].style.height = "128px";
        document.getElementsByClassName("f-mid-fill-h")[0].style.height = "128px";   
    }
    else
    {
        setTimeout(addOption, 100);
    }
}

function isLoadedSticker()
{
    if(document.body.innerHTML.indexOf('<div class="f-mid"') == "-1")
    {
        setTimeout(isLoadedSticker, 500);
    }
    else
    {
        for(var i=0;i<document.getElementsByClassName("f-tab").length;i++)
        {
            document.getElementsByClassName("f-tab")[i].onclick = function() { setTimeout(addOption, 100); };
        }
        addOption();
    }
}
setTimeout(isLoadedSticker, 500);