RU Max4_ABP_Fix CSS

Дополнение, исправляющее работу Adblock Plus для отдельных сайтов. Возвращаем функционал Ad-Охотника в Maxthon4. Спасибо lainverse за идею.

当前为 2016-01-01 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name RU Max4_ABP_Fix CSS
  3. // @namespace https://greasyfork.org
  4. // @description Дополнение, исправляющее работу Adblock Plus для отдельных сайтов. Возвращаем функционал Ad-Охотника в Maxthon4. Спасибо lainverse за идею.
  5. // @author lainverse & ALeXkRU
  6. // @license CC BY-SA
  7. // @homepage https://greasyfork.org/ru/scripts/8225-ru-max4-abp-fix-css
  8. // @run-at document-end
  9. // @include *
  10. // @version 0.20160101180024
  11. // @grant GM_addStyle
  12. // ==/UserScript==
  13. (function(){
  14. (function(){var css = "";
  15. css += [
  16. "@namespace url(http://www.w3.org/1999/xhtml);",
  17. "",
  18. "/* Фильтры фоновых картинок */"
  19. ].join("\n");
  20. // ! console.log("es");
  21. if (false || (document.domain == "ru-board.com" || document.domain.substring(document.domain.indexOf(".ru-board.com") + 1) == "ru-board.com") || (document.domain == "latestnewsofusa.org" || document.domain.substring(document.domain.indexOf(".latestnewsofusa.org") + 1) == "latestnewsofusa.org"))
  22. css += [
  23. // правка структуры Ru-Board
  24. "span.dats{position:relative!important;top: 10px!important;}",
  25. // !! скрываем рекламные ссылки (СПАМ) в сообщениях
  26. " a[href^=\"http://forum.ru-board.com/\"][href$=\"/\"][target=\"_blank\"]{color:#333!important; text-decoration: none !important; pointer-events: none !important;}"
  27. // !! ======= ПРАВКА СТРУКТУРЫ. вынесено в отдельный скрипт. См. Ru-Board_Extrim_Max4_ABP_Fix-CSS =======
  28. ].join("\n");
  29. if (false || (document.domain == "aif.ru" || document.domain.substring(document.domain.indexOf(".aif.ru") + 1) == "aif.ru") || (document.domain == "dota2.ru" || document.domain.substring(document.domain.indexOf(".dota2.ru") + 1) == "dota2.ru") || (document.domain == "epravda.com.ua" || document.domain.substring(document.domain.indexOf(".epravda.com.ua") + 1) == "epravda.com.ua") || (document.domain == "image2you.ru" || document.domain.substring(document.domain.indexOf(".image2you.ru") + 1) == "image2you.ru") || (document.domain == "kinozadrot.net" || document.domain.substring(document.domain.indexOf(".kinozadrot.net") + 1) == "kinozadrot.net") || (document.domain == "krasview.ru" || document.domain.substring(document.domain.indexOf(".krasview.ru") + 1) == "krasview.ru") || (document.domain == "livejournal.com" || document.domain.substring(document.domain.indexOf(".livejournal.com") + 1) == "livejournal.com") || (document.domain == "newstudio.tv" || document.domain.substring(document.domain.indexOf(".newstudio.tv") + 1) == "newstudio.tv") || (document.domain == "sc2tv.ru" || document.domain.substring(document.domain.indexOf(".sc2tv.ru") + 1) == "sc2tv.ru") || (document.domain == "smotri.com" || document.domain.substring(document.domain.indexOf(".smotri.com") + 1) == "smotri.com") || (document.domain == "stopgame.ru" || document.domain.substring(document.domain.indexOf(".stopgame.ru") + 1) == "stopgame.ru") || (document.domain == "zakon.kz" || document.domain.substring(document.domain.indexOf(".zakon.kz") + 1) == "zakon.kz") || (document.domain == "muzofon.com" || document.domain.substring(document.domain.indexOf(".muzofon.com") + 1) == "muzofon.com"))
  30. css += " html, html>body {background-image:none!important;}";
  31. if (false || (document.domain == "kronverkcinema.ua" || document.domain.substring(document.domain.indexOf(".kronverkcinema.ua") + 1) == "kronverkcinema.ua") || (document.domain == "moskva.fm" || document.domain.substring(document.domain.indexOf(".moskva.fm") + 1) == "moskva.fm") || (document.domain == "newstudio.tv" || document.domain.substring(document.domain.indexOf(".newstudio.tv") + 1) == "newstudio.tv") || (document.domain == "roem.ru" || document.domain.substring(document.domain.indexOf(".roem.ru") + 1) == "roem.ru") || (document.domain == "tfile.me" || document.domain.substring(document.domain.indexOf(".tfile.me") + 1) == "tfile.me") || (document.domain == "virusinfo.info" || document.domain.substring(document.domain.indexOf(".virusinfo.info") + 1) == "virusinfo.info"))
  32. css += " body {padding-top:0!important;}";
  33. if (false || (document.domain == "dota2.ru" || document.domain.substring(document.domain.indexOf(".dota2.ru") + 1) == "dota2.ru") || (document.domain == "epravda.com.ua" || document.domain.substring(document.domain.indexOf(".epravda.com.ua") + 1) == "epravda.com.ua") || (document.domain == "kino-dom.tv" || document.domain.substring(document.domain.indexOf(".kino-dom.tv") + 1) == "kino-dom.tv") || (document.domain == "prophotos.ru" || document.domain.substring(document.domain.indexOf(".prophotos.ru") + 1) == "prophotos.ru") || (document.domain == "seasonvar.ru" || document.domain.substring(document.domain.indexOf(".seasonvar.ru") + 1) == "seasonvar.ru") || (document.domain == "unionpeer.org" || document.domain.substring(document.domain.indexOf(".unionpeer.org") + 1) == "unionpeer.org"))
  34. css += " html>body {padding:0!important;}";
  35. if (false || (document.domain == "101.ru" || document.domain.substring(document.domain.indexOf(".101.ru") + 1) == "101.ru"))
  36. css += " #layout {background:none!important;}";
  37. if (false || (document.domain == "21forum.ru" || document.domain.substring(document.domain.indexOf(".21forum.ru") + 1) == "21forum.ru") || (document.domain == "forum.na-svyazi.ru" || document.domain.substring(document.domain.indexOf(".forum.na-svyazi.ru") + 1) == "forum.na-svyazi.ru") || (document.domain == "forum.zarulem.ws" || document.domain.substring(document.domain.indexOf(".forum.zarulem.ws") + 1) == "forum.zarulem.ws"))
  38. css += [
  39. "TD[height=\"70\"][style],#user2s[height=\"71\"],",
  40. " #userlinks[height=\"70\"] {display:none!important;}"
  41. ].join("\n");
  42. if (false || (document.domain == "4pda.ru" || document.domain.substring(document.domain.indexOf(".4pda.ru") + 1) == "4pda.ru"))
  43. css += [
  44. " #main {background-image:none!important;}",
  45. " *{background-image:url(\"\")!important;}",
  46. // !! " #header + #ruBlbZq {background-image:url()!important;}",
  47. // !! " #header + * {background-image:url()!important;}",
  48. " #header + #ruBlbZq {background-image: url(\"\") !important;}",
  49. " #main {padding: 0 !important;}",
  50. " .brand-page {display: none!important;}",
  51. " .brand-page {height:0!important;}",
  52. " body,#main,#rnd-replace-main {background: #E6E7E9!important}",
  53. " div#main>div.holder.no-hidden{padding:0 !important;}",
  54. " div#main>div.holder.no-hidden{width: inherit !important;}",
  55. " html>body>div#wrapper>div:nth-of-type(1)>div:nth-of-type(1)>header+div {background-image: url(\"\")!important;}",
  56. " article#content{width: 920px !important;}",
  57. // ! " #header~div:not(#contacts):not(#body) {background-image:none!important;background-color:#E6E7E9!important}",
  58. // ! " link~div[class$=\" \"] {display:none!important}",
  59. " div#main>div.holder.no-hidden{padding: 0 !important;}",
  60. " div#main>div.holder.no-hidden{width: inherit !important;}",
  61. " iv#main>div.holder.no-hidden>a{display: none!important;}",
  62. " div#main>div.holder.no-hidden>div.brand-page-counters{display: none!important;}",
  63. " div#ipbwrapper>div.borderwrap-header{display: none!important;}",
  64. " div.borderwrap-header>table{display: none!important;}",
  65. " div#dw-wrapper{display: none!important;}",
  66. " a.brand-page.main{display: none!important;}",
  67. " main{background-image: none !important;}",
  68. " div#wrapper>div:nth-of-type(1)>div:nth-of-type(1)>header+div>div:nth-of-type(4){display: none!important;}",
  69. " div#wrapper>div:nth-of-type(1)>div:nth-of-type(1)>header+div>div:nth-of-type(3){display: none!important;}"
  70. ].join("\n");
  71. if (false || (document.domain == "adultmult.tv" || document.domain.substring(document.domain.indexOf(".adultmult.tv") + 1) == "adultmult.tv"))
  72. css += ".adsbygoogle,#aswift_0_expand {display:none!important;}";
  73. if (false || (document.domain == "afisha.ru" || document.domain.substring(document.domain.indexOf(".afisha.ru") + 1) == "afisha.ru"))
  74. css += [
  75. ".page_block_content {width:100%!important;}",
  76. " .page_block_adv {background:none!important;}"
  77. ].join("\n");
  78. if (false || (document.domain == "ag.ru" || document.domain.substring(document.domain.indexOf(".ag.ru") + 1) == "ag.ru"))
  79. css += " #new_logo_helper01 {top:0!important;}";
  80. if (false || (document.domain == "aif.ru" || document.domain.substring(document.domain.indexOf(".aif.ru") + 1) == "aif.ru"))
  81. css += "#container {margin-top:0!important}";
  82. if (false || (document.domain == "all-episodes.com" || document.domain.substring(document.domain.indexOf(".all-episodes.com") + 1) == "all-episodes.com"))
  83. css += " .wrapper {top:0!important;}";
  84. if (false || (document.domain == "allhockey.ru" || document.domain.substring(document.domain.indexOf(".allhockey.ru") + 1) == "allhockey.ru"))
  85. css += ".adr-top { height:0!important;min-height:0!important}";
  86. if (false || (document.domain == "aliexpress.com" || document.domain.substring(document.domain.indexOf(".aliexpress.com") + 1) == "aliexpress.com"))
  87. css += [
  88. " div.categories-main{ display: inline-block !important; width:auto !important; } dl.cl-item{display: inline-block !important;}",
  89. " div.index-page>div.user-helper-footer{position: relative !important; top: 120px !important; padding: 0 !important;}",
  90. " div.index-page>div.site-footer{position: relative !important; top: 120px !important; margin: 0 !important; padding: 0 !important;}",
  91. " div.index-page>div.footer-copywrite{position: relative !important; top: 120px !important;}",
  92. " div.index-page{height: inherit !important;}"
  93. ].join("\n");
  94. if (false || (document.domain == "animevost.org" || document.domain.substring(document.domain.indexOf(".animevost.org") + 1) == "animevost.org"))
  95. css += [
  96. "div[class^=\"headbg\"] {background-image:none!important;height:auto!important;}",
  97. " div[class^=\"headbg\"] > .menu {top:0px!important;}",
  98. " div[class^=\"headbg\"] > .menu .sar {bottom:auto!important;top:50px!important;z-index:100!important;}"
  99. ].join("\n");
  100. if (false || (document.domain == "anistar.ru" || document.domain.substring(document.domain.indexOf(".anistar.ru") + 1) == "anistar.ru"))
  101. css += [
  102. "body > .clear + div:not(.main),.news-fixed {display:none!important;}",
  103. " .wrapper.width1200 {margin-top:0}",
  104. " .drowmenu {z-index:1001}"
  105. ].join("\n");
  106. if (false || (document.domain == "anti-malware.ru" || document.domain.substring(document.domain.indexOf(".anti-malware.ru") + 1) == "anti-malware.ru"))
  107. css += "#header-bg-enf {margin-top:0!important;}";
  108. if (false || (document.domain == "bestpersons.ru" || document.domain.substring(document.domain.indexOf(".bestpersons.ru") + 1) == "bestpersons.ru"))
  109. css += [
  110. "/* Fx compat fix */",
  111. " #userTabs {float:none!important;}"
  112. ].join("\n");
  113. if (false || (document.domain == "binmovie.org" || document.domain.substring(document.domain.indexOf(".binmovie.org") + 1) == "binmovie.org"))
  114. css += " #content {top:0!important;left:0!important;width:100%!important;margin-left:0!important;}";
  115. if (false || (document.domain == "bvedomosti.ru" || document.domain.substring(document.domain.indexOf(".bvedomosti.ru") + 1) == "bvedomosti.ru"))
  116. css += [
  117. ".art-Header {display:none!important;}",
  118. " #art-main {background-image:none!important;}",
  119. " .bg-top-menu {top:0!important;}"
  120. ].join("\n");
  121. if (false || (document.domain == "carambatv.ru" || document.domain.substring(document.domain.indexOf(".carambatv.ru") + 1) == "carambatv.ru"))
  122. css += " .content {background:none!important;padding:0!important;}";
  123. if (false || (document.domain == "cars.ru" || document.domain.substring(document.domain.indexOf(".cars.ru") + 1) == "cars.ru"))
  124. css += [
  125. "#main {margin-top:0!important;}",
  126. " A[href*=\"/adclick.php?bannerid=\"] {display:none!important;}"
  127. ].join("\n");
  128. if (false || (document.domain == "dota2.ru" || document.domain.substring(document.domain.indexOf(".dota2.ru") + 1) == "dota2.ru"))
  129. css += " body {background:black!important;}";
  130. if (false || (document.domain == "drive.ru" || document.domain.substring(document.domain.indexOf(".drive.ru") + 1) == "drive.ru"))
  131. css += "body>div {background:none!important;padding-top:0!important;}";
  132. if (false || (document.domain == "epravda.com.ua" || document.domain.substring(document.domain.indexOf(".epravda.com.ua") + 1) == "epravda.com.ua"))
  133. css += [
  134. " body {cursor:auto!important;}",
  135. " body>div[align=\"center\"] {width:auto!important;margin:0!important;}"
  136. ].join("\n");
  137. if (false || (document.domain == "firepic.org" || document.domain.substring(document.domain.indexOf(".firepic.org") + 1) == "firepic.org"))
  138. css += [
  139. "body {padding:0!important;background-image:none!important;}",
  140. " .container,.row {max-width:none!important;}",
  141. " .container {width:100%!important;}",
  142. " .row {padding:30px!important;margin:0px!important;}",
  143. " .span12 {clear:both}"
  144. ].join("\n");
  145. if (false || (document.domain == "fishki.net" || document.domain.substring(document.domain.indexOf(".fishki.net") + 1) == "fishki.net"))
  146. css += "#container {cursor:auto!important;}";
  147. if (false || (document.domain == "free-torrents.org" || document.domain.substring(document.domain.indexOf(".free-torrents.org") + 1) == "free-torrents.org"))
  148. css += [
  149. "#sidebar2 {padding-top:0!important;}",
  150. " #main-wrapper {width:100%!important;top:0!important;}"
  151. ].join("\n");
  152. if (false || (document.domain == "gamebomb.ru" || document.domain.substring(document.domain.indexOf(".gamebomb.ru") + 1) == "gamebomb.ru"))
  153. css += [
  154. "#ssdfsd,.dfgdjkfgh{background-image:none!important;}",
  155. " #content{padding-top:0!important;margin-top:0!important;}"
  156. ].join("\n");
  157. if (false || (document.domain == "gamer-info.com" || document.domain.substring(document.domain.indexOf(".gamer-info.com") + 1) == "gamer-info.com"))
  158. css += "#all-content-container {padding:0!important;}";
  159. if (false || (document.domain == "gidonline.club" || document.domain.substring(document.domain.indexOf(".gidonline.club") + 1) == "gidonline.club"))
  160. css += "#headerline {margin-top:0!important;}";
  161. if (false || (document.domain == "gidonlinekino.com" || document.domain.substring(document.domain.indexOf(".gidonlinekino.com") + 1) == "gidonlinekino.com"))
  162. css += " #headerline {margin-top:0!important;}";
  163. if (false || (document.domain == "goclips.tv" || document.domain.substring(document.domain.indexOf(".goclips.tv") + 1) == "goclips.tv"))
  164. css += " .video_content {height:auto!important;}";
  165. if (false || (document.domain == "goha.ru" || document.domain.substring(document.domain.indexOf(".goha.ru") + 1) == "goha.ru"))
  166. css += [
  167. "#full-brand-footer>div[style*=\"fixed\"], #head-tuppy>a {display:none!important;}",
  168. " #full-brand {background-image:none!important;}",
  169. " #head-tuppy {height: 7px!important;}"
  170. ].join("\n");
  171. if (false || (document.domain == "gotps3.ru" || document.domain.substring(document.domain.indexOf(".gotps3.ru") + 1) == "gotps3.ru"))
  172. css += "#Page {margin-top:0!important;}";
  173. if (false || (document.domain == "gstv.ru" || document.domain.substring(document.domain.indexOf(".gstv.ru") + 1) == "gstv.ru"))
  174. css += ".page-content {margin-top:0!important;}";
  175. if (false || (document.domain == "hdfilms.tv" || document.domain.substring(document.domain.indexOf(".hdfilms.tv") + 1) == "hdfilms.tv"))
  176. css += " #subheader{padding-top:1px!important;}";
  177. if (false || (document.domain == "iphones.ru" || document.domain.substring(document.domain.indexOf(".iphones.ru") + 1) == "iphones.ru"))
  178. css += "#contentShifter {height:127px!important}";
  179. if (false || (document.domain == "kino-dom.tv" || document.domain.substring(document.domain.indexOf(".kino-dom.tv") + 1) == "kino-dom.tv"))
  180. css += " #main {width: auto!important;}";
  181. if (false || (document.domain == "kinoafisha.spb.ru" || document.domain.substring(document.domain.indexOf(".kinoafisha.spb.ru") + 1) == "kinoafisha.spb.ru"))
  182. css += "#branding_wrapper {padding-right:0!important}";
  183. if (false || (document.domain == "kinobel.by" || document.domain.substring(document.domain.indexOf(".kinobel.by") + 1) == "kinobel.by"))
  184. css += ".bg-site {padding-top:0!important;}";
  185. if (false || (document.domain == "kinopoisk.ru" || document.domain.substring(document.domain.indexOf(".kinopoisk.ru") + 1) == "kinopoisk.ru"))
  186. css += [
  187. " body{background:none!important;}",
  188. " body{background:#C0C0C0!important;}",
  189. " html[style] {background-image: url()!important;}",
  190. " #top .png_block, #GoUpClickZone{background:url() !important;}",
  191. " #top {height:100px!important;}",
  192. " .master {top:1px!important;}",
  193. " .menu {top:1px!important;}",
  194. // !! выравниваем секцию поиск:
  195. " #top_form {top: 2px!important;}",
  196. " #top .png_block {top: 2px!important;}",
  197. // !! расширяем полезную площадь
  198. " #content_block, .contentBlock1, .shadow, #top, #top .png_block, .block_left_padtop{width:100% !important;}",
  199. " div[id\*=\"div_review_\"]{width:98% !important;}",
  200. " .brand_words, p[id\^=\"ext_text_\"], ._reachbanner_ {width:100% !important;}",
  201. " .reviewItem, .userReview, p[id\^=\"ext_text_\"][data-find], span._reachbanner_ {width:100% !important;}",
  202. " div#content_block.contentBlock1>table {width:95% !important;}",
  203. " div#content_block.contentBlock1>table>tbody[data-find]>tr[data-find] {width:95% !important;}",
  204. " #photoBlock {padding-left:20px !important;}",
  205. " div#nav_express {padding-left:40px !important;}"
  206. ].join("\n");
  207. if (false || (document.domain == "kinotochka.net" || document.domain.substring(document.domain.indexOf(".kinotochka.net") + 1) == "kinotochka.net"))
  208. css += " .LogoSearchForm {margin-top:80px!important;}";
  209. if (false || (document.domain == "kinozadrot.net" || document.domain.substring(document.domain.indexOf(".kinozadrot.net") + 1) == "kinozadrot.net"))
  210. css += " body.brending {padding-top:180px!important;}";
  211. if (false || (document.domain == "krasview.ru" || document.domain.substring(document.domain.indexOf(".krasview.ru") + 1) == "krasview.ru"))
  212. css += " #dynamic-content{margin-top:0!important;}";
  213. if (false || (document.domain == "mail.rambler.ru" || document.domain.substring(document.domain.indexOf(".mail.rambler.ru") + 1) == "mail.rambler.ru"))
  214. css += ".appSearchBar,.appWindowWithBanner {right:0!important}";
  215. if (false || (document.domain == "maxpark.com" || document.domain.substring(document.domain.indexOf(".maxpark.com") + 1) == "maxpark.com") || (document.domain == "newsland.com" || document.domain.substring(document.domain.indexOf(".newsland.com") + 1) == "newsland.com"))
  216. css += " .b-branding__wrap {padding:0!important;}";
  217. if (false || (document.domain == "noob-club.ru" || document.domain.substring(document.domain.indexOf(".noob-club.ru") + 1) == "noob-club.ru"))
  218. css += "#header-new {margin-bottom:0!important;}";
  219. if (false || (document.domain == "online.anidub.com" || document.domain.substring(document.domain.indexOf(".online.anidub.com") + 1) == "online.anidub.com"))
  220. css += [
  221. ".background {background:none!important}",
  222. " .background > DIV[id^=\"b\"][class] {display:none!important}"
  223. ].join("\n");
  224. if (false || (document.domain == "politobzor.net" || document.domain.substring(document.domain.indexOf(".politobzor.net") + 1) == "politobzor.net"))
  225. css += " .banner {height:90px!important;}";
  226. if (false || (document.domain == "popmech.ru" || document.domain.substring(document.domain.indexOf(".popmech.ru") + 1) == "popmech.ru"))
  227. css += " .header__brand {margin-top:0!important;}";
  228. if (false || (document.domain == "povarenok.ru" || document.domain.substring(document.domain.indexOf(".povarenok.ru") + 1) == "povarenok.ru"))
  229. css += [
  230. ".car_content {margin:0!important;width:100%!important;}",
  231. " .car_recept {width:97%!important;}",
  232. " .cont_head, .cont_mid, .car_footer {background:none!important;}",
  233. " .car_header, .petushok, .cont_foot {display:none!important;}"
  234. ].join("\n");
  235. if (false || (document.domain == "promodj.com" || document.domain.substring(document.domain.indexOf(".promodj.com") + 1) == "promodj.com"))
  236. css += " #topbrandingspot {padding-top:0!important;}";
  237. if (false || (document.domain == "riotpixels.com" || document.domain.substring(document.domain.indexOf(".riotpixels.com") + 1) == "riotpixels.com"))
  238. css += [
  239. "body {background-image:none!important;}",
  240. " .all-wrapper, .bottom-bar {top:0!important;}",
  241. " .bottom-bar, .action-menu {position:fixed!important;}"
  242. ].join("\n");
  243. if (false || (document.domain == "sc2tv.ru" || document.domain.substring(document.domain.indexOf(".sc2tv.ru") + 1) == "sc2tv.ru"))
  244. css += " #block-sc2tv_streams-0 {margin-top:0!important;}";
  245. if (false || (document.domain == "seasonvar.ru" || document.domain.substring(document.domain.indexOf(".seasonvar.ru") + 1) == "seasonvar.ru"))
  246. css += " body {background-color:#707070!important;}";
  247. if (false || (document.domain == "smotri.com" || document.domain.substring(document.domain.indexOf(".smotri.com") + 1) == "smotri.com"))
  248. css += " #wrapper>#all {margin-top:0!important;}";
  249. if (false || (document.domain == "soccer.ru" || document.domain.substring(document.domain.indexOf(".soccer.ru") + 1) == "soccer.ru"))
  250. css += [
  251. "#beforecontent {display:none!important}",
  252. " #left {margin-top:15px!important}"
  253. ].join("\n");
  254. if (false || (document.domain == "sports.ru" || document.domain.substring(document.domain.indexOf(".sports.ru") + 1) == "sports.ru"))
  255. css += [
  256. "body.img-bg,#branding-layout {background:gray!important;padding-top:0!important}",
  257. " .pageLayout {top:0!important}"
  258. ].join("\n");
  259. if (false || (document.domain == "tort.fm" || document.domain.substring(document.domain.indexOf(".tort.fm") + 1) == "tort.fm"))
  260. css += "#topper_up {height:88px!important}";
  261. if (false || (document.domain == "tnt-online.ru" || document.domain.substring(document.domain.indexOf(".tnt-online.ru") + 1) == "tnt-online.ru"))
  262. css += [
  263. "/*self-ads for bitblock*/",
  264. " #contentShifter {display:none!important;}",
  265. " #all {top:15px!important;}"
  266. ].join("\n");
  267. if (false || (document.domain == "tree.tv" || document.domain.substring(document.domain.indexOf(".tree.tv") + 1) == "tree.tv"))
  268. css += ".wrapper {margin-top:0!important}";
  269. if (false || (document.domain == "virusinfo.info" || document.domain.substring(document.domain.indexOf(".virusinfo.info") + 1) == "virusinfo.info"))
  270. css += "body {margin:0!important;}";
  271. if (false || (document.domain == "warfiles.ru" || document.domain.substring(document.domain.indexOf(".warfiles.ru") + 1) == "warfiles.ru"))
  272. css += "#header + .banner {height:100px!important;}";
  273. if (false || (document.domain == "vz.ru" || document.domain.substring(document.domain.indexOf(".vz.ru") + 1) == "vz.ru"))
  274. css += [
  275. " div.main-container{max-width: inherit !important;}",
  276. " div.main-menu>div.menu.sys_thumbs{overflow: inherit !important;}",
  277. " div.main-menu>div.menu.sys_thumbs>ul>li.thumb{margin-right: 0 !important;}",
  278. " div.menu{max-width: inherit !important;}"
  279. ].join("\n");
  280. if (false || (document.domain == "webfile.ru" || document.domain.substring(document.domain.indexOf(".webfile.ru") + 1) == "webfile.ru"))
  281. css += ".p_wrap {margin-top:0!important;}";
  282. if (false || (document.domain == "zaycev.net" || document.domain.substring(document.domain.indexOf(".zaycev.net") + 1) == "zaycev.net"))
  283. css += " .body-branding {background:none!important;padding-top:0!important;}";
  284. if (false || (document.domain == "zoneofgames.ru" || document.domain.substring(document.domain.indexOf(".zoneofgames.ru") + 1) == "zoneofgames.ru"))
  285. css += " .branding,div.logo {background:none!important;height:auto!important;}";
  286. if (false || (document.domain == "zoomby.ru" || document.domain.substring(document.domain.indexOf(".zoomby.ru") + 1) == "zoomby.ru"))
  287. css += [
  288. "#global_wrapper_cont {padding:0!important;}",
  289. " .wrapper {margin-top:60px!important;}"
  290. ].join("\n");
  291. if (false || (document.domain == "pogoda.mail.ru" || document.domain.substring(document.domain.indexOf(".pogoda.mail.ru") + 1) == "pogoda.mail.ru"))
  292. css += ".forecast-rb-bg {background-image:none!important}";
  293. if (false || (document.domain == "hi-tech.mail.ru" || document.domain.substring(document.domain.indexOf(".hi-tech.mail.ru") + 1) == "hi-tech.mail.ru"))
  294. css += "#portal-menu, .header-banner {margin:0!important}";
  295. if (false || (document.domain == "e.mail.ru" || document.domain.substring(document.domain.indexOf(".e.mail.ru") + 1) == "e.mail.ru"))
  296. css += "#leftcol-banners,.b-rb {position:fixed!important;top:-1000px!important;opacity:0!important;pointer-events:none!important}";
  297. if (false || (new RegExp("^https?://anistar.ru/news(/(\\?.*)?)?$")).test(document.location.href))
  298. css += ".news:nth-child(1) {display:none!important;}";
  299. if (false || (document.domain == "ixbt.com" || document.domain.substring(document.domain.indexOf(".ixbt.com") + 1) == "ixbt.com"))
  300. css += [
  301. " body {background:white!important;}",
  302. " body {background-color:white!important}",
  303. " body{background-image: url()!important;}",
  304. " body{background-image: none !important;}",
  305. " div{background-image: url()!important;}",
  306. " .branding {padding-top: 5px!important;}",
  307. " body {padding-top: 5px!important;}",
  308. " .limiter{padding-top: 5px!important;}",
  309. " .main_tm_search_tool,.searchline {background: white!important;}",
  310. // !! для широкоформатных мониторов
  311. " .header_container, .bottom_container, #content, .content, .wrapper, .limiter {width: 100%!important;}",
  312. " div.limiter > div.wrapper > div.c_w > table > tbody > tr > td[align=\"center\"] > table[width=\"960\"] {width: 100%!important;}"
  313. ].join("\n");
  314. if (false || (document.domain == "nnm-club.me" || document.domain.substring(document.domain.indexOf(".nnm-club.me") + 1) == "nnm-club.me"))
  315. // ! console.log("es1");
  316. css += [
  317. "body{background:none !important;}",
  318. " body {padding-top:0px !important;}",
  319. " body{background-image:none !important;}",
  320. " body{padding:0 !important;}",
  321. " .skin-block{background-image:url(\" \") !important;}",
  322. " element.style{background-image:url(\"\") !important;}",
  323. " #brTop{background-image:url(\"\") !important;}",
  324. // !! --- широко
  325. // !! ".wrap{min-width:1030px;max-width:100% !important;}",
  326. " body>table[width=\"85%\"]{width:100% !important;}",
  327. " body>div.wrap{max-width:100% !important;}",
  328. " body>div.wrap{min-width:1030px !important;}"
  329. ].join("\n");
  330. if (false || (document.domain == "gismeteo.ru" || document.domain.substring(document.domain.indexOf(".gismeteo.ru") + 1) == "gismeteo.ru") || (document.domain == "gismeteo.ua" || document.domain.substring(document.domain.indexOf(".gismeteo.ua") + 1) == "gismeteo.ua"))
  331. css += [
  332. " #canvas,.cleft{width: 988px!important;}#weather-maps,#map-view,#weather-old,#weather-busy{width: 986px!important;}#weather-cities,#weather-weekly,#weather-daily,#weather-hourly,#geomagnetic{width:738px!important;}#weather-news{width:362px!important;}.wtab{width:228px!important;}.wtabs .wttr{left:224px!important;}.wbfull tbody th{width:85px!important;}.wdata thead th,.wdata tbody th{text-align: center!important;}.workday,tbody tr .weekend{width: 40px!important;}.wbshort .wbday{left:450px!important;}.wbshort .wbnight{left:70px!important;}.rframe{background-color: rgba(255,255,255,0.4)!important;}.wsection, .wbshort, .wbfull, .rfc{background:transparent!important;}.wbshort:hover{background-color:rgb(255,255,225)!important;}body{background:url(http://www.wallplanet.ru/_ph/15/685414393.jpg)!important;background-attachment: fixed!important;}#weather-maps .fcontent{height:280px!important;}#weather-maps li{width:108px!important;} .wsection table{width: 690px!important;}",
  333. " div#post-container{background:url(\"\")!important;}",
  334. " div#pre-container{background:url(\"\")!important;}"
  335. ].join("\n");
  336. if (false || (document.domain == "nnm.me" || document.domain.substring(document.domain.indexOf(".nnm.me") + 1) == "nnm.me"))
  337. css += [
  338. "body{background: none !important;}",
  339. " body, #theme_8, #theme_2, #theme_3, #theme_4, #theme_5, #theme_6, #theme_7, #theme_1{background: url(\'\') !important;}",
  340. " body {background-image:none !important;}",
  341. " body, div#page{background:gray !important;background-color:gray !important;}",
  342. " body, div#page, element.style, #brTop{background-image:url('') !important;}",
  343. " body, div#page, .pirate-branding, .pb_button_play{background:none !important;}",
  344. " div#page, div#wrap{margin-top:0px !important;top: 0px !important;}",
  345. " div#optionspanel{margin-top:0px !important; margin-left:0px !important;}",
  346. " div#page>div[style*=\"width: 990px;\"][style*=\"height: 206px; position: relative;\"]{height: 0px !important;}",
  347. " .pb_top_img, .pirate-branding, a.pb_link, .pb_logo_brand, .pb_left_banner, .pb_right_banner, #b-logo{height: 0px !important;}",
  348. " .pirate-branding, .pb_button_play_big{top:0px !important;}",
  349. " body{padding-top: 0px !important;}",
  350. " #mmmBanner{height: 0px !important;}",
  351. " .head_assn {height: 0px !important; width: 0px !important;}",
  352. " .head_assn .assn_logo {width: 0px !important; height: 0px !important; top: 0px !important; left: 0px !important; background: url(\" \") !important; }",
  353. " .head_assn .assn_slogan {width: 0px !important; height: 0px !important; top: 0px !important; left:0px !important; background: url(\" \") !important; }",
  354. " html{height: 0px !important;}",
  355. " body{click=()!important;}",
  356. // !! заполненяем всю ширину экрана.
  357. " #wrap, #scrollPanel{width: 1320px !important;}",
  358. " #cntnt{margin-top: 0px !important; position: absolute !important; left: 0% !important; margin-left: 0px !important;}",
  359. " #wrapper {width: 1300px !important;}",
  360. " #content{width: 900px !important;}",
  361. " body {text-align:center!important;}",
  362. " #page {display:inline-block !important; margin-top:0 !important;}",
  363. " #wrap {text-align:initial !important;}"
  364. ].join("\n");
  365. if (false || (document.domain == "yandex.by" || document.domain.substring(document.domain.indexOf(".yandex.by") + 1) == "yandex.by") || (document.domain == "yandex.kz" || document.domain.substring(document.domain.indexOf(".yandex.kz") + 1) == "yandex.kz") || (document.domain == "yandex.ru" || document.domain.substring(document.domain.indexOf(".yandex.ru") + 1) == "yandex.ru") || (document.domain == "yandex.ua" || document.domain.substring(document.domain.indexOf(".yandex.ua") + 1) == "yandex.ua"))
  366. css += [
  367. // ! site yandex
  368. // !!? ".adsrv {width:0px!important;min-width:0!important;max-width:0!important;",
  369. " .i-bem[style*=\'opacity:1!important\'] {width:0px!important;min-width:0!important;max-width:0!important;",
  370. " height:0!important;min-height:0!important;max-height:0!important;",
  371. " overflow:hidden!important;}",
  372. " .b-top-wizard{width:1000px!important;} .b-body-items.b-serp-list{width:1000px!important;}",
  373. // ! !! чистим maps.yandex
  374. " .ymaps-map{background:none !important;}",
  375. // " .ymaps-2-1-23-map,.ymaps-2-1-28-map-ru,.ymaps-2-1-30-copyright__logo,.ymaps-2-1-30-copyright__logo_lang_en,.ymaps-2-1-30-copyright__content,.ymaps-2-1-30-copyright__content,.ymaps-2-1-30-copyright_fog_yes:after,.ymaps-2-1-30-copyright__fog,.ymaps-2-1-30-hint__x{background-image:url() !important;}",
  376. " .ymaps-2-1-23-map,.ymaps-2-1-28-map-ru,.ymaps-2-1-30-hint__x,[class*=\"-copyright__\"]{background-image:url() !important;}",
  377. " .ymaps-2-1-23-map,.ymaps-2-1-28-map-ru,.ymaps-2-1-30-hint__x,[class*=\"-copyright__\"]{background:url(\'\') !important;}",
  378. // ! !! убрать все фоновые рисунки в картах
  379. // ! " ymaps{background-image:url() !important;}",
  380. " tv.yandex.ru##td[width=\"24%\"]{width:12%!important;}",
  381. " a{onmousedown=''!important;}",
  382. " a{onclick=''!important;}"
  383. ].join("\n");
  384. // !! if (false || (document.domain == "39soft.ru" || document.domain.substring(document.domain.indexOf(".39soft.ru") + 1) == "39soft.ru") || (document.domain == "soft-club.me" || document.domain.substring(document.domain.indexOf(".soft-club.me") + 1) == "soft-club.me"))
  385. if (false || (document.domain == "soft-club.me" || document.domain.substring(document.domain.indexOf(".soft-club.me") + 1) == "soft-club.me"))
  386. css += [
  387. // ! !! --- широко
  388. " .main,.main-wrap,.header,.header-main{width:100%!important;}",
  389. " div.all,div.all-wrap,.pageWidth{max-width:100%!important;width:100%!important;}",
  390. " article,.header,.header-main{width:100%!important;}",
  391. " div.content{width:80%!important;}div.sidebar1{width:18%!important;}"
  392. ].join("\n");
  393. if (false || (document.domain == "4seasons-ltc.com" || document.domain.substring(document.domain.indexOf(".4seasons-ltc.com") + 1) == "4seasons-ltc.com"))
  394. css += [
  395. "body{background-image:none !important;}",
  396. " body{font-family: Tahoma !important;}"
  397. ].join("\n");
  398. if (false || (document.domain == "80-e.ru" || document.domain.substring(document.domain.indexOf(".80-e.ru") + 1) == "80-e.ru"))
  399. css += [
  400. " div#ipbwrapper{margin: 0 !important;width: inherit !important;max-width: inherit !important;}"
  401. ].join("\n");
  402. if (false || (document.domain == "china-review.com.ua" || document.domain.substring(document.domain.indexOf(".china-review.com.ua") + 1) == "china-review.com.ua"))
  403. css += [
  404. "body{background:url()!important;}",
  405. " body{background-image:none !important;}",
  406. " body{background:none!important;}",
  407. " body{margin-top:0px!important;}"
  408. ].join("\n");
  409. if (false || (document.domain == "ag.ru" || document.domain.substring(document.domain.indexOf(".ag.ru") + 1) == "ag.ru"))
  410. css += [
  411. "body{background:none!important;} .layer_top {background:none!important;} .layer_bottom {background:none!important;} .cast_bg{background:none!important;}",
  412. " .contentbg {background-image:none!important;} #4iframe {background-image:none!important;} ",
  413. " #framescr{background-image:none!important;}"
  414. ].join("\n");
  415. if (false || (document.domain == "amovies.tv" || document.domain.substring(document.domain.indexOf(".amovies.tv") + 1) == "amovies.tv"))
  416. css += [
  417. // !! расширяем
  418. "article{width: 980px !important;}",
  419. " #vk_select {float:none !important;margin-left: 445px!important;}",
  420. " #vk_top,#vk_select {background:url()!important;}"
  421. ].join("\n");
  422. if (false || (document.domain == "apteka.ru" || document.domain.substring(document.domain.indexOf(".apteka.ru") + 1) == "apteka.ru"))
  423. css += [
  424. " div.wrapper_root>div.wrapper>section.middle{margin-bottom: 0 !important;}",
  425. " div.wrapper_root>div.wrapper>section.middle>div.container.clr{min-height: 180px !important;}",
  426. " div.wrapper_root>div.wrapper>section.middle>div.container.clr>div.content.bottom-content>section.items.items-tile.items-viewed{margin: 0!important;}",
  427. " div.wrapper_root>div.wrapper>section.middle>div.tabs.top-tabs.clr{margin-bottom: 0 !important;}"
  428. ].join("\n");
  429. if (false || (document.domain == "avito.ru" || document.domain.substring(document.domain.indexOf(".avito.ru") + 1) == "avito.ru"))
  430. css += " .bonprix-1{background: none !important;} ";
  431. if (false || (document.domain == "bash.im" || document.domain.substring(document.domain.indexOf(".bash.im") + 1) == "bash.im"))
  432. css += " span.csd{background:none !important;}";
  433. if (false || (document.domain == "best-cashback.ru" || document.domain.substring(document.domain.indexOf(".best-cashback.ru") + 1) == "best-cashback.ru"))
  434. css += [
  435. " [id=\"menu-osnovnoe-menyu\"]>[id^=\"menu-item-\"]>a.menu-item-link{color: black !important;}",
  436. " div#theme-page{top: 80px !important;}",
  437. " [class^=\"mk-header-\"]{background-color: lightgrey !important;}",
  438. " section#mk-footer{padding: 0 !important; top: 80px !important;}",
  439. " div#sub-footer{background-color: lightgrey !important;}"
  440. ].join("\n");
  441. if (false || (document.domain == "besplatnye-kupony.ru" || document.domain.substring(document.domain.indexOf(".besplatnye-kupony.ru") + 1) == "besplatnye-kupony.ru"))
  442. css += [
  443. " body{background: none !important; background-color: lightgrey !important;}",
  444. " div{width: inherit !important; margin: 0 !important;}",
  445. " div#site-container{border: none !important;}"
  446. ].join("\n");
  447. if (false || (document.domain == "bestrepack.net" || document.domain.substring(document.domain.indexOf(".bestrepack.net") + 1) == "bestrepack.net"))
  448. css += " div#body_container{padding: 0 !important;}";
  449. if (false || (document.domain == "bigpicture.ru" || document.domain.substring(document.domain.indexOf(".bigpicture.ru") + 1) == "bigpicture.ru"))
  450. css += [
  451. " div.content{padding: 0 !important;}",
  452. " div.podheader{width: 240px !important; float: right !important;}",
  453. " div.podheader-right{float: right !important;}"
  454. ].join("\n");
  455. if (false || (document.domain == "bookvoed.ru" || document.domain.substring(document.domain.indexOf(".bookvoed.ru") + 1) == "bookvoed.ru"))
  456. css += " .Fh{margin-top: 79px!important;}";
  457. if (false || (document.domain == "calend.ru" || document.domain.substring(document.domain.indexOf(".calend.ru") + 1) == "calend.ru"))
  458. css += " .pad, .main-l{width:95% !important;}";
  459. if (false || (document.domain == "clubupravdom.ru" || document.domain.substring(document.domain.indexOf(".clubupravdom.ru") + 1) == "clubupravdom.ru"))
  460. css += " *{background-image: none !important;}";
  461. if (false || (document.domain == "computerra.ru" || document.domain.substring(document.domain.indexOf(".computerra.ru") + 1) == "computerra.ru"))
  462. css += [
  463. " div.page.page-podl{padding-top: 0px!important;}",
  464. " div#under{width:auto!important;}",
  465. " a.link{font-weight:bold!important; font-family:Verdana!important;font-size: 12px!important;}",
  466. " div.column{max-width:80%!important;}"
  467. ].join("\n");
  468. if (false || (document.domain == "cont.ws" || document.domain.substring(document.domain.indexOf(".cont.ws") + 1) == "cont.ws"))
  469. css += [
  470. " body>div.content>div{margin: 0 inherit !important;}",
  471. " div.sidebar{width: 25% !important;}",
  472. " [class^="post"]{max-width: inherit !important; margin: 0 !important; padding: 0 !important;}",
  473. " div.post>[class^="article"]{padding: 0 !important;}",
  474. " div#wp.author-bar2.wallpaper.plus{background-image: url() !important; padding: 0 !important;}",
  475. " div.author-bar2-inside{padding: 0 !important;}",
  476. " a.m_author{display: inline-block !important;}",
  477. " .plus .author-bar2-inside{color: #666 !important;}",
  478. " div.dark{background: url() !important;}",
  479. " .wallpaper .author-bar2-inside, .wallpaper .author-bar2-inside a, .wallpaper .author-bar2-inside textarea {color: inherit !important;}"
  480. ].join("\n");
  481. if (false || (document.domain == "crowdin.com" || document.domain.substring(document.domain.indexOf(".crowdin.com") + 1) == "crowdin.com"))
  482. css += " #user-cover-picture,#user-cover-picture-blurred{background:url()!important;}";
  483. if (false || (document.domain == "cyberry.ru" || document.domain.substring(document.domain.indexOf(".cyberry.ru") + 1) == "cyberry.ru") || (document.domain == "f1-world.ru" || document.domain.substring(document.domain.indexOf(".f1-world.ru") + 1) == "f1-world.ru"))
  484. css += [
  485. "body{background:none !important;}",
  486. " td{background-image:none !important;}"
  487. ].join("\n");
  488. if (false || (document.domain == "ebay-forum.ru" || document.domain.substring(document.domain.indexOf(".ebay-forum.ru") + 1) == "ebay-forum.ru"))
  489. css += " .banner_ap{height:30px!important;} #search{margin:0 0 7px!important;} .header_effects{height:66px!important;} #branding{height:66px!important;min-height:66px!important;}";
  490. if (false || (document.domain == "f-page.ru" || document.domain.substring(document.domain.indexOf(".f-page.ru") + 1) == "f-page.ru") || (document.domain == "f-picture.net" || document.domain.substring(document.domain.indexOf(".f-picture.net") + 1) == "f-picture.net") || (document.domain == "radikal-foto.ru" || document.domain.substring(document.domain.indexOf(".radikal-foto.ru") + 1) == "radikal-foto.ru") || (document.domain == "letitbit.net" || document.domain.substring(document.domain.indexOf(".letitbit.net") + 1) == "letitbit.net") || (document.domain == "novafilm.tv" || document.domain.substring(document.domain.indexOf(".novafilm.tv") + 1) == "novafilm.tv") || (document.domain == "nowa.cc" || document.domain.substring(document.domain.indexOf(".nowa.cc") + 1) == "nowa.cc") || (document.domain == "radical-foto.ru" || document.domain.substring(document.domain.indexOf(".radical-foto.ru") + 1) == "radical-foto.ru") || (document.domain == "radikal.ru" || document.domain.substring(document.domain.indexOf(".radikal.ru") + 1) == "radikal.ru") || (document.domain == "radikal.cc" || document.domain.substring(document.domain.indexOf(".radikal.cc") + 1) == "radikal.cc") || (document.domain == "radical.cc" || document.domain.substring(document.domain.indexOf(".radical.cc") + 1) == "radical.cc") || (document.domain == "rghost.ru" || document.domain.substring(document.domain.indexOf(".rghost.ru") + 1) == "rghost.ru") || (document.domain == "voffka.com" || document.domain.substring(document.domain.indexOf(".voffka.com") + 1) == "voffka.com"))
  491. css += [
  492. "body{background:none !important;}",
  493. " body{background-image:none !important;}"
  494. ].join("\n");
  495. if (false || (document.domain == "ddlmkvhd.com" || document.domain.substring(document.domain.indexOf(".ddlmkvhd.com") + 1) == "ddlmkvhd.com"))
  496. css += [
  497. " body{background: none !important;}",
  498. " div.page-body-t{position: relative !important;}"
  499. ].join("\n");
  500. if (false || (document.domain == "ddlvillage.org" || document.domain.substring(document.domain.indexOf(".ddlvillage.org") + 1) == "ddlvillage.org"))
  501. css += [
  502. " div{background: none !important;}"
  503. ].join("\n");
  504. if (false || (document.domain == "f1news.ru" || document.domain.substring(document.domain.indexOf(".f1news.ru") + 1) == "f1news.ru"))
  505. css += [
  506. " div[id=\"bannerText\"]{border:0px!important;margin-left:10px!important;}",
  507. " body{background:url() top center no-repeat #000000 !important;}",
  508. // !! расширяем текстовое поле
  509. " div#textBlock{width:900px !important;}"
  510. ].join("\n");
  511. if (false || (document.domain == "facebook.com" || document.domain.substring(document.domain.indexOf(".facebook.com") + 1) == "facebook.com"))
  512. css += [
  513. " #contentArea {width: 750px !important;}",
  514. " .uiUfi {width: 650px !important;}",
  515. // !! " body {background:url(http://www.maxthon-fr.com/10ours/facebook/wb.jpg) fixed !important;}",
  516. // !! " #contentCol {background:url(http://www.maxthon-fr.com/10ours/facebook/wb.jpg) fixed !important;}",
  517. " div#profile_stream_composer {background-color:#C1D5F6;}",
  518. " #blueBar {background-color: transparent !important;}",
  519. " #headNav {background-color: #transparent !important;}",
  520. " .jewelButton {background-color: transparent !important;}",
  521. " #fbNotificationsFlyout {left: 50px !important;}",
  522. " .fbJewelFlyout {background-color: white;border-bottom: 1px solid #293E6A !important;border: solid;left: 0px;overflow: visible;position: absolute;top: 30px;width: 350px !important;z-index: -1;}",
  523. // !! " #pageNav a {color: #00ffff !important;display: inline-block;font-weight: bold;height: 22px;padding: 8px 10px 0px;text-decoration: none;}",
  524. " .UIImageBlock {color: #000000 !important;}",
  525. " .fcg {color: darkgreen !important;}",
  526. " .mts.uiAttachmentDesc.translationEligibleUserAttachmentMessage {color: black !important;}"
  527. ].join("\n");
  528. if (false || (document.domain == "fastpic.ru" || document.domain.substring(document.domain.indexOf(".fastpic.ru") + 1) == "fastpic.ru"))
  529. css += [
  530. "html,body,#mainContainer,#footerContainer,#content,#footer {margin:0!important;width:100%!important;border-radius:0!important}",
  531. " #mainContainer>table {width:850px!important;margin:auto!important}",
  532. " #picContainer {float:none!important;margin:auto!important}",
  533. " html,body {cursor:auto!important}",
  534. " html,body {height:100%!important;display:flex!important;flex-direction:column!important}",
  535. " #mainContainer {flex-grow:1!important}",
  536. " #mainContainer,#footerContainer {overflow:visible!important}",
  537. " #content {display:flex!important;flex-grow:1!important;min-height:auto!important}",
  538. //??
  539. " #logo-area{padding-top: 0px!important;}",
  540. " *{background:none !important;}",
  541. " *{background-image:none !important;}",
  542. " #footer-container {background-image:none!important;height:auto!important;}",
  543. " body > a {display:none!important;}",
  544. " div#show-code-content.rounded-corners{position: inherit!important;}",
  545. " div#foot-area.center.rounded-corners{position: inherit!important;}",
  546. " div#footer.center.rounded-corners{position: inherit!important;}",
  547. " .center {padding:0!important}",
  548. " div#right-bottom.rounded-corners{position: relative!important;margin-top:0px!important;height:0px!important;padding-top:5px!important;}",
  549. // !! всё - чёрным
  550. " *{color: black!important;}",
  551. " body{background: none!important;}"
  552. // " html {background-color:#171616!important;}"
  553. ].join("\n");
  554. if (false || (document.domain == "filmix.net" || document.domain.substring(document.domain.indexOf(".filmix.net") + 1) == "filmix.net"))
  555. css += " body{padding: 0px 0 0 0!important;}";
  556. if (false || (document.domain == "formulakino.ru" || document.domain.substring(document.domain.indexOf(".formulakino.ru") + 1) == "formulakino.ru"))
  557. css += [
  558. " div.backF>a>span{background-image:none !important; background:#fff !important;}",
  559. " div.vjs-poster{background:url()!important;}",
  560. " div.pagecontent{margin-top:0px!important;}",
  561. " div#wrapper{background:#fff!important;}"
  562. ].join("\n");
  563. if (false || (document.domain == "google.ru" || document.domain.substring(document.domain.indexOf(".google.ru") + 1) == "google.ru"))
  564. css += [
  565. " body[class=\"cP\"] tr td.Bu:last-child div.nH div.nH div.nH:first-child {position: fixed; right: 16px!important; top: 200px; padding: 5px 0px 10px 8px; border: 1px solid lightblue!important; width: 150px!important; background-color: #fff!important; opacity:0.5; border-bottom-left-radius: 10px; border-top-left-radius: 10px;}",
  566. " body[class=\"cP\"] tr td.Bu:last-child div.nH div.nH div.nH:first-child:hover {opacity:1;}",
  567. " body[class=\"cP\"] tr td.Bu:last-child div.nH {width: 0px!important;}",
  568. // ! расширяем выдачу в поиске
  569. " .center_col,#center_col {width:1000px!important; margin-left:10px !important; margin-right:10px !important;} .s {max-width:100% !important;}"
  570. ].join("\n");
  571. if (false || (document.domain == "igromania.ru" || document.domain.substring(document.domain.indexOf(".igromania.ru") + 1) == "igromania.ru"))
  572. css += [
  573. // !! " *{background-image: none !important;}",
  574. " div.out_out, element.style {background-image: url() !important;}"
  575. ].join("\n");
  576. if (false || (document.domain == "inosmi.ru" || document.domain.substring(document.domain.indexOf(".inosmi.ru") + 1) == "inosmi.ru"))
  577. css += [
  578. " body{background-image:none !important;}",
  579. " body{background:url()!important;}",
  580. // !! поаккуратнее
  581. " .header{padding-top:0px!important;}",
  582. " #addbwr{margin-top:0px!important;}",
  583. // !! расширяем (если не надо - закомментировать (поставить воскл.знаки // ! перед след. строками )
  584. " .mainbox{width:95%!important;}",
  585. " .section{width:100%!important;}",
  586. " .floatleft{width:80%!important;}",
  587. " .floatleft.box3row{width:50%!important;}",
  588. " .floatleft.box3row3{width:50%!important;}",
  589. " .bodypage{width:100%!important; }",
  590. " .floatright{width:10%!important;}",
  591. " .article{width:100%!important; }",
  592. " .announce{width:80%!important; }"
  593. ].join("\n");
  594. if (false || (document.domain == "keeplinks.eu" || document.domain.substring(document.domain.indexOf(".keeplinks.eu") + 1) == "keeplinks.eu"))
  595. css += " div#header{background: none !important;}";
  596. if (false || (document.domain == "letitfilms.com" || document.domain.substring(document.domain.indexOf(".letitfilms.com") + 1) == "letitfilms.com"))
  597. css += [
  598. " body{background: url() !important; background-color: black !important;}",
  599. " div#container{width: inherit !important; margin: 0 !important;}",
  600. " div#container>div#main>*{padding: 0 !important;}",
  601. " div#container>div#main>aside{width: 20% !important;}",
  602. " div#container>div#main>div#content{width: 79% !important;}"
  603. ].join("\n");
  604. if (false || (document.domain == "livesport.ws" || document.domain.substring(document.domain.indexOf(".livesport.ws") + 1) == "livesport.ws"))
  605. css += [
  606. // !! убираем фон и баннер
  607. " body {background:none!important;color:#333!important;}",
  608. " body{background:url()!important;background-color:#000002!important;}",
  609. " body,.top-panel-wrap.fixed {background-image:url() !important;}",
  610. " body{background-image:none !important;}",
  611. " div[id=\"flash\"]{height: 0px !important;}"
  612. ].join("\n");
  613. if (false || (document.domain == "lostfilm.tv" || document.domain.substring(document.domain.indexOf(".lostfilm.tv") + 1) == "lostfilm.tv"))
  614. css += [
  615. // " body{background:#c0c0c0 !important;}",
  616. " div>div>a>div[style\*=\"height\"] {display:none!important;}",
  617. // " .prof,.user_menu_link,.wh {color:white!important;}",
  618. " .prof,.logo {height:80px!important;}",
  619. " body{background:none!important;}",
  620. " body{background-image:none !important;}",
  621. " body{background:gray!important;}",
  622. " div[class=\"mid\"]{background:LightGrey!important;}",
  623. // !! ==== и меняем на читаемый цвет
  624. " div[class=\"user_avatar\"]{color:black !important;}",
  625. " span[class=\"wh\"]{color:black !important;}",
  626. " a[href*=\"\/my.php\"]{color:black !important;}",
  627. " a[href*=\"\/messages.php\"]{color:black !important;}",
  628. " a[href*=\"bogi.ru\/logout.php\"]{color:black !important;}",
  629. // !! расширяем полезную площадь
  630. " body>div#MainDiv>div[style^=\"width:1005px;\"]{margin-left:10px !important; width:100% !important;}",
  631. " div[style^=\"width:497px;\"]{width:58% !important;}",
  632. " body>div[style^=\"width:1005px;\"]{margin-left:10px !important; width:100% !important;}",
  633. " div[style^=\"width:498px;\"]{width:58% !important;}",
  634. " div[style*=\"background:#FFFFFF;display:block;padding:10px;float:left;overflow-x:hidden;width:350px;\"]{width:100% !important;}"
  635. ].join("\n");
  636. if (false || (document.domain == "mail.ru" || document.domain.substring(document.domain.indexOf(".mail.ru") + 1) == "mail.ru"))
  637. css += [
  638. " body,.forecast-rb-bg,.b-bg{background-image: none!important;}",
  639. " .SearchForm,.form,.txt1,.txt2,.txt3,.people1,.people2,.people3,.GRcorrect, .GRSpellingCorrect, .GRspelling {background: url('')!important;}"
  640. ].join("\n");
  641. if (false || (document.domain == "ncrypt.in" || document.domain.substring(document.domain.indexOf(".ncrypt.in") + 1) == "ncrypt.in"))
  642. css += [
  643. " body{background: none !important;}",
  644. " div#wrapper{margin: 0 0 0 0 !important;}"
  645. ].join("\n");
  646. if (false || (document.domain == "ok.ru" || document.domain.substring(document.domain.indexOf(".ok.ru") + 1) == "ok.ru") || (document.domain == "odnoklassniki.ru" || document.domain.substring(document.domain.indexOf(".odnoklassniki.ru") + 1) == "odnoklassniki.ru"))
  647. css += [
  648. // !! "div {background-image:none !important;}",
  649. // !! "div {background:url()!important;}",
  650. // !! "div[class^=\"prl_slide_\"] {background:url()!important;}"
  651. "div[class=\"anonym_login\"]{width: 100% !important;}"
  652. ].join("\n");
  653. if (false || (document.domain == "overclockers.ru" || document.domain.substring(document.domain.indexOf(".overclockers.ru") + 1) == "overclockers.ru"))
  654. css += [
  655. " #main{background:none!important;background:#FFF!important;}",
  656. " div[id=\"main\"]>div[id=\"adw\"]{height:0px!important;}",
  657. " div[id=\"main\"]>div[class=\"box1\"]{height:0px!important;}",
  658. " div[id=\"main\"]>div:nth-of-type(1){height:0px!important;}",
  659. " #mainplace>table>tbody>tr:first-child,.needblock {display:none!important;}",
  660. " #wrapper {width:100%!important;}",
  661. " #main {padding-top:0!important;}"
  662. ].join("\n");
  663. if (false || (document.domain == "playground.ru" || document.domain.substring(document.domain.indexOf(".playground.ru") + 1) == "playground.ru"))
  664. css += "#foundationWrapper {background:#373737!important}";
  665. if (false || (document.domain == "pikabu.ru" || document.domain.substring(document.domain.indexOf(".pikabu.ru") + 1) == "pikabu.ru"))
  666. css += [
  667. " div.paral>a>div{background:url()!important;}",
  668. " div.paral>a>div{height:64px!important;}",
  669. " table#header_t {margin-top: 0px !important;}",
  670. " \\!! расширяем полезную площадь",
  671. " .b-story__content, .b-story__content_type_text {margin-left:5px !important; width: 800px !important; max-width: 800px !important;}"
  672. ].join("\n");
  673. if (false || (document.domain == "piter.tv" || document.domain.substring(document.domain.indexOf(".piter.tv") + 1) == "piter.tv"))
  674. css += [
  675. " body{background-image:none !important;}"
  676. ].join("\n");
  677. if (false || (document.domain == "politikus.ru" || document.domain.substring(document.domain.indexOf(".politikus.ru") + 1) == "politikus.ru"))
  678. css += [
  679. " body{background-image:none !important;}",
  680. " body{background:url()!important;}",
  681. // !! расширяем (если не надо - закомментировать (поставить воскл.знаки // ! перед след.четырьмя строками )
  682. // " #main_content_holder{width:100%!important; }",
  683. // " #left{width:80%!important; }",
  684. // " .holder, div.block, .content, #dle-content{width:100% !important; }",
  685. // " .fullstory{width:95% !important; }"
  686. // !! доработанный вариант от Buba5473
  687. " div#header{width: inherit !important; margin: 0 !important;}",
  688. " div#header>div.holder{width: inherit !important; margin: 0 !important;}",
  689. " div#main_content_holder{width: inherit !important; margin: 0 !important;}",
  690. " div#main_content_holder>div#maintpl>div.holder{width: inherit !important; margin: 0 !important;}",
  691. " div#main_footer_holder{width: inherit !important; margin: 0 !important;}",
  692. " div#main_footer_holder>div.holder{width: inherit !important; margin: 0 !important;}",
  693. " div#main_content{margin: 0 !important;}",
  694. " div#right{margin: 0 !important; float: none !important; width: inherit !important;}",
  695. " div#left{width: 80% !important;}"
  696. ].join("\n");
  697. if (false || (document.domain == "pikabu.ru" || document.domain.substring(document.domain.indexOf(".pikabu.ru") + 1) == "pikabu.ru"))
  698. css += [
  699. "div.paral>a>div{background:url()!important;}",
  700. " div.paral>a>div{height:64px!important;}",
  701. " table#header_t {margin-top: 0px !important;}"
  702. ].join("\n");
  703. if (false || (document.domain == "pleer.com" || document.domain.substring(document.domain.indexOf(".pleer.com") + 1) == "pleer.com"))
  704. css += [
  705. " div#main.clearfix>div#container>div#content{margin: 0 !important;}",
  706. " div#container>div#content>div.clearfix:nth-child(3)>div.results>div.clearfix:nth-child(2)>div.results>div.index-cols.clearfix>div.index-col1{width: 68% !important;}",
  707. " div#container>div#content>div.clearfix:nth-child(3)>div.results>div.clearfix:nth-child(2)>div.results>div.index-cols.clearfix>div.index-col2{width: 32% !important;}"
  708. ].join("\n");
  709. if (false || (document.domain == "f-page.ru" || document.domain.substring(document.domain.indexOf(".f-page.ru") + 1) == "f-page.ru") || (document.domain == "f-picture.net" || document.domain.substring(document.domain.indexOf(".f-picture.net") + 1) == "f-picture.net") || (document.domain == "radikal-foto.ru" || document.domain.substring(document.domain.indexOf(".radikal-foto.ru") + 1) == "radikal-foto.ru") || (document.domain == "radical-foto.ru" || document.domain.substring(document.domain.indexOf(".radical-foto.ru") + 1) == "radical-foto.ru") || (document.domain == "radikal.ru" || document.domain.substring(document.domain.indexOf(".radikal.ru") + 1) == "radikal.ru") || (document.domain == "radikal.cc" || document.domain.substring(document.domain.indexOf(".radikal.cc") + 1) == "radikal.cc"))
  710. css += [
  711. " .brand_bg{background-image:none !important;}",
  712. " .base-page_wrapper {width:auto!important; padding:0!important}",
  713. " .content{padding-top:0px !important;}"
  714. ].join("\n");
  715. if (false || (document.domain == "rambler.ru" || document.domain.substring(document.domain.indexOf(".rambler.ru") + 1) == "rambler.ru"))
  716. css += [
  717. ".b-left-column .b-left-column__wrapper{margin:0 !important;}",
  718. " div[class=\"appWindow\"]{right:0px!important;}"
  719. ].join("\n");
  720. if (false || (document.domain == "rbc.ru" || document.domain.substring(document.domain.indexOf(".rbc.ru") + 1) == "rbc.ru"))
  721. css += " .article__content {margin-right: 0px !important;}";
  722. if (false || (document.domain == "riper.am" || document.domain.substring(document.domain.indexOf(".riper.am") + 1) == "riper.am"))
  723. css += [
  724. "#octo-set{background-image:none!important;padding-top:0!important;}",
  725. " #main-wrapper{width:auto!important;}",
  726. " body{background-image: none!important;} ",
  727. " body{background:none!important;}",
  728. " #main-wrapper{top:10px!important;}",
  729. // !! cкрыть заголовок
  730. " #logo {padding: 0px 0px 0 0px!important;} #search-box {margin-top:0px!important; height: 20px!important; top:-15px!important;padding-right: 120px!important;} div.headerbar{background-color: rgb(255, 255, 255)!important; height: 0px!important;}"
  731. ].join("\n");
  732. if (false || (document.domain == "rusfolder.com" || document.domain.substring(document.domain.indexOf(".rusfolder.com") + 1) == "rusfolder.com") || (document.domain == "rusfolder.net" || document.domain.substring(document.domain.indexOf(".rusfolder.net") + 1) == "rusfolder.net") || (document.domain == "rusfolder.ru" || document.domain.substring(document.domain.indexOf(".rusfolder.ru") + 1) == "rusfolder.ru"))
  733. css += [
  734. "*{background:none!important;}",
  735. " *{background:url('')!important;}",
  736. " *{background:silver!important; color:black!important;}",
  737. " div#header{height:60px!important;} span{color:black!important;background:silver!important;border:1px solid gray!important;} input[type=\"checkbox\"]{color:black!important; visibility: visible!important; }"
  738. ].join("\n");
  739. if (false || (document.domain == "ruspravda.info" || document.domain.substring(document.domain.indexOf(".ruspravda.info") + 1) == "ruspravda.info"))
  740. css += [
  741. "body{background:white!important;}",
  742. " table#header_t {margin-top: 0px !important;}"
  743. ].join("\n");
  744. if (false || (document.domain == "rustorka.com" || document.domain.substring(document.domain.indexOf(".rustorka.com") + 1) == "rustorka.com"))
  745. css += " .topmenu{margin-top:25px !important;}";
  746. if (false || (document.domain == "rutor.org" || document.domain.substring(document.domain.indexOf(".rutor.org") + 1) == "rutor.org") || (document.domain == "new-rutor.org" || document.domain.substring(document.domain.indexOf(".new-rutor.org") + 1) == "new-rutor.org") || (document.domain == "xrutor.org" || document.domain.substring(document.domain.indexOf(".xrutor.org") + 1) == "xrutor.org") || (document.domain == "free-rutor.org" || document.domain.substring(document.domain.indexOf(".free-rutor.org") + 1) == "free-rutor.org") || (document.domain == "rutor.info" || document.domain.substring(document.domain.indexOf(".rutor.info") + 1) == "rutor.info") || (document.domain == "rutor.is" || document.domain.substring(document.domain.indexOf(".rutor.is") + 1) == "rutor.is") || (document.domain == "krutor.org" || document.domain.substring(document.domain.indexOf(".krutor.org") + 1) == "krutor.org"))
  747. css += [
  748. // !! оформление от zuefhrf
  749. " div#brTop {background-image: url(\" \") !important;}",
  750. " div#ws div#sidebar{top: 0px !important;}",
  751. " div#ws div#sidebar{right: 8px !important;}",
  752. " div#ws div#sidebar div.sideblock{margin-top: 0px !important;}",
  753. " div#ws div#content{right: 6px !important;}",
  754. " h3{text-align: left !important;}"
  755. ].join("\n");
  756. if (false || (document.domain == "safety-gate.me" || document.domain.substring(document.domain.indexOf(".safety-gate.me") + 1) == "safety-gate.me"))
  757. css += [
  758. // ! !! --- широко
  759. " .main,.main-wrap,.header,.header-main{width:100%!important;}",
  760. " div.all,div.all-wrap,.pageWidth{max-width:100%!important;width:100%!important;}",
  761. " article,.header,.header-main{width:100%!important;}",
  762. " .xbBoxed,.pageContent{max-width:100%!important;}",
  763. " div.content{width:80%!important;}div.sidebar1{width:18%!important;}"
  764. ].join("\n");
  765. if (false || (document.domain == "samlab.ws" || document.domain.substring(document.domain.indexOf(".samlab.ws") + 1) == "samlab.ws"))
  766. css += [
  767. "div.box.main {width: auto; !important;}",
  768. " div#right {width: 2px; !important;}"
  769. ].join("\n");
  770. if (false || (document.domain == "samlib.ru" || document.domain.substring(document.domain.indexOf(".samlib.ru") + 1) == "samlib.ru"))
  771. css += [
  772. "body {font-family: sans-serif !important;line-height: 140% !important;color: #B2B2B2 !important;background: #3A3E46 !important;}",
  773. " font {color: #B2B2B2 !important;}",
  774. " table, td, td font {color: #BEBEBE !important;background-color: #555C66 !important;}",
  775. " a:link {color: #9DD7FF !important;}",
  776. " a:visited {color: #EAB6FF !important;}",
  777. " a:hover {color: #F0B2B2 !important;}",
  778. " dl {margin-top: 1em !important;}"
  779. ].join("\n");
  780. if (false || (document.domain == "securitylab.ru" || document.domain.substring(document.domain.indexOf(".securitylab.ru") + 1) == "securitylab.ru"))
  781. css += [
  782. " #content #left{margin-left: 0px!important;max-width: 1000px!important;}",
  783. // !! логотип
  784. " div#header{height:00px!important;background-color:white!important;} div#MAIN_MENU{top:0px!important;}"
  785. ].join("\n");
  786. if (false || (document.domain == "sportbox.ru" || document.domain.substring(document.domain.indexOf(".sportbox.ru") + 1) == "sportbox.ru"))
  787. css += [
  788. " body{background:none!important;padding-top: 0px!important;}",
  789. " .sb_c_topmed_olymp, .gold, .silver, .bronze {background:none!important;}"
  790. ].join("\n");
  791. if (false || (document.domain == "sports.ru" || document.domain.substring(document.domain.indexOf(".sports.ru") + 1) == "sports.ru"))
  792. css += [
  793. " body.img-bg,#branding-layout {background:gray!important;}",
  794. " body.img-bg,#branding-layout {padding-top:0!important;}",
  795. " .kaspersky, .overall {background:none!important;}",
  796. " .kaspersky, .pageLayout {top: 0px!important;}"
  797. ].join("\n");
  798. if (false || (document.domain == "tfile.me" || document.domain.substring(document.domain.indexOf(".tfile.me") + 1) == "tfile.me"))
  799. css += [
  800. " body{background:url()!important;}",
  801. " body{background-image: none !important;}",
  802. " div#brTop{background-image:url(\'\') !important;}",
  803. " element.style{background:url()!important;}",
  804. " element.style, #skin_crown{background-image:url()!important;}",
  805. " body{background:#D4D4D4 !important;}",
  806. " body{padding:0 !important;}",
  807. " table#home_c{width: inherit !important;}",
  808. " [id^=\"top_\"]{width: inherit !important;}",
  809. " body{padding-top:0px !important;}",
  810. // !! расширяем
  811. " #table_reduser, #head, #foot_links{width:98% !important;}",
  812. " #top_tools {padding-left:0!important}"
  813. ].join("\n");
  814. if (false || (document.domain == "torrent-tv.ru" || document.domain.substring(document.domain.indexOf(".torrent-tv.ru") + 1) == "torrent-tv.ru"))
  815. css += [
  816. " body {background-image:none!important;padding-top: 0px!important;}",
  817. " div#main-wrapper {top:auto!important;}",
  818. " div.news-text {width:auto!important;}",
  819. " div[class^=\"usual-header\"] {width:126%!important;}",
  820. " div[class=\"usual\"] {width:132%!important;}",
  821. " div[class^=\"usual-content\"] {width:99%!important;}"
  822. // !!
  823. // !! " body>div:nth-of-type(1) {background:url()!important;}",
  824. // !! " body {background:gray!important;}",
  825. ].join("\n");
  826. if (false || (document.domain == "turbobit.net" || document.domain.substring(document.domain.indexOf(".turbobit.net") + 1) == "turbobit.net"))
  827. css += " html {background:none!important;}";
  828. if (false || (document.domain == "velolive.com" || document.domain.substring(document.domain.indexOf(".velolive.com") + 1) == "velolive.com"))
  829. css += " body {background:url() !important;}";
  830. if (false || (document.domain == "vesti.ru" || document.domain.substring(document.domain.indexOf(".vesti.ru") + 1) == "vesti.ru"))
  831. css += [
  832. " .bottom_bg {background: none !important;}",
  833. " body, .head, .all_wrap {background: url(\" \") !important;}"
  834. ].join("\n");
  835. if (false || (document.domain == "vipfiles.nu" || document.domain.substring(document.domain.indexOf(".vipfiles.nu") + 1) == "vipfiles.nu"))
  836. css += [
  837. " div.loginformbox{background: none !important;}",
  838. " div.tophhhhheader{background: none !important; padding: 0 !important; height: 75px !important;}",
  839. " div.tophhhhheader>div.item1{height: 10px !important;}",
  840. " div.tophhhhheader>div.item2{float: left !important; width: 500px !important;}",
  841. " div.wrapper{margin: 0 !important; width: inherit !important;}",
  842. " div.wrapwide.topheadwide{background: none !important;}"
  843. ].join("\n");
  844. if (false || (document.domain == "dns-shop.ru" || document.domain.substring(document.domain.indexOf(".dns-shop.ru") + 1) == "dns-shop.ru"))
  845. css += " div.wrapper{width: auto !important;}";
  846. if (false || (document.domain == "yaplakal.com" || document.domain.substring(document.domain.indexOf(".yaplakal.com") + 1) == "yaplakal.com"))
  847. css += [
  848. " body{background:none !important;}",
  849. " #footer{background:url()!important;}",
  850. " #footer{background-image:none !important;}",
  851. " #footer,#top-line {background:none!important;padding:0!important;}",
  852. " #header,#footer {background-color:skyblue!important;}",
  853. " #content{max-width:none !important;}"
  854. ].join("\n");
  855. if (false || (document.domain == "zaycev.net" || document.domain.substring(document.domain.indexOf(".zaycev.net") + 1) == "zaycev.net"))
  856. css += [
  857. " div[class=\"body-branding\"]{background:grey!important; padding-top: 0px!important; padding: 5px!important;}",
  858. " div[class=\"body-gaps\"]{max-width:100%!important;}"
  859. ].join("\n");
  860. if (false || (document.domain == "zalil.su" || document.domain.substring(document.domain.indexOf(".zalil.su") + 1) == "zalil.su"))
  861. css += [
  862. " body{background:none !important;}",
  863. " body{background-color:gray !important;}",
  864. " body{background-image:none !important;}"
  865. ].join("\n");
  866. if (false || (document.domain == "taker.im" || document.domain.substring(document.domain.indexOf(".taker.im") + 1) == "taker.im"))
  867. css += [
  868. // !! скрываем рекламные ссылки (СПАМ) в тексте
  869. " a[href^=\"/phpBB2/goto/http://www.ebay.com/sch/\"][rel=\"nofollow\"]{color:#333!important; text-decoration: none !important; pointer-events: none !important;}"
  870. ].join("\n");
  871. if (typeof GM_addStyle != "undefined") {
  872. GM_addStyle(css);
  873. } else if (typeof PRO_addStyle != "undefined") {
  874. PRO_addStyle(css);
  875. } else if (typeof addStyle != "undefined") {
  876. addStyle(css);
  877. } else {
  878. var node = document.createElement("style");
  879. node.type = "text/css";
  880. node.appendChild(document.createTextNode(css));
  881. var heads = document.getElementsByTagName("head");
  882. if (heads.length > 0) {
  883. heads[0].appendChild(node);
  884. } else {
  885. // no head yet, stick it whereever
  886. document.documentElement.appendChild(node);
  887. }
  888. }
  889. }());
  890.  
  891. // позаимствовано у lainverse (https://greasyfork.org/ru/scripts/809-no-yandex-ads)
  892. // Удаляет рекламу из поиска Яндекс
  893. (function(){
  894. var lct = location.href;
  895. if(lct.match(/^https?:\/\/(news\.yandex\.|yandex\.[^\/]+\/(yand)?search[\/?])/)) {
  896. // Generic ads removal
  897. (function(s){
  898. for (var l = 0; l < s.length; l++) s[l].parentNode.removeChild(s[l]);
  899. })(document.querySelectorAll('.serp-adv,.b-spec-adv,#adbanner,.footer_distro_yes'));
  900. // Search ads
  901. function removeAds() {
  902. var s = document.querySelectorAll('.serp-block,.search-item');
  903. for (var l = 0; l < s.length; l++) {
  904. var i = s[l].querySelector('.serp-item__label,.label,.document__provider-name');
  905. if (!i) continue;
  906. if (i.textContent.indexOf('Реклама') > -1 || i.textContent.indexOf('Яндекс.Директ') > -1)
  907. s[l].parentNode.removeChild(s[l]);
  908. }
  909. }
  910. // News ads
  911. function removeNewsAds() {
  912. var s = document.querySelectorAll('.story[id],.story__group[id],.document[id]');
  913. for (var l = 0; l < s.length; l++){
  914. if (window.getComputedStyle(s[l]).position === 'absolute')
  915. s[l].parentNode.removeChild(s[l]);
  916. if ((window.getComputedStyle(s[l]).min-width === '0') || (window.getComputedStyle(s[l]).max-width === '100%'))
  917. s[l].parentNode.removeChild(s[l]);
  918. }
  919. }
  920. // Attaches observer to the page elements which Yandex updates via AJAX to display new search or news results
  921. function pageUpdateObserver(func, obj) {
  922. if (obj)
  923. new MutationObserver(func).observe(obj,{childList:true});
  924. }
  925. if (window.location.hostname.search(/^news\./i) === 0) {
  926. pageUpdateObserver(removeNewsAds, document.querySelector('BODY'));
  927. removeNewsAds();
  928. } else {
  929. pageUpdateObserver(removeAds, document.querySelector('.main__content'));
  930. removeAds();
  931. }
  932. }
  933. }());
  934. // Удаляет рекламу из вконтакта
  935. (function(){
  936. var lct = location.href;
  937. if(lct.match(/^https?:\/\/(.*\.)?(vkontakte\.ru|vk\.com)\/.*/)) {
  938. // Generic ads removal
  939. (function(s){
  940. for (var l = 0; l < s.length; l++) s[l].parentNode.removeChild(s[l]);
  941. })(document.querySelectorAll('#left_ads,.ads_ads_box,.ads_ads_all_ads,.ads_ad_box2,.ads_ad_box3,.ads_ad_box4,.ads_ad_box5,.ads_ad_box6,.ads_ad_box7,.ads_ad_box8,.ads_ad_text_box'));
  942. }
  943. }());
  944. }());