Advertisement
Shiny_

Untitled

Oct 29th, 2014
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name            Wykop - Fullscreen Mikro
  3. // @description     Mikroblog na całą szerokość ekranu.
  4. // @author          Patryk "Linux__Shines" N oraz P0lip.
  5. // @version         1.0.0.0
  6. // @include         http://www.wykop.pl/tag/*
  7. // @include         http://www.wykop.pl/mikroblog/*
  8. // @include         http://www.wykop.pl/wpis/*
  9. // @include         http://www.wykop.pl/moj/*
  10. // @include         http://www.wykop.pl/ludzie/*
  11. // @include         http://www.wykop.pl/wiadomosc-prywatna/*
  12. // @updateURL       https://openuserjs.org/install/The_Shiny/Wykop_-_Fullscreen_Mikro.user.js
  13. // @grant           none
  14. // @license         BSD
  15. // ==/UserScript==
  16.  
  17. var style = ["<style>" +
  18. "    #nav {" +
  19. "        background-image: url('http://i.imgur.com/Y9zPxy7.png') !important;" +
  20. "        height: 100px !important;" +
  21. "    }" +
  22. "" +
  23. "    .clearfix.m-reset-position {" +
  24. "        margin-top: -50px !important;" +
  25. "    }" +
  26. "" +
  27. "    .m-reset-padding.m-reset-margin {" +
  28. "        margin-top: 50px !important;" +
  29. "    }" +
  30. "" +
  31. "    .clearfix.mainnav {" +
  32. "        height: auto !important;" +
  33. "    }" +
  34. "" +
  35. "    /* Zmiana pozycji przycisków, które są PO przycisku przekierowującym na główną stronę portalu. */" +
  36. "    .mainnav li:nth-child(2) {" +
  37. "        width: 100% !important;" +
  38. "    }" +
  39. "" +
  40. "    #openNaturalSearch {" +
  41. "        bottom: 50px;" +
  42. "        position: absolute;" +
  43. "        right: 0 !important;" +
  44. "    }" +
  45. "" +
  46. "    input[type='text'], input[type='password'], input[type='date'] {" +
  47. "        position: absolute;" +
  48. "        width: 134% !important;" +
  49. "    }" +
  50. "" +
  51. "    ul:not(.mainnav).clearfix > li {" +
  52. "        height: auto;" +
  53. "    }" +
  54. "" +
  55. "    .nav ul:not(.mainnav).clearfix {" +
  56. "        display: inline-flex;" +
  57. "        height: 100%;" +
  58. "        align-items: flex-end;" +
  59. "    }" +
  60. "" +
  61. "    .nav ul:not(.mainnav).clearfix:first-child {" +
  62. "        align-self: flex-start;" +
  63. "    }" +
  64. ""+
  65. "    ul.clearfix .logged-user {" +
  66. "        margin-bottom: 10px !important;" +
  67. "    } " +
  68. "" +
  69. "    #nav .nav li.active a {" +
  70. "        background-color: transparent !important;" +
  71. "    }" +
  72. "" +
  73. "    em.mark-number {" +
  74. "        background-color: transparent !important;" +
  75. "        color: #FFFFFF !important;" +
  76. "    }" +
  77. "" +
  78. "    em.mark-number:before {" +
  79. "        content: '(';" +
  80. "    }" +
  81. "" +
  82. "    em.mark-number:after {" +
  83. "        content: ')';" +
  84. "    }" +
  85. "" +
  86. "    .diggbox span:first-child {" +
  87. "        background: url('http://i.imgur.com/L6avdgg.png') no-repeat scroll 0 0 rgba(0, 0, 0, 0);" +
  88. "        color: #3b708a;" +
  89. "    }" +
  90. "" +
  91. "    #nav .nav li a:hover, em.mark-number:hover, .clearfix.mainnav > li:hover, .diggbox span:first-child:hover, .clearfix a:hover {" +
  92. "        color: #ff5917 !important;" +
  93. "    }" +
  94. "" +
  95. "    .diggbox span:first-child:hover, .active > a, .active > a:hover, .lcontrast.m-reset-margin a:hover {" +
  96. "        color: #FF5917 !important;" +
  97. "    }" +
  98. "" +
  99. // "    .nav.bspace.rbl-block span, .nav.bspace.rbl-block a {" +
  100. // "        color: #3B708A !important;" +
  101. // "    }" +
  102. // "" +
  103. "    i.wykop-logo, i.microblog-logo {" +
  104. "        background-image: url('http://i.imgur.com/Tyinjgx.png') !important;" +
  105. "    }" +
  106. "" +
  107. "    i.wykop-logo:hover, i.microblog-logo:hover {" +
  108. "        background-image: url('http://i.imgur.com/RhpC99v.png') !important;" +
  109. "    }" +
  110. "" +
  111. "    .active > a {" +
  112. "        background-color: transparent !important; /* url('http://i.imgur.com/6Nnchw2.gif') !important; */" +
  113. "    }" +
  114. "</style>"].join("\n");
  115. document.head.insertAdjacentHTML("beforeend", style);
  116. /*
  117. Exception: missing ) after argument list
  118. @Scratchpad/3:110
  119. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement