rebdev / Speedytravel - Replace Current Styles

// ==UserScript==
// @name            Speedytravel - Replace Current Styles
// @description     Development tool only
// @include         https://www.speedytravel.com.au/*
// @version         1
// @license         MIT
// @author          rebdev (https://openuserjs.org/users/rebdev)
// ==/UserScript==

// anonymous function wrapper so we don't interfere with other scripting on the page
(function() 
{ 

    // Remove all linked styles
    for( i = 0; (l = document.getElementsByTagName("link")[i]); i++ ) {
      if( l.getAttribute("rel").indexOf("style") >= 0 ) l.disabled = true;
    }
    
    // Add the new stylesheet
    var link = window.document.createElement('link');
    link.rel = 'stylesheet';
    link.type = 'text/css';
    link.href = 'https://dl.dropbox.com/s/0ze2l3maugiteso/speedy-new.css';
    document.getElementsByTagName("HEAD")[0].appendChild(link);    
    
})();