AdrienXL / murGb

// ==UserScript==
// @name        murGb
// @namespace   wgbwall
// @description Gb wall bug workaround
// @include     http://www.gameblog.fr/mygameblog/*
// @version     1
// @grant       none
// ==/UserScript==


var index = 0;
var pathArray = window.location.pathname.split( '/' );
var last_part = pathArray[2].split('_');

document.getElementById('mygbLogShowMoreBtn').onclick=function(event){gogo();};

function gogo()
{
    index = 0;
    Timer();
};


function Timer()
{
    index++;
    gb.myGameblog.logShowMore(last_part[0], $F('logFilterUser'),$F('logFilterType'),20);
    if(index <= 10)
    {setTimeout(Timer,500);}
}
Timer();