Force logo to always lead to the forum index

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Normally when you click the Ozzu logo it will take you up or back one level from your current location, similar to the way a "../" folder works in an FTP program or a website directory listing. If you would rather have the logo always take you to the forum index, you can use this user script to do that. The script should work in Greasemonkey for Firefox and Google Chromes .user.js extensions.

I've included both the code for you to play with here in the post, and a compressed ".user.js" file if you just want to install it like any other user script and be done. :D

JAVASCRIPT Code: [ Select ]
// ==UserScript==
// @name Ozzu Logo Destination Override
// @description Forces the Ozzu logo to always lead to the forum index, instead of up one level
// @match http://www.ozzu.com/*
// ==/UserScript==
(function(){
   var logo = document.getElementById('homepageLogoLink');
   if(logo)
   {
      logo.getElementsByTagName('a')[0].href = '/forum/';
      logo.getElementsByTagName('img')[0].alt = 'Forum Index';
   }
})();
  1. // ==UserScript==
  2. // @name Ozzu Logo Destination Override
  3. // @description Forces the Ozzu logo to always lead to the forum index, instead of up one level
  4. // @match http://www.ozzu.com/*
  5. // ==/UserScript==
  6. (function(){
  7.    var logo = document.getElementById('homepageLogoLink');
  8.    if(logo)
  9.    {
  10.       logo.getElementsByTagName('a')[0].href = '/forum/';
  11.       logo.getElementsByTagName('img')[0].alt = 'Forum Index';
  12.    }
  13. })();
Attachments:
ozzu-logo-destination-override.zip

(385 Bytes) Downloaded 212 times

  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 1 guest
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.