Guest User

OmskveloVoteButtons v0.002

a guest
Jun 1st, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         AlignButton
  3. // @namespace    Omskvelo
  4. // @version      0.002
  5. // @description  Fix Button Align
  6. // @author       Fazer
  7. // @match        http://omskvelo.ru/index.php?/topic/*
  8. // ==/UserScript==
  9.  
  10. (function() {
  11.     'use strict';
  12.     function addGlobalStyle(css) {
  13.         var head, style;
  14.         head = document.getElementsByTagName('head')[0];
  15.         if (!head) { return; }
  16.         style = document.createElement('style');
  17.         style.type = 'text/css';
  18.         style.innerHTML = css;
  19.         head.appendChild(style);
  20.     }
  21.  
  22.     addGlobalStyle('.post_wrap .rep_bar {width:65px; padding: 0px; min-height:30px }');
  23.     addGlobalStyle('.post_wrap .rep_bar span.reputation {margin: 6px 22px;}');
  24.     addGlobalStyle('.post_wrap .rep_bar ul {width:100%; margin: 0;}');
  25.     addGlobalStyle('.post_wrap .rep_bar ul li:last-child {float: right;}');
  26.     addGlobalStyle('.post_wrap .rep_bar ul a {display: block; padding: 8px;}');
  27. })();
Advertisement
Add Comment
Please, Sign In to add comment