Advertisement
Shiny_

Untitled

Oct 31st, 2014
438
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/*
  7. // @updateURL       https://openuserjs.org/install/The_Shiny/Wykop_-_Fullscreen_Mikro.user.js
  8. // @grant           none
  9. // @license         BSD
  10. // ==/UserScript==
  11.  
  12. /*** TODO:
  13. // * Zamienić kolory belki z "Wykopalisko", "Hity", "Mikroblog", "Mój Wykop"
  14. // * Zamienić kolory nagłówków na głównej
  15. // * Zamienić kolor przycisku "Szukaj" oraz reszty
  16. // * Zamienić kolory linków na głównej
  17. ****/
  18.  
  19. /*** Kolory: ***/
  20. var orange      = "#FF5917 !important;";
  21. var lightblue   = "#4383AF !important;";
  22. var white_un    = "#FFFFFF;";
  23. var white       = "#FFFFFF !important;";
  24. var black       = "#000000 !important;";
  25. var gray        = "#555555 !important;";
  26. var teal        = "#CFE0E8 !important;";
  27. var darkteal    = "#A2C4D4 !important;";
  28. var nav_focus   = "#DEEBF1 !important;";
  29. var navfocus_un = "#DEEBF1;";
  30.  
  31. /*** Obrazki: ***/
  32. var background  = "http://i.imgur.com/Y9zPxy7.png";
  33. var logo_normal = "http://i.imgur.com/Tyinjgx.png";
  34. var logo_hover  = "http://i.imgur.com/RhpC99v.png";
  35. var digg_button = "http://i.imgur.com/L6avdgg.png";
  36.  
  37. /*** Styl: ***/
  38. var style = ["<style>" +
  39. "    #site {" +
  40. "        background-color: " + white +
  41. "    }" +
  42. "" +
  43. "    #nav {" +
  44. "        background-image: url('" + background + "') !important;" +
  45. "        height: 100px !important;" +
  46. "    }" +
  47. "" +
  48. /*** Zamiana koloru liter paska nawigacyjnego na białe, bez !important: ***/
  49. "    #nav .nav li a {" +
  50. "        color: " + white_un +
  51. "    }" +
  52. "" +
  53. /*** Zamiana koloru liter paska nawigacyjnego na jasnoniebieski po najechaniu a także przy aktywnym przycisku na pasku nawigacyjnym, z wyłączeniem openNaturalSearch: ***/
  54. "    #nav .nav li a:not(#openNaturalSearch):hover, #nav .nav li.active a {" +
  55. "        background-color: transparent !important;" +
  56. "        color: " + navfocus_un +
  57. "    }" +
  58. "" +
  59. /*** Wymuszenie przeniesienia marginesu o 50 pikseli do góry: ***/
  60. "    .clearfix.m-reset-position {" +
  61. "        margin-top: -50px !important;" +
  62. "    }" +
  63. "" +
  64. /*** Wymuszenie przeniesienia zawartości strony o 50 pikseli w dół: ***/
  65. "    .m-reset-padding.m-reset-margin {" +
  66. "        margin-top: 50px !important;" +
  67. "    }" +
  68. "" +
  69. /*** Wymuszanie na wykopie tego, aby pasek nawigacji zawsze miał automatyczną wysokość: ***/
  70. "    .clearfix.mainnav {" +
  71. "        height: auto !important;" +
  72. "    }" +
  73. "" +
  74. /*** Zmiana pozycji przycisków, które są PO przycisku przekierowującym na główną stronę portalu: ***/
  75. "    .mainnav li:nth-child(2) {" +
  76. "        width: 100% !important;" +
  77. "    }" +
  78. "" +
  79. /*** Przycisk od wyszukiwania i zabawy z nim związane: ***/
  80. "    #openNaturalSearch, #openNaturalSearch:hover {" +
  81. "        background: #333 !important; " +
  82. "        color: " + black +
  83. "        bottom: 50px;" +
  84. "        position: absolute;" +
  85. "        right: 0 !important;" +
  86. "    }" +
  87. "" +
  88. "    /* Zmiana szerokości pola od wyszukiwarki. */" +
  89. "    input[name='nsQ'] {" +
  90. "        position: absolute;" +
  91. "        width: 134% !important;" +
  92. "    }" +
  93. "" +
  94. "    ul:not(.mainnav).clearfix > li {" +
  95. "        height: auto;" +
  96. "    }" +
  97. "" +
  98. "    .nav ul:not(.mainnav).clearfix {" +
  99. "        display: inline-flex;" +
  100. "        height: 100%;" +
  101. "        align-items: flex-end;" +
  102. "    }" +
  103. "" +
  104. "    .nav ul:not(.mainnav).clearfix:first-child {" +
  105. "        align-self: flex-start;" +
  106. "    }" +
  107. ""+
  108. "    ul.clearfix .logged-user {" +
  109. "        margin-bottom: 10px !important;" +
  110. "    } " +
  111. "" +
  112. "    em.mark-number {" +
  113. "        background-color: transparent !important;" +
  114. "        color: #FFFFFF !important;" +
  115. "    }" +
  116. "" +
  117. "    em.mark-number:before {" +
  118. "        content: '(';" +
  119. "    }" +
  120. "" +
  121. "    em.mark-number:after {" +
  122. "        content: ')';" +
  123. "    }" +
  124. "" +
  125. "    .diggbox span:first-child {" +
  126. "        background: url('" + digg_button + "') no-repeat scroll 0 0 rgba(0, 0, 0, 0);" +
  127. "        color: #3b708a;" +
  128. "    }" +
  129. "" +
  130. "    em.mark-number {" +
  131. "        color: " + white +
  132. "    }" +
  133. "" +
  134. "    em.mark-number:hover {" +
  135. "        color: " + nav_focus +
  136. "    }" +
  137. "" +
  138. "    .clearfix.mainnav > li "+
  139. "        color: " + orange +
  140. "    }" +
  141. "" +
  142. "    .diggbox span:first-child"+
  143. "        color: " + orange +
  144. "    }" +
  145. "" +
  146. "    .clearfix a {" +
  147. "        color: " + orange +
  148. "    }" +
  149. "" +
  150. "    .diggbox span:first-child, .active > a, .lcontrast.m-reset-margin a {" +
  151. "        color: " + orange +
  152. "    }" +
  153. "" +
  154. "    i.wykop-logo, i.microblog-logo {" +
  155. "        background-image: url('" + logo_normal + "') !important;" +
  156. "    }" +
  157. "" +
  158. "    i.wykop-logo:hover, i.microblog-logo:hover {" +
  159. "        background-image: url('" + logo_hover + "') !important;" +
  160. "    }" +
  161. "" +
  162. "    .active > a {" +
  163. "        background-color: transparent !important;" +
  164. "    }" +
  165. "" +
  166. "    #footer {" +
  167. "        background-color: #FFFFFF !important;" +
  168. "        color: " + lightblue +
  169. "    }" +
  170. "" +
  171. "    #footer a {" +
  172. "        color: " + lightblue +
  173. "    }" +
  174. "" +
  175. "    #footer a:hover, #footer .width-one-fourth a:hover {" +
  176. "        color: " + orange +
  177. "        opacity: 1.0;" +
  178. "    }" +
  179. "" +
  180. "    #footer h4 {" +
  181. "        color: " + gray +
  182. "    }" +
  183. "" +
  184. "    #footer .wrapper {" +
  185. "        background-color: " + teal +
  186. "        border: 2px solid " + darkteal +
  187. "        border-radius: 20px !important;" +
  188. "        border-top-left-radius: 20px !important;" +
  189. "       padding: 20px 10px;" +
  190. "    }" +
  191. "" +
  192. "</style>"].join("\n");
  193. document.head.insertAdjacentHTML("beforeend", style);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement