Advertisement
Guest User

Untitled

a guest
Sep 8th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. // ==UserScript==
  2. // @name ESR Menu
  3. // @namespace ESR Menu
  4. // @include http://*.esreality.com/*
  5. // @include http://esreality.com/*
  6. // ==/UserScript==
  7.  
  8. function addGlobalStyle(css) {
  9. var head, style;
  10. head = document.getElementsByTagName('head')[0];
  11. if (!head) { return; }
  12. style = document.createElement('style');
  13. style.type = 'text/css';
  14. style.innerHTML = css;
  15. head.appendChild(style);
  16. }
  17.  
  18. addGlobalStyle('#menubox {background: none repeat scroll 0 0 #000000; border-bottom: 1px solid #444444; border-top: 1px solid #444444; border-left: 1px solid #444444; border-right: 1px solid #444444; color: #FFFFFF; font-size: 12px; height: 25px;text-align:right; width: 999px; z-index: 10;}');
  19. addGlobalStyle('a.judgementvalue, a.judgementvalue:visited { color: #fff; } ');
  20. addGlobalStyle('#menuheadings a { background-image: none; background-repeat: no-repeat; padding-left: 0px; background-position: 0 2px; text-transform: uppercase; color: #fff; height: auto; text-align: right;}');
  21. addGlobalStyle('#menuheadings ul { margin-left: 0; padding-left: 0; display: inline; } ');
  22. addGlobalStyle('#menuheadings ul li { list-style-type: none; margin: 0; padding: 0; height: 13px; position: relative; left: 720px; top: -86px; width: 270px; }');
  23. addGlobalStyle('#menuresults { position: relative; right: -670px; top: -82px; width: 270px; padding: 0 10px 0 50px; font-family: arial; font-size: 9px; color: #000; text-transform: lowercase; }');
  24. addGlobalStyle('.postcontent img { max-width:670px; border:0px; } ');
  25. addGlobalStyle('.commentcontent img { max-width:988px; border:0px; } ');
  26. addGlobalStyle('.galleryimage img { max-width:960px; height:auto; border:0px; } ');
  27. addGlobalStyle('#infobar_left { left: 0px; } ');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement