Advertisement
Guest User

AtlasF1 CleanCompact v0.1

a guest
Aug 20th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        AtlasF1 CleanCompact
  3. // @namespace   Atlasf1.com
  4. // @include     http://forums.autosport.com/*
  5. // @grant   none
  6. // @version     1
  7. // ==/UserScript==
  8.  
  9.  
  10. function addGlobalStyle(css) {
  11.     var head, style;
  12.     head = document.getElementsByTagName('head')[0];
  13.     if (!head) { return; }
  14.     style = document.createElement('style');
  15.     style.type = 'text/css';
  16.     style.innerHTML = css;
  17.     head.appendChild(style);
  18. }
  19.  
  20. addGlobalStyle('table.ipb_table td { padding: 3px }');
  21. addGlobalStyle('.post_block h3 { height: 22px; line-height: 22px; background: #DDDDDD; }');
  22. addGlobalStyle('.post_block h3 a, body .post_block h3 .ip { color: #000000;}');
  23. addGlobalStyle('table.ipb_table td { padding: 4px; background: #DDDDDD }');
  24. addGlobalStyle('.post_body { line-height: 1 }');
  25. addGlobalStyle('table.ipb_table td {border-bottom: 3px solid #FFFFFF;}' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement