Topic

Auction link at top of website

Instead of having to return to the home page to access auctions, could we get a link up there ^^ so we can access them from any page?

Posted 7 months ago by MG Botia Subscriber! | Permalink

Replies

  • Wish granted.

    Auctions Link

    var auctionsLink = document.createElement('a');
    auctionsLink.setAttribute('href', '/auctions/');
    auctionsLink.appendChild(document.createTextNode('Auctions'));

    var auctions = document.createElement('li');
    auctions.appendChild(auctionsLink);
    auctions.setAttribute("id", 'nav-auctions');
    auctions.style.width = 46;

    var forums = document.getElementById('nav-forum');

    var parent = forums.parentNode;

    parent.insertBefore(auctions, forums.nextSibling);

    GM_addStyle("#nav-auctions { width:71px; }");

    Enter World

    var divs = document.getElementsByTagName('div');

    for (i=0; i<divs.length; i++) {
    var div = divs[i];
    div.innerHTML = div.innerHTML.replace(/background\: url\(http:\/\/c1.glitch.bz\/img\/index-bubble_[0-9][0-9][0-9][0-9][0-9].gif\) no-repeat; text-align: center; padding-top: 27px; width: 226px; height: 89px; position: absolute; top: -44px; left: 167px;/, 'background: url(http://i47.tinypic.com/2d7zitw.gif) no-repeat; text-align: center; padding-top: 18px; width: 200px; height: 97px; position: absolute; top: -49px; left: 165px;');
    }

    Make sure the enter world script only runs on the home page.
    Posted 7 months ago by New Boy Subscriber! | Permalink
  • Would like. And a link to the Glitch Blog, the API forum, and other stuff,
    Posted 7 months ago by AwesomeCardinal2000 Subscriber! | Permalink