Advertisement
Shiny_

Untitled

Oct 30th, 2014
485
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. ///TODO:
  18. // * Zamienić kolory belki z "Wykopalisko", "Hity", "Mikroblog", "Mój Wykop"
  19. // * Zamienić kolory nagłówków na głównej
  20. // * Zamienić kolor przycisku "Szukaj" oraz reszty
  21. // * Zamienić kolory linków na głównej
  22.  
  23. var orange      = "#FF5917 !important;";
  24. var lightblue   = "#4383AF !important;";
  25. var white       = "#FFFFFF !important;";
  26. var black       = "#000000 !important;";
  27. var logo_normal = "http://i.imgur.com/Tyinjgx.png";
  28. var logo_hover  = "http://i.imgur.com/RhpC99v.png";
  29.  
  30. var style = ["<style>" +
  31. "    #site {" +
  32. "        background-color: " + white +
  33. "    }" +
  34. "" +
  35. "    #nav {" +
  36. "        background-image: url('http://i.imgur.com/Y9zPxy7.png') !important;" +
  37. "        height: 100px !important;" +
  38. "    }" +
  39. "" +
  40. "    .clearfix.m-reset-position {" +
  41. "        margin-top: -50px !important;" +
  42. "    }" +
  43. "" +
  44. "    .m-reset-padding.m-reset-margin {" +
  45. "        margin-top: 50px !important;" +
  46. "    }" +
  47. "" +
  48. "    .clearfix.mainnav {" +
  49. "        height: auto !important;" +
  50. "    }" +
  51. "" +
  52. "    /* Zmiana pozycji przycisków, które są PO przycisku przekierowującym na główną stronę portalu. */" +
  53. "    .mainnav li:nth-child(2) {" +
  54. "        width: 100% !important;" +
  55. "    }" +
  56. "" +
  57. "    #openNaturalSearch {" +
  58. "        color: " + black +
  59. "        bottom: 50px;" +
  60. "        position: absolute;" +
  61. "        right: 0 !important;" +
  62. "    }" +
  63. "" +
  64. "    /* Zmiana szerokości pola od wyszukiwarki. */" +
  65. "    input[name='nsQ'] {" +
  66. "        position: absolute;" +
  67. "        width: 134% !important;" +
  68. "    }" +
  69. "" +
  70. "    ul:not(.mainnav).clearfix > li {" +
  71. "        height: auto;" +
  72. "    }" +
  73. "" +
  74. "    .nav ul:not(.mainnav).clearfix {" +
  75. "        display: inline-flex;" +
  76. "        height: 100%;" +
  77. "        align-items: flex-end;" +
  78. "    }" +
  79. "" +
  80. "    .nav ul:not(.mainnav).clearfix:first-child {" +
  81. "        align-self: flex-start;" +
  82. "    }" +
  83. ""+
  84. "    ul.clearfix .logged-user {" +
  85. "        margin-bottom: 10px !important;" +
  86. "    } " +
  87. "" +
  88. "    #nav .nav li.active a {" +
  89. "        background-color: transparent !important;" +
  90. "    }" +
  91. "" +
  92. "    em.mark-number {" +
  93. "        background-color: transparent !important;" +
  94. "        color: #FFFFFF !important;" +
  95. "    }" +
  96. "" +
  97. "    em.mark-number:before {" +
  98. "        content: '(';" +
  99. "    }" +
  100. "" +
  101. "    em.mark-number:after {" +
  102. "        content: ')';" +
  103. "    }" +
  104. "" +
  105. "    .diggbox span:first-child {" +
  106. "        background: url('http://i.imgur.com/L6avdgg.png') no-repeat scroll 0 0 rgba(0, 0, 0, 0);" +
  107. "        color: #3b708a;" +
  108. "    }" +
  109. "" +
  110. "    #nav .nav li a {" +
  111. "        color: " + orange +
  112. "    }" +
  113. "" +
  114. "    em.mark-number {" +
  115. "        color: " + orange +
  116. "    }" +
  117. "" +
  118. "    .clearfix.mainnav > li "+
  119. "        color: " + orange +
  120. "    }" +
  121. "" +
  122. "    .diggbox span:first-child"+
  123. "        color: " + orange +
  124. "    }" +
  125. "" +
  126. "    .clearfix a {" +
  127. "        color: " + orange +
  128. "    }" +
  129. "" +
  130. "    #nav .nav li a:hover, em.mark-number:hover, .clearfix.mainnav > li:hover, .diggbox span:first-child:hover, .clearfix a:hover {" +
  131. "        color: " + lightblue +
  132. "    }" +
  133. "" +
  134. "    .diggbox span:first-child, .active > a, .lcontrast.m-reset-margin a {" +
  135. "        color: " + orange +
  136. "    }" +
  137. "" +
  138. "    .diggbox span:first-child:hover, .active > a:hover, .lcontrast.m-reset-margin a:hover {" +
  139. "        color: " + lightblue +
  140. "    }" +
  141. "" +
  142. "    i.wykop-logo, i.microblog-logo {" +
  143. "        background-image: url('" + logo_normal + "') !important;" +
  144. "    }" +
  145. "" +
  146. "    i.wykop-logo:hover, i.microblog-logo:hover {" +
  147. "        background-image: url('" + logo_hover + "') !important;" +
  148. "    }" +
  149. "" +
  150. "    .active > a {" +
  151. "        background-color: transparent !important;" +
  152. "    }" +
  153. "" +
  154. "    #footer {" +
  155. "        background-color: #FFFFFF !important;" +
  156. "        color: " + lightblue +
  157. "    }" +
  158. "" +
  159. "    #footer a {" +
  160. "        color: " + lightblue +
  161. "    }" +
  162. "" +
  163. "    #footer a:hover, #footer .width-one-fourth a:hover {" +
  164. "        color: " + orange +
  165. "        opacity: 1.0;" +
  166. "    }" +
  167. "" +
  168. "    #footer h4 {" +
  169. "        color: #555555 !important;" +
  170. "    }" +
  171. "" +
  172. "    #footer .wrapper {" +
  173. "        background-color: #cfe0e8 !important;" +
  174. "        border: 2px solid #a2c4d4 !important;" +
  175. "        border-radius: 20px !important;" +
  176. "        border-top-left-radius: 20px !important;" +
  177. "       padding: 20px 10px;" +
  178. "    }" +
  179. "" +
  180. "</style>"].join("\n");
  181. document.head.insertAdjacentHTML("beforeend", style);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement