// ==UserScript==
// @name          The Free Dictionary
// @namespace     http://mozilla.wikicities.com/
// @include       http://*.thefreedictionary.com/*
// @description	  customize
// ==/UserScript==

(function() {
  var style = document.createElement('style');
      style.setAttribute('type', 'text/css');
      style.innerHTML = (
        'body {' +
        '  width: 866px;' +
        '  margin: 0 auto 0 auto;' +
        '}' +

        'body > *:not(center) a:hover,' +
        '.Footer a:hover {' +
        '  background-color: #0073ca;' +
        '  color: white;' +
        '  text-decoration: none;' +
        '}' +

        '#TblAd {' +
        '  float: right;' +
        '}' +

        '#TDAds {' +
        '  display: none;' +
        '}'
      );

  var script = document.createElement('script');
      script.setAttribute('type', 'text/javascript');
      script.innerHTML = (
        'document.getElementById("TblAd").style.width="150px";'
      );

  var head = document.getElementsByTagName('head')[0];
      head.appendChild(style);
      head.appendChild(script);

})();

