SeikoShadow / Add Item Market link

// ==UserScript==
// @name        Add Item Market link
// @namespace   SeikShadow
// @description Adds a direct link to item market
// @include     *.torn.com/*
// @version     1.1
// @grant       none
// ==/UserScript==

window.addEventListener("load", addItemMarketLink, false);

function addItemMarketLink () {
  var menu = document.getElementsByClassName('areas');
  menu[0].id = 'areas';
  
  //find the Areas menu
  var list = document.getElementById('areas');
  //find li's
  var subMenu = list.childNodes;
  //Create LI var 
  var addList = document.createElement('li');
  
  subMenu[1].appendChild(addList);

  addList.id = "Faction";
  addList.innerHTML = '<div class="list-link" id="nav-item-market"><a href="/imarket.php"><i class="items-navigation-icons left"></i><span class="border-l"></span><span class="border-r"></span><span class="list-link-name">Item Market</span></a></div>';     
}