Juniper Network Website Fix

From Internetworkpro

Jump to: navigation, search
// Juniper Networks Site Fix
// Version 0.1 Beta
// 2009-02-24
// Copyright (c) 2009, Brandon Bennett
// Released uner the GPL license
//
// 
// ==UserScript==
// @name           Fix Juniper
// @namespace      http://www.internetworkpro.org/
// @include        http://www.juniper.net/*
// ==/UserScript==

/*
 TODO:  
    * Move right module into the left bar where there is more than enough space for it
    * Add products of a similar type to links on the left bar.  For example if I am viewing 
      the M product page put the links for the the rest of the routing line at the right to 
      browse to the easily
    * Make the top menus only open after client instead of hover
    * Have options toggable at the top of this document
    * Clean up code
*/

/* Remove the hero bar (The big blue flash at the top of every page.  Pretty. Pretty worthless */
var heroBanner = document.getElementById('hero');
if (heroBanner) {
    heroBanner.parentNode.removeChild(heroBanner);
}

/* Remove that annoying auto-popup share button */
var shareBtn = document.getElementById('shareBtn');
if (shareBtn) {
    shareBtn.parentNode.removeChild(shareBtn);
}

/* Remove product promo from drop downs */
var foProductPromo = document.getElementById('foProductPromo');
if (foProductPromo) {
    foProductPromo.parentNode.removeChild(foProductPromo);
}
var foSolutionPromo = document.getElementById('foSolutionPromo');
if (foSolutionPromo) {
    foSolutionPromo.parentNode.removeChild(foSolutionPromo);
}
var foCompanyPromo = document.getElementById('foCompanyPromo');
if (foCompanyPromo) {
    foCompanyPromo.parentNode.removeChild(foCompanyPromo);
}
Personal tools