RU Max4_ABP_Fix CSS

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

当前为 2015-09-05 提交的版本,查看 最新版本

  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-start
  9. // @version 0.20150905050022
  10. // @grant GM_addStyle
  11. // ==/UserScript==
  12. (function() {var css = "";
  13. css += [
  14. "@namespace url(http://www.w3.org/1999/xhtml);",
  15. "",
  16. "/* Фильтры фоновых картинок */"
  17. ].join("\n");
  18. if (false || (document.domain == "ru-board.com" || document.domain.substring(document.domain.indexOf(".ru-board.com") + 1) == "ru-board.com"))
  19. css += [
  20. // правка структуры Ru-Board
  21. "span.dats{position:relative!important;top: 10px!important;}",
  22. // !! скрываем рекламные ссылки (СПАМ) в сообщениях
  23. " a[href^=\"http://forum.ru-board.com/\"][href$=\"/\"][target=\"_blank\"]{color:#333!important; text-decoration: none !important; pointer-events: none !important;}"
  24. // !! ======= ПРАВКА СТРУКТУРЫ. вынесено в отдельный скрипт. См. Ru-Board_Extrim_Max4_ABP_Fix-CSS =======
  25. ].join("\n");
  26. 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 == "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 == "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"))
  27. css += " html, html>body {background-image:none!important;}";
  28. 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 == "virusinfo.info" || document.domain.substring(document.domain.indexOf(".virusinfo.info") + 1) == "virusinfo.info"))
  29. css += " body {padding-top:0!important;}";
  30. 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"))
  31. css += " html>body {padding:0!important;}";
  32. if (false || (document.domain == "101.ru" || document.domain.substring(document.domain.indexOf(".101.ru") + 1) == "101.ru"))
  33. css += " #layout {background:none!important;}";
  34. 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"))
  35. css += [
  36. "TD[height=\"70\"][style],#user2s[height=\"71\"],",
  37. " #userlinks[height=\"70\"] {display:none!important;}"
  38. ].join("\n");
  39. if (false || (document.domain == "4pda.ru" || document.domain.substring(document.domain.indexOf(".4pda.ru") + 1) == "4pda.ru"))
  40. css += [
  41. " #main {background-image:none!important; padding: 0 !important;}",
  42. " .brand-page {visibility:hidden!important;height:0!important;}",
  43. " div#main>div.holder.no-hidden{padding: 0 !important; width: inherit !important;}",
  44. " article#content{width: 920px !important;}"
  45. ].join("\n");
  46. if (false || (document.domain == "adultmult.tv" || document.domain.substring(document.domain.indexOf(".adultmult.tv") + 1) == "adultmult.tv"))
  47. css += ".adsbygoogle,#aswift_0_expand {display:none!important;}";
  48. if (false || (document.domain == "afisha.ru" || document.domain.substring(document.domain.indexOf(".afisha.ru") + 1) == "afisha.ru"))
  49. css += [
  50. ".page_block_content {width:100%!important;}",
  51. " .page_block_adv {background:none!important;}"
  52. ].join("\n");
  53. if (false || (document.domain == "ag.ru" || document.domain.substring(document.domain.indexOf(".ag.ru") + 1) == "ag.ru"))
  54. css += " #new_logo_helper01 {top:0!important;}";
  55. if (false || (document.domain == "all-episodes.com" || document.domain.substring(document.domain.indexOf(".all-episodes.com") + 1) == "all-episodes.com"))
  56. css += " .wrapper {top:0!important;}";
  57. if (false || (document.domain == "aliexpress.com" || document.domain.substring(document.domain.indexOf(".aliexpress.com") + 1) == "aliexpress.com"))
  58. css += [
  59. " div.categories-main{ display: inline-block !important; width:auto !important; } dl.cl-item{display: inline-block !important;}",
  60. " div.index-page>div.user-helper-footer{position: relative !important; top: 120px !important; padding: 0 !important;}",
  61. " div.index-page>div.site-footer{position: relative !important; top: 120px !important; margin: 0 !important; padding: 0 !important;}",
  62. " div.index-page>div.footer-copywrite{position: relative !important; top: 120px !important;}",
  63. " div.index-page{height: inherit !important;}"
  64. ].join("\n");
  65. if (false || (document.domain == "animevost.org" || document.domain.substring(document.domain.indexOf(".animevost.org") + 1) == "animevost.org"))
  66. css += [
  67. "div[class^=\"headbg\"] {background-image:none!important;height:auto!important;}",
  68. " div[class^=\"headbg\"] > .menu {top:0px!important;}",
  69. " div[class^=\"headbg\"] > .menu .sar {bottom:auto!important;top:50px!important;z-index:100!important;}"
  70. ].join("\n");
  71. if (false || (document.domain == "anistar.ru" || document.domain.substring(document.domain.indexOf(".anistar.ru") + 1) == "anistar.ru"))
  72. css += [
  73. "body > .clear + div:not(.main),.news-fixed {display:none!important;}",
  74. " .wrapper.width1200 {margin-top:0}",
  75. " .drowmenu {z-index:1001}"
  76. ].join("\n");
  77. if (false || (document.domain == "anti-malware.ru" || document.domain.substring(document.domain.indexOf(".anti-malware.ru") + 1) == "anti-malware.ru"))
  78. css += "#header-bg-enf {margin-top:0!important;}";
  79. if (false || (document.domain == "bestpersons.ru" || document.domain.substring(document.domain.indexOf(".bestpersons.ru") + 1) == "bestpersons.ru"))
  80. css += [
  81. "/* Fx compat fix */",
  82. " #userTabs {float:none!important;}"
  83. ].join("\n");
  84. if (false || (document.domain == "binmovie.org" || document.domain.substring(document.domain.indexOf(".binmovie.org") + 1) == "binmovie.org"))
  85. css += " #content {top:0!important;left:0!important;width:100%!important;margin-left:0!important;}";
  86. if (false || (document.domain == "bvedomosti.ru" || document.domain.substring(document.domain.indexOf(".bvedomosti.ru") + 1) == "bvedomosti.ru"))
  87. css += [
  88. ".art-Header {display:none!important;}",
  89. " #art-main {background-image:none!important;}",
  90. " .bg-top-menu {top:0!important;}"
  91. ].join("\n");
  92. if (false || (document.domain == "carambatv.ru" || document.domain.substring(document.domain.indexOf(".carambatv.ru") + 1) == "carambatv.ru"))
  93. css += " .content {background:none!important;padding:0!important;}";
  94. if (false || (document.domain == "cars.ru" || document.domain.substring(document.domain.indexOf(".cars.ru") + 1) == "cars.ru"))
  95. css += [
  96. "#main {margin-top:0!important;}",
  97. " A[href*=\"/adclick.php?bannerid=\"] {display:none!important;}"
  98. ].join("\n");
  99. if (false || (document.domain == "chatovod.ru" || document.domain.substring(document.domain.indexOf(".chatovod.ru") + 1) == "chatovod.ru"))
  100. css += [
  101. "html > body .chat.withAEvents .chatPeople {bottom:0!important;}",
  102. " #devents {position: fixed!important;top:-9999px!important;}"
  103. ].join("\n");
  104. if (false || (document.domain == "dota2.ru" || document.domain.substring(document.domain.indexOf(".dota2.ru") + 1) == "dota2.ru"))
  105. css += " body {background:black!important;}";
  106. if (false || (document.domain == "drive.ru" || document.domain.substring(document.domain.indexOf(".drive.ru") + 1) == "drive.ru"))
  107. css += "body>div {background:none!important;padding-top:0!important;}";
  108. if (false || (document.domain == "epravda.com.ua" || document.domain.substring(document.domain.indexOf(".epravda.com.ua") + 1) == "epravda.com.ua"))
  109. css += [
  110. " body {cursor:auto!important;}",
  111. " body>div[align=\"center\"] {width:auto!important;margin:0!important;}"
  112. ].join("\n");
  113. if (false || (document.domain == "firepic.org" || document.domain.substring(document.domain.indexOf(".firepic.org") + 1) == "firepic.org"))
  114. css += [
  115. "body {padding:0!important;background-image:none!important;}",
  116. " .container,.row {max-width:none!important;}",
  117. " .container {width:100%!important;}",
  118. " .row {padding:30px!important;margin:0px!important;}",
  119. " .span12 {clear:both}"
  120. ].join("\n");
  121. if (false || (document.domain == "fishki.net" || document.domain.substring(document.domain.indexOf(".fishki.net") + 1) == "fishki.net"))
  122. css += "#container {cursor:auto!important;}";
  123. if (false || (document.domain == "free-torrents.org" || document.domain.substring(document.domain.indexOf(".free-torrents.org") + 1) == "free-torrents.org"))
  124. css += [
  125. "#sidebar2 {padding-top:0!important;}",
  126. " #main-wrapper {width:100%!important;top:0!important;}"
  127. ].join("\n");
  128. if (false || (document.domain == "gamebomb.ru" || document.domain.substring(document.domain.indexOf(".gamebomb.ru") + 1) == "gamebomb.ru"))
  129. css += [
  130. "#ssdfsd,.dfgdjkfgh{background-image:none!important;}",
  131. " #content{padding-top:0!important;margin-top:0!important;}"
  132. ].join("\n");
  133. if (false || (document.domain == "gamer-info.com" || document.domain.substring(document.domain.indexOf(".gamer-info.com") + 1) == "gamer-info.com"))
  134. css += "#all-content-container {padding:0!important;}";
  135. if (false || (document.domain == "gidonline.club" || document.domain.substring(document.domain.indexOf(".gidonline.club") + 1) == "gidonline.club"))
  136. css += "#headerline {margin-top:0!important;}";
  137. if (false || (document.domain == "gidonlinekino.com" || document.domain.substring(document.domain.indexOf(".gidonlinekino.com") + 1) == "gidonlinekino.com"))
  138. css += " #headerline {margin-top:0!important;}";
  139. if (false || (document.domain == "goclips.tv" || document.domain.substring(document.domain.indexOf(".goclips.tv") + 1) == "goclips.tv"))
  140. css += " .video_content {height:auto!important;}";
  141. if (false || (document.domain == "goha.ru" || document.domain.substring(document.domain.indexOf(".goha.ru") + 1) == "goha.ru"))
  142. css += [
  143. "#full-brand-footer>div[style*=\"fixed\"], #head-tuppy>a {display:none!important;}",
  144. " #full-brand {background-image:none!important;}",
  145. " #head-tuppy {height: 7px!important;}"
  146. ].join("\n");
  147. if (false || (document.domain == "gotps3.ru" || document.domain.substring(document.domain.indexOf(".gotps3.ru") + 1) == "gotps3.ru"))
  148. css += "#Page {margin-top:0!important;}";
  149. if (false || (document.domain == "gstv.ru" || document.domain.substring(document.domain.indexOf(".gstv.ru") + 1) == "gstv.ru"))
  150. css += ".page-content {margin-top:0!important;}";
  151. if (false || (document.domain == "hdfilms.tv" || document.domain.substring(document.domain.indexOf(".hdfilms.tv") + 1) == "hdfilms.tv"))
  152. css += " #subheader{padding-top:1px!important;}";
  153. if (false || (document.domain == "hi-tech.mail.ru" || document.domain.substring(document.domain.indexOf(".hi-tech.mail.ru") + 1) == "hi-tech.mail.ru"))
  154. css += "#portal-menu, .header-banner {margin:0!important;}";
  155. if (false || (document.domain == "iphones.ru" || document.domain.substring(document.domain.indexOf(".iphones.ru") + 1) == "iphones.ru"))
  156. css += [
  157. "#wrap {filter:none!important;}",
  158. " body > div[style^=\"background-color:\"] {display:none!important;}"
  159. ].join("\n");
  160. if (false || (document.domain == "kino-dom.tv" || document.domain.substring(document.domain.indexOf(".kino-dom.tv") + 1) == "kino-dom.tv"))
  161. css += " #main {width: auto!important;}";
  162. if (false || (document.domain == "kinobel.by" || document.domain.substring(document.domain.indexOf(".kinobel.by") + 1) == "kinobel.by"))
  163. css += ".bg-site {padding-top:0!important;}";
  164. if (false || (document.domain == "kinopoisk.ru" || document.domain.substring(document.domain.indexOf(".kinopoisk.ru") + 1) == "kinopoisk.ru"))
  165. css += [
  166. " body{background:none!important;}",
  167. " body{background:#C0C0C0!important;}",
  168. " html[style] {background-image: url()!important;}",
  169. " #top .png_block, #GoUpClickZone{background:url() !important;}",
  170. " #top {height:100px!important;}",
  171. " .master {top:1px!important;}",
  172. " .menu {top:1px!important;}",
  173. // !! выравниваем секцию поиск:
  174. " #top_form {top: 2px!important;}",
  175. " #top .png_block {top: 2px!important;}"
  176. ].join("\n");
  177. if (false || (document.domain == "kinotochka.net" || document.domain.substring(document.domain.indexOf(".kinotochka.net") + 1) == "kinotochka.net"))
  178. css += " .LogoSearchForm {margin-top:80px!important;}";
  179. if (false || (document.domain == "kinozadrot.net" || document.domain.substring(document.domain.indexOf(".kinozadrot.net") + 1) == "kinozadrot.net"))
  180. css += " body.brending {padding-top:180px!important;}";
  181. if (false || (document.domain == "krasview.ru" || document.domain.substring(document.domain.indexOf(".krasview.ru") + 1) == "krasview.ru"))
  182. css += " #dynamic-content{margin-top:0!important;}";
  183. if (false || (document.domain == "lostfilm.tv" || document.domain.substring(document.domain.indexOf(".lostfilm.tv") + 1) == "lostfilm.tv"))
  184. css += [
  185. "body{background:#c0c0c0!important;}",
  186. " div>div>a>div[style*=\"height\"] {display:none!important;}",
  187. " .prof,.user_menu_link,.wh {color:white!important;}",
  188. " .prof,.logo {height:80px!important;}"
  189. ].join("\n");
  190. 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"))
  191. css += " .b-branding__wrap {padding:0!important;}";
  192. if (false || (document.domain == "my-cinema.net" || document.domain.substring(document.domain.indexOf(".my-cinema.net") + 1) == "my-cinema.net"))
  193. css += " #main-wrapper {top:0!important;}";
  194. if (false || (document.domain == "noob-club.ru" || document.domain.substring(document.domain.indexOf(".noob-club.ru") + 1) == "noob-club.ru"))
  195. css += "#header-new {margin-bottom:0!important;}";
  196. if (false || (document.domain == "online.anidub.com" || document.domain.substring(document.domain.indexOf(".online.anidub.com") + 1) == "online.anidub.com"))
  197. css += " .background {background:none!important;}";
  198. if (false || (document.domain == "overclockers.ru" || document.domain.substring(document.domain.indexOf(".overclockers.ru") + 1) == "overclockers.ru"))
  199. css += [
  200. "#mainplace>table>tbody>tr:first-child,.needblock {display:none!important;}",
  201. " #wrapper {width:100%!important;}",
  202. " #main {padding-top:0!important;}"
  203. ].join("\n");
  204. if (false || (document.domain == "pogoda.mail.ru" || document.domain.substring(document.domain.indexOf(".pogoda.mail.ru") + 1) == "pogoda.mail.ru"))
  205. css += " .forecast-rb-bg {background-image:none!important;}";
  206. if (false || (document.domain == "politobzor.net" || document.domain.substring(document.domain.indexOf(".politobzor.net") + 1) == "politobzor.net"))
  207. css += " .banner {height:90px!important;}";
  208. if (false || (document.domain == "popmech.ru" || document.domain.substring(document.domain.indexOf(".popmech.ru") + 1) == "popmech.ru"))
  209. css += " .header__brand {margin-top:0!important;}";
  210. if (false || (document.domain == "povarenok.ru" || document.domain.substring(document.domain.indexOf(".povarenok.ru") + 1) == "povarenok.ru"))
  211. css += [
  212. ".car_content {margin:0!important;width:100%!important;}",
  213. " .car_recept {width:97%!important;}",
  214. " .cont_head, .cont_mid, .car_footer {background:none!important;}",
  215. " .car_header, .petushok, .cont_foot {display:none!important;}"
  216. ].join("\n");
  217. if (false || (document.domain == "promodj.com" || document.domain.substring(document.domain.indexOf(".promodj.com") + 1) == "promodj.com"))
  218. css += " #topbrandingspot {padding-top:0!important;}";
  219. if (false || (document.domain == "riotpixels.com" || document.domain.substring(document.domain.indexOf(".riotpixels.com") + 1) == "riotpixels.com"))
  220. css += [
  221. "body {background-image:none!important;}",
  222. " .all-wrapper, .bottom-bar {top:0!important;}",
  223. " .bottom-bar, .action-menu {position:fixed!important;}"
  224. ].join("\n");
  225. if (false || (document.domain == "sc2tv.ru" || document.domain.substring(document.domain.indexOf(".sc2tv.ru") + 1) == "sc2tv.ru"))
  226. css += " #block-sc2tv_streams-0 {margin-top:0!important;}";
  227. if (false || (document.domain == "seasonvar.ru" || document.domain.substring(document.domain.indexOf(".seasonvar.ru") + 1) == "seasonvar.ru"))
  228. css += " body {background-color:#707070!important;}";
  229. if (false || (document.domain == "smotri.com" || document.domain.substring(document.domain.indexOf(".smotri.com") + 1) == "smotri.com"))
  230. css += " #wrapper>#all {margin-top:0!important;}";
  231. if (false || (document.domain == "sports.ru" || document.domain.substring(document.domain.indexOf(".sports.ru") + 1) == "sports.ru"))
  232. css += " body.img-bg,#branding-layout {background:gray!important;padding-top:0!important;}";
  233. if (false || (document.domain == "tnt-online.ru" || document.domain.substring(document.domain.indexOf(".tnt-online.ru") + 1) == "tnt-online.ru"))
  234. css += [
  235. "/*self-ads for bitblock*/",
  236. " #contentShifter {display:none!important;}",
  237. " #all {top:15px!important;}"
  238. ].join("\n");
  239. if (false || (document.domain == "virusinfo.info" || document.domain.substring(document.domain.indexOf(".virusinfo.info") + 1) == "virusinfo.info"))
  240. css += "body {margin:0!important;}";
  241. if (false || (document.domain == "warfiles.ru" || document.domain.substring(document.domain.indexOf(".warfiles.ru") + 1) == "warfiles.ru"))
  242. css += "#header + .banner {height:100px!important;}";
  243. if (false || (document.domain == "vz.ru" || document.domain.substring(document.domain.indexOf(".vz.ru") + 1) == "vz.ru"))
  244. css += [
  245. " div.main-container{max-width: inherit !important;}",
  246. " div.main-menu>div.menu.sys_thumbs{overflow: inherit !important;}",
  247. " div.main-menu>div.menu.sys_thumbs>ul>li.thumb{margin-right: 0 !important;}",
  248. " div.menu{max-width: inherit !important;}"
  249. ].join("\n");
  250. if (false || (document.domain == "webfile.ru" || document.domain.substring(document.domain.indexOf(".webfile.ru") + 1) == "webfile.ru"))
  251. css += ".p_wrap {margin-top:0!important;}";
  252. if (false || (document.domain == "zaycev.net" || document.domain.substring(document.domain.indexOf(".zaycev.net") + 1) == "zaycev.net"))
  253. css += " .body-branding {background:none!important;padding-top:0!important;}";
  254. if (false || (document.domain == "zoneofgames.ru" || document.domain.substring(document.domain.indexOf(".zoneofgames.ru") + 1) == "zoneofgames.ru"))
  255. css += " .branding,div.logo {background:none!important;height:auto!important;}";
  256. if (false || (document.domain == "zoomby.ru" || document.domain.substring(document.domain.indexOf(".zoomby.ru") + 1) == "zoomby.ru"))
  257. css += [
  258. "#global_wrapper_cont {padding:0!important;}",
  259. " .wrapper {margin-top:60px!important;}"
  260. ].join("\n");
  261. if (false || (new RegExp("^https?://anistar.ru/news(/(\\?.*)?)?$")).test(document.location.href))
  262. css += ".news:nth-child(1) {display:none!important;}";
  263. if (false || (document.domain == "ixbt.com" || document.domain.substring(document.domain.indexOf(".ixbt.com") + 1) == "ixbt.com"))
  264. css += [
  265. "body {background:white!important;}",
  266. " body{background-image: url()!important;}",
  267. " body{background-image: none !important;}",
  268. " div{background-image: url()!important;}",
  269. " .branding {padding-top: 5px!important;}",
  270. " body {padding-top: 5px!important;}",
  271. " .limiter{padding-top: 5px!important;}",
  272. " .main_tm_search_tool,.searchline {background: white!important;}",
  273. // !! для широкоформатных мониторов
  274. " .header_container, .bottom_container, #content, .content, .wrapper, .limiter {width: 100%!important;}",
  275. " div.limiter > div.wrapper > div.c_w > table > tbody > tr > td[align=\"center\"] > table[width=\"960\"] {width: 100%!important;}"
  276. ].join("\n");
  277. if (false || (document.domain == "nnm-club.me" || document.domain.substring(document.domain.indexOf(".nnm-club.me") + 1) == "nnm-club.me"))
  278. css += [
  279. "body{background:none !important;}",
  280. " body{background-image:none !important;}",
  281. // ! --- широко
  282. // ! ".wrap{min-width:1030px;max-width:100% !important;}",
  283. " body>table[width=\"85%\"]{width:100%!important;}",
  284. " body{padding:0 !important;}",
  285. " body {padding-top:0!important;}",
  286. " body>div.wrap{min-width:1030px;max-width:100% !important;}"
  287. ].join("\n");
  288. 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"))
  289. css += [
  290. " #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;}",
  291. " div#post-container{background:url(\"\")!important;}",
  292. " div#pre-container{background:url(\"\")!important;}"
  293. ].join("\n");
  294. if (false || (document.domain == "nnm.me" || document.domain.substring(document.domain.indexOf(".nnm.me") + 1) == "nnm.me"))
  295. css += [
  296. "body{background: none !important;}",
  297. " body, #theme_8, #theme_2, #theme_3, #theme_4, #theme_5, #theme_6, #theme_7, #theme_1{background: url('') !important;}",
  298. " body {background-image:none !important;}",
  299. " body, div#page{background:gray !important;background-color:gray !important;}",
  300. " body, div#page, element.style{background-image:url('') !important;}",
  301. " body, div#page, .pirate-branding, .pb_button_play{background:none !important;}",
  302. " div#page{margin-top:0px !important;top: 0px !important;}",
  303. " div#optionspanel{margin-top:0px !important; margin-left:0px !important;}",
  304. " div#page>div[style*=\"width: 990px;\"][style*=\"height: 206px; position: relative;\"]{height: 0px !important;}",
  305. " .pb_top_img, .pirate-branding, a.pb_link, .pb_logo_brand, .pb_left_banner, .pb_right_banner, #b-logo{height: 0px !important;}",
  306. " .pirate-branding, .pb_button_play_big{top:0px !important;}",
  307. " body{padding-top: 0px !important;}",
  308. " #mmmBanner{height: 0px !important;}",
  309. " .head_assn {height: 0px !important; width: 0px !important;}",
  310. " .head_assn .assn_logo {width: 0px !important; height: 0px !important; top: 0px !important; left: 0px !important; background: url(\" \") !important; }",
  311. " .head_assn .assn_slogan {width: 0px !important; height: 0px !important; top: 0px !important; left:0px !important; background: url(\" \") !important; }",
  312. " html{height: 0px !important;}",
  313. " body{click=()!important;}",
  314. // !! заполненяем всю ширину экрана. Раскомментировать строки (убрать воскл.знаки в начале строк)
  315. " #wrap, #scrollPanel{width: 1320px !important;}",
  316. " #cntnt{margin-top: 0px !important; position: absolute; left: 0% !important; margin-left: 0px !important;}",
  317. " #wrapper {width: 1300px !important;}",
  318. " #content{width: 900px !important;}",
  319. " body {text-align:center!important;}",
  320. " #page {display:inline-block !important; margin-top:0 !important;}",
  321. " #wrap {text-align:initial !important;}"
  322. ].join("\n");
  323. 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"))
  324. css += [
  325. // ! site yandex
  326. ".adsrv {width:0px!important;min-width:0!important;max-width:0!important;",
  327. " height:0!important;min-height:0!important;max-height:0!important;",
  328. " overflow:hidden!important;}",
  329. " .b-top-wizard{width:1000px!important;} .b-body-items.b-serp-list{width:1000px!important;}",
  330. // ! !! чистим maps.yandex
  331. " .ymaps-map{background:none !important;}",
  332. // " .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;}",
  333. " .ymaps-2-1-23-map,.ymaps-2-1-28-map-ru,.ymaps-2-1-30-hint__x,[class*=\"-copyright__\"]{background-image:url() !important;}",
  334. " .ymaps-2-1-23-map,.ymaps-2-1-28-map-ru,.ymaps-2-1-30-hint__x,[class*=\"-copyright__\"]{background:url(\'\') !important;}",
  335. // ! !! убрать все фоновые рисунки в картах
  336. // ! " ymaps{background-image:url() !important;}",
  337. " tv.yandex.ru##td[width=\"24%\"]{width:12%!important;}",
  338. " a{onmousedown=''!important;}",
  339. " a{onclick=''!important;}"
  340. ].join("\n");
  341. 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"))
  342. css += [
  343. // ! !! --- широко
  344. " .main,.main-wrap,.header,.header-main{width:100%!important;}",
  345. " div.all,div.all-wrap,.pageWidth{max-width:100%!important;width:100%!important;}",
  346. " article,.header,.header-main{width:100%!important;}",
  347. " div.content{width:80%!important;}div.sidebar1{width:18%!important;}"
  348. ].join("\n");
  349. if (false || (document.domain == "4seasons-ltc.com" || document.domain.substring(document.domain.indexOf(".4seasons-ltc.com") + 1) == "4seasons-ltc.com"))
  350. css += [
  351. "body{background-image:none !important;}",
  352. " body{font-family: Tahoma !important;}"
  353. ].join("\n");
  354. if (false || (document.domain == "china-review.com.ua" || document.domain.substring(document.domain.indexOf(".china-review.com.ua") + 1) == "china-review.com.ua"))
  355. css += [
  356. "body{background:url()!important;}",
  357. " body{background-image:none !important;}",
  358. " body{background:none!important;}",
  359. " body{margin-top:0px!important;}"
  360. ].join("\n");
  361. if (false || (document.domain == "ag.ru" || document.domain.substring(document.domain.indexOf(".ag.ru") + 1) == "ag.ru"))
  362. css += [
  363. "body{background:none!important;} .layer_top {background:none!important;} .layer_bottom {background:none!important;} .cast_bg{background:none!important;}",
  364. " .contentbg {background-image:none!important;} #4iframe {background-image:none!important;} ",
  365. " #framescr{background-image:none!important;}"
  366. ].join("\n");
  367. if (false || (document.domain == "amovies.tv" || document.domain.substring(document.domain.indexOf(".amovies.tv") + 1) == "amovies.tv"))
  368. css += [
  369. // !! расширяем
  370. "article{width: 980px !important;}",
  371. " #vk_select {float:none !important;margin-left: 445px!important;}",
  372. " #vk_top,#vk_select {background:url()!important;}"
  373. ].join("\n");
  374. if (false || (document.domain == "apteka.ru" || document.domain.substring(document.domain.indexOf(".apteka.ru") + 1) == "apteka.ru"))
  375. css += [
  376. " div.wrapper_root>div.wrapper>section.middle{margin-bottom: 0 !important;}",
  377. " div.wrapper_root>div.wrapper>section.middle>div.container.clr{min-height: 180px !important;}",
  378. " div.wrapper_root>div.wrapper>section.middle>div.container.clr>div.content.bottom-content>section.items.items-tile.items-viewed{margin: 0!important;}",
  379. " div.wrapper_root>div.wrapper>section.middle>div.tabs.top-tabs.clr{margin-bottom: 0 !important;}"
  380. ].join("\n");
  381. if (false || (document.domain == "avito.ru" || document.domain.substring(document.domain.indexOf(".avito.ru") + 1) == "avito.ru"))
  382. css += " .bonprix-1{background: none !important;} ";
  383. if (false || (document.domain == "bash.im" || document.domain.substring(document.domain.indexOf(".bash.im") + 1) == "bash.im"))
  384. css += " span.csd{background:none !important;}";
  385. if (false || (document.domain == "best-cashback.ru" || document.domain.substring(document.domain.indexOf(".best-cashback.ru") + 1) == "best-cashback.ru"))
  386. css += [
  387. " [id=\"menu-osnovnoe-menyu\"]>[id^=\"menu-item-\"]>a.menu-item-link{color: black !important;}",
  388. " div#theme-page{top: 80px !important;}",
  389. " [class^=\"mk-header-\"]{background-color: lightgrey !important;}",
  390. " section#mk-footer{padding: 0 !important; top: 80px !important;}",
  391. " div#sub-footer{background-color: lightgrey !important;}"
  392. ].join("\n");
  393. if (false || (document.domain == "bestrepack.net" || document.domain.substring(document.domain.indexOf(".bestrepack.net") + 1) == "bestrepack.net"))
  394. css += " div#body_container{padding: 0 !important;}";
  395. if (false || (document.domain == "bigpicture.ru" || document.domain.substring(document.domain.indexOf(".bigpicture.ru") + 1) == "bigpicture.ru"))
  396. css += [
  397. " div.content{padding: 0 !important;}",
  398. " div.podheader{width: 240px !important; float: right !important;}",
  399. " div.podheader-right{float: right !important;}"
  400. ].join("\n");
  401. if (false || (document.domain == "bookvoed.ru" || document.domain.substring(document.domain.indexOf(".bookvoed.ru") + 1) == "bookvoed.ru"))
  402. css += " .Fh{margin-top: 79px!important;}";
  403. if (false || (document.domain == "calend.ru" || document.domain.substring(document.domain.indexOf(".calend.ru") + 1) == "calend.ru"))
  404. css += " .pad, .main-l{width:95% !important;}";
  405. if (false || (document.domain == "clubupravdom.ru" || document.domain.substring(document.domain.indexOf(".clubupravdom.ru") + 1) == "clubupravdom.ru"))
  406. css += " *{background-image: none !important;}";
  407. if (false || (document.domain == "computerra.ru" || document.domain.substring(document.domain.indexOf(".computerra.ru") + 1) == "computerra.ru"))
  408. css += [
  409. " div.page.page-podl{padding-top: 0px!important;}",
  410. " div#under{width:auto!important;}",
  411. " a.link{font-weight:bold!important; font-family:Verdana!important;font-size: 12px!important;}",
  412. " div.column{max-width:80%!important;}"
  413. ].join("\n");
  414. if (false || (document.domain == "crowdin.com" || document.domain.substring(document.domain.indexOf(".crowdin.com") + 1) == "crowdin.com"))
  415. css += " #user-cover-picture,#user-cover-picture-blurred{background:url()!important;}";
  416. 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"))
  417. css += [
  418. "body{background:none !important;}",
  419. " td{background-image:none !important;}"
  420. ].join("\n");
  421. if (false || (document.domain == "ebay-forum.ru" || document.domain.substring(document.domain.indexOf(".ebay-forum.ru") + 1) == "ebay-forum.ru"))
  422. 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;}";
  423. 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 == "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"))
  424. css += [
  425. "body{background:none !important;}",
  426. " body{background-image:none !important;}"
  427. ].join("\n");
  428. if (false || (document.domain == "ddlmkvhd.com" || document.domain.substring(document.domain.indexOf(".ddlmkvhd.com") + 1) == "ddlmkvhd.com"))
  429. css += [
  430. " body{background: none !important;}",
  431. " div.page-body-t{position: relative !important;}"
  432. ].join("\n");
  433. if (false || (document.domain == "ddlvillage.org" || document.domain.substring(document.domain.indexOf(".ddlvillage.org") + 1) == "ddlvillage.org"))
  434. css += [
  435. " div{background: none !important;}"
  436. ].join("\n");
  437. if (false || (document.domain == "f1news.ru" || document.domain.substring(document.domain.indexOf(".f1news.ru") + 1) == "f1news.ru"))
  438. css += [
  439. " div[id=\"bannerText\"]{border:0px!important;margin-left:10px!important;}",
  440. " body{background:url() top center no-repeat #000000 !important;}",
  441. // !! расширяем текстовое поле
  442. " div#textBlock{width:900px !important;}"
  443. ].join("\n");
  444. if (false || (document.domain == "facebook.com" || document.domain.substring(document.domain.indexOf(".facebook.com") + 1) == "facebook.com"))
  445. css += [
  446. " #contentArea {width: 750px !important;}",
  447. " .uiUfi {width: 650px !important;}",
  448. // !! " body {background:url(http://www.maxthon-fr.com/10ours/facebook/wb.jpg) fixed !important;}",
  449. // !! " #contentCol {background:url(http://www.maxthon-fr.com/10ours/facebook/wb.jpg) fixed !important;}",
  450. " div#profile_stream_composer {background-color:#C1D5F6;}",
  451. " #blueBar {background-color: transparent !important;}",
  452. " #headNav {background-color: #transparent !important;}",
  453. " .jewelButton {background-color: transparent !important;}",
  454. " #fbNotificationsFlyout {left: 50px !important;}",
  455. " .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;}",
  456. // !! " #pageNav a {color: #00ffff !important;display: inline-block;font-weight: bold;height: 22px;padding: 8px 10px 0px;text-decoration: none;}",
  457. " .UIImageBlock {color: #000000 !important;}",
  458. " .fcg {color: darkgreen !important;}",
  459. " .mts.uiAttachmentDesc.translationEligibleUserAttachmentMessage {color: black !important;}"
  460. ].join("\n");
  461. if (false || (document.domain == "fastpic.ru" || document.domain.substring(document.domain.indexOf(".fastpic.ru") + 1) == "fastpic.ru"))
  462. css += [
  463. " #logo-area{padding-top: 0px!important;}",
  464. " *{background:none !important;}",
  465. " *{background-image:none !important;}",
  466. " #footer-container {background-image:none!important;height:auto!important;}",
  467. " body > a {display:none!important;}",
  468. " div#show-code-content.rounded-corners{position: inherit!important;}",
  469. " div#foot-area.center.rounded-corners{position: inherit!important;}",
  470. " div#footer.center.rounded-corners{position: inherit!important;}",
  471. " div#right-bottom.rounded-corners{position: relative!important;margin-top:0px!important;height:0px!important;padding-top:5px!important;}",
  472. // !! всё - чёрным
  473. " *{color: black!important;}",
  474. " body{background: none!important;}"
  475. // " html {background-color:#171616!important;}"
  476. ].join("\n");
  477. if (false || (document.domain == "filmix.net" || document.domain.substring(document.domain.indexOf(".filmix.net") + 1) == "filmix.net"))
  478. css += " body{padding: 0px 0 0 0!important;}";
  479. if (false || (document.domain == "formulakino.ru" || document.domain.substring(document.domain.indexOf(".formulakino.ru") + 1) == "formulakino.ru"))
  480. css += [
  481. " div.backF>a>span{background-image:none !important; background:#fff !important;}",
  482. " div.vjs-poster{background:url()!important;}",
  483. " div.pagecontent{margin-top:0px!important;}",
  484. " div#wrapper{background:#fff!important;}"
  485. ].join("\n");
  486. if (false || (document.domain == "google.ru" || document.domain.substring(document.domain.indexOf(".google.ru") + 1) == "google.ru"))
  487. css += [
  488. " 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;}",
  489. " body[class=\"cP\"] tr td.Bu:last-child div.nH div.nH div.nH:first-child:hover {opacity:1;}",
  490. " body[class=\"cP\"] tr td.Bu:last-child div.nH {width: 0px!important;}",
  491. // ! расширяем выдачу в поиске
  492. " .center_col,#center_col {width:1000px!important; margin-left:10px !important; margin-right:10px !important;} .s {max-width:100% !important;}"
  493. ].join("\n");
  494. if (false || (document.domain == "igromania.ru" || document.domain.substring(document.domain.indexOf(".igromania.ru") + 1) == "igromania.ru"))
  495. css += [
  496. // !! " *{background-image: none !important;}",
  497. " div.out_out, element.style {background-image: url() !important;}"
  498. ].join("\n");
  499. if (false || (document.domain == "inosmi.ru" || document.domain.substring(document.domain.indexOf(".inosmi.ru") + 1) == "inosmi.ru"))
  500. css += [
  501. " body{background-image:none !important;}",
  502. " body{background:url()!important;}",
  503. // !! поаккуратнее
  504. " .header{padding-top:0px!important;}",
  505. " #addbwr{margin-top:0px!important;}",
  506. // !! расширяем (если не надо - закомментировать (поставить воскл.знаки // ! перед след. строками )
  507. " .mainbox{width:95%!important;}",
  508. " .section{width:100%!important;}",
  509. " .floatleft{width:80%!important;}",
  510. " .floatleft.box3row{width:50%!important;}",
  511. " .floatleft.box3row3{width:50%!important;}",
  512. " .bodypage{width:100%!important; }",
  513. " .floatright{width:10%!important;}",
  514. " .article{width:100%!important; }",
  515. " .announce{width:80%!important; }"
  516. ].join("\n");
  517. if (false || (document.domain == "keeplinks.eu" || document.domain.substring(document.domain.indexOf(".keeplinks.eu") + 1) == "keeplinks.eu"))
  518. css += " div#header{background: none !important;}";
  519. if (false || (document.domain == "livesport.ws" || document.domain.substring(document.domain.indexOf(".livesport.ws") + 1) == "livesport.ws"))
  520. css += [
  521. // !! убираем фон и баннер
  522. " body {background:none!important;color:#333!important;}",
  523. " body{background:url()!important;background-color:#000002!important;}",
  524. " body,.top-panel-wrap.fixed {background-image:url() !important;}",
  525. " body{background-image:none !important;}",
  526. " div[id=\"flash\"]{height: 0px !important;}"
  527. ].join("\n");
  528. if (false || (document.domain == "lostfilm.tv" || document.domain.substring(document.domain.indexOf(".lostfilm.tv") + 1) == "lostfilm.tv"))
  529. css += [
  530. " body{background:gray!important;}",
  531. " div[class=\"mid\"]{background:LightGrey!important;}",
  532. // !! ==== и меняем на читаемый цвет
  533. " div{class=\"user_avatar\";color:black!important;}",
  534. " span{class=\"wh\";color:black!important;}",
  535. " a[href=\"\/my.php\"]{color:black!important;}",
  536. " a[href=\"\/messages.php\"]{color:black!important;}",
  537. " a[href=\"http:\/\/login.bogi.ru\/logout.php\?target=http:\/\/lostfilm.tv/\"]{color:black!important;}"
  538. ].join("\n");
  539. if (false || (document.domain == "mail.ru" || document.domain.substring(document.domain.indexOf(".mail.ru") + 1) == "mail.ru"))
  540. css += [
  541. " body,.forecast-rb-bg,.b-bg{background-image: none!important;}",
  542. " .SearchForm,.form,.txt1,.txt2,.txt3,.people1,.people2,.people3,.GRcorrect, .GRSpellingCorrect, .GRspelling {background: url('')!important;}"
  543. ].join("\n");
  544. if (false || (document.domain == "ncrypt.in" || document.domain.substring(document.domain.indexOf(".ncrypt.in") + 1) == "ncrypt.in"))
  545. css += [
  546. " body{background: none !important;}",
  547. " div#wrapper{margin: 0 0 0 0 !important;}"
  548. ].join("\n");
  549. 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"))
  550. css += [
  551. // !! "div {background-image:none !important;}",
  552. // !! "div {background:url()!important;}",
  553. // !! "div[class^=\"prl_slide_\"] {background:url()!important;}"
  554. "div[class=\"anonym_login\"]{width: 100% !important;}"
  555. ].join("\n");
  556. if (false || (document.domain == "overclockers.ru" || document.domain.substring(document.domain.indexOf(".overclockers.ru") + 1) == "overclockers.ru"))
  557. css += [
  558. " #main{background:none!important;background:#FFF!important;}",
  559. " div[id=\"main\"]>div[id=\"adw\"]{height:0px!important;}",
  560. " div[id=\"main\"]>div[class=\"box1\"]{height:0px!important;}",
  561. " div[id=\"main\"]>div:nth-of-type(1){height:0px!important;}"
  562. ].join("\n");
  563. if (false || (document.domain == "pikabu.ru" || document.domain.substring(document.domain.indexOf(".pikabu.ru") + 1) == "pikabu.ru"))
  564. css += [
  565. " div.paral>a>div{background:url()!important;}",
  566. " div.paral>a>div{height:64px!important;}",
  567. " table#header_t {margin-top: 0px !important;}",
  568. " \\!! расширяем полезную площадь",
  569. " .b-story__content, .b-story__content_type_text {margin-left:5px !important; width: 800px !important; max-width: 800px !important;}"
  570. ].join("\n");
  571. if (false || (document.domain == "piter.tv" || document.domain.substring(document.domain.indexOf(".piter.tv") + 1) == "piter.tv"))
  572. css += [
  573. " body{background-image:none !important;}"
  574. ].join("\n");
  575. if (false || (document.domain == "politikus.ru" || document.domain.substring(document.domain.indexOf(".politikus.ru") + 1) == "politikus.ru"))
  576. css += [
  577. " body{background-image:none !important;}",
  578. " body{background:url()!important;}",
  579. // !! расширяем (если не надо - закомментировать (поставить воскл.знаки // ! перед след.четырьмя строками )
  580. " #main_content_holder{width:100%!important; }",
  581. " #left{width:80%!important; }",
  582. " .holder, div.block, .content, #dle-content{width:100% !important; }",
  583. " .fullstory{width:95% !important; }"
  584. ].join("\n");
  585. if (false || (document.domain == "pikabu.ru" || document.domain.substring(document.domain.indexOf(".pikabu.ru") + 1) == "pikabu.ru"))
  586. css += [
  587. "div.paral>a>div{background:url()!important;}",
  588. " div.paral>a>div{height:64px!important;}",
  589. " table#header_t {margin-top: 0px !important;}"
  590. ].join("\n");
  591. if (false || (document.domain == "pleer.com" || document.domain.substring(document.domain.indexOf(".pleer.com") + 1) == "pleer.com"))
  592. css += [
  593. " div#main.clearfix>div#container>div#content{margin: 0 !important;}",
  594. " 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;}",
  595. " 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;}"
  596. ].join("\n");
  597. 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"))
  598. css += [
  599. " .brand_bg{background-image:none !important;}",
  600. " .content{padding-top:0px !important;}"
  601. ].join("\n");
  602. if (false || (document.domain == "rambler.ru" || document.domain.substring(document.domain.indexOf(".rambler.ru") + 1) == "rambler.ru"))
  603. css += [
  604. ".b-left-column .b-left-column__wrapper{margin:0 !important;}",
  605. " div[class=\"appWindow\"]{right:0px!important;}"
  606. ].join("\n");
  607. if (false || (document.domain == "rbc.ru" || document.domain.substring(document.domain.indexOf(".rbc.ru") + 1) == "rbc.ru"))
  608. css += " .article__content {margin-right: 0px !important;}";
  609. if (false || (document.domain == "riper.am" || document.domain.substring(document.domain.indexOf(".riper.am") + 1) == "riper.am"))
  610. css += [
  611. "#octo-set{background-image:none!important;padding-top:0!important;}",
  612. " #main-wrapper{width:auto!important;}",
  613. " body{background-image: none!important;} ",
  614. " body{background:none!important;}",
  615. " #main-wrapper{top:10px!important;}",
  616. // !! cкрыть заголовок
  617. " #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;}"
  618. ].join("\n");
  619. 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"))
  620. css += [
  621. "*{background:none!important;}",
  622. " *{background:url('')!important;}",
  623. " *{background:silver!important; color:black!important;}",
  624. " 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; }"
  625. ].join("\n");
  626. if (false || (document.domain == "ruspravda.info" || document.domain.substring(document.domain.indexOf(".ruspravda.info") + 1) == "ruspravda.info"))
  627. css += [
  628. "body{background:white!important;}",
  629. " table#header_t {margin-top: 0px !important;}"
  630. ].join("\n");
  631. if (false || (document.domain == "rustorka.com" || document.domain.substring(document.domain.indexOf(".rustorka.com") + 1) == "rustorka.com"))
  632. css += " .topmenu{margin-top:25px !important;}";
  633. if (false || (document.domain == "rutor.org" || document.domain.substring(document.domain.indexOf(".rutor.org") + 1) == "rutor.org"))
  634. css += [
  635. // !! оформление от zuefhrf
  636. "div#ws div#sidebar{top: 0px !important;}",
  637. " div#ws div#sidebar{right: 8px !important;}",
  638. " div#ws div#sidebar div.sideblock{margin-top: 0px !important;}",
  639. " div#ws div#content{right: 6px !important;}",
  640. " h3{text-align: left !important;}"
  641. ].join("\n");
  642. if (false || (document.domain == "samlab.ws" || document.domain.substring(document.domain.indexOf(".samlab.ws") + 1) == "samlab.ws"))
  643. css += [
  644. "div.box.main {width: auto; !important;}",
  645. " div#right {width: 2px; !important;}"
  646. ].join("\n");
  647. if (false || (document.domain == "samlib.ru" || document.domain.substring(document.domain.indexOf(".samlib.ru") + 1) == "samlib.ru"))
  648. css += [
  649. "body {font-family: sans-serif !important;line-height: 140% !important;color: #B2B2B2 !important;background: #3A3E46 !important;}",
  650. " font {color: #B2B2B2 !important;}",
  651. " table, td, td font {color: #BEBEBE !important;background-color: #555C66 !important;}",
  652. " a:link {color: #9DD7FF !important;}",
  653. " a:visited {color: #EAB6FF !important;}",
  654. " a:hover {color: #F0B2B2 !important;}",
  655. " dl {margin-top: 1em !important;}"
  656. ].join("\n");
  657. if (false || (document.domain == "securitylab.ru" || document.domain.substring(document.domain.indexOf(".securitylab.ru") + 1) == "securitylab.ru"))
  658. css += [
  659. " #content #left{margin-left: 0px!important;max-width: 1000px!important;}",
  660. // !! логотип
  661. " div#header{height:00px!important;background-color:white!important;} div#MAIN_MENU{top:0px!important;}"
  662. ].join("\n");
  663. if (false || (document.domain == "sportbox.ru" || document.domain.substring(document.domain.indexOf(".sportbox.ru") + 1) == "sportbox.ru"))
  664. css += [
  665. " body{background:none!important;padding-top: 0px!important;}",
  666. " .sb_c_topmed_olymp, .gold, .silver, .bronze {background:none!important;}"
  667. ].join("\n");
  668. if (false || (document.domain == "sports.ru" || document.domain.substring(document.domain.indexOf(".sports.ru") + 1) == "sports.ru"))
  669. css += [
  670. " .kaspersky, .overall {background:none!important;}",
  671. " .kaspersky, .pageLayout {top: 0px!important;}"
  672. ].join("\n");
  673. if (false || (document.domain == "tfile.me" || document.domain.substring(document.domain.indexOf(".tfile.me") + 1) == "tfile.me"))
  674. css += [
  675. " body{background-image: none !important;}",
  676. " body {padding:0px 0 0 0!important;}",
  677. " element.style{background:url()!important;}",
  678. " element.style, #skin_crown{background-image:url()!important;}",
  679. " body{background:url()!important;}",
  680. " table#home_c{width: inherit !important;}",
  681. " [id^=\"top_\"]{width: inherit !important;}"
  682. ].join("\n");
  683. if (false || (document.domain == "torrent-tv.ru" || document.domain.substring(document.domain.indexOf(".torrent-tv.ru") + 1) == "torrent-tv.ru"))
  684. css += [
  685. " body {background-image:none!important;padding-top: 0px!important;}",
  686. " div#main-wrapper {top:auto!important;}",
  687. " div.news-text {width:auto!important;}",
  688. " div[class^=\"usual-header\"] {width:126%!important;}",
  689. " div[class=\"usual\"] {width:132%!important;}",
  690. " div[class^=\"usual-content\"] {width:99%!important;}"
  691. // !!
  692. // !! " body>div:nth-of-type(1) {background:url()!important;}",
  693. // !! " body {background:gray!important;}",
  694. ].join("\n");
  695. if (false || (document.domain == "turbobit.net" || document.domain.substring(document.domain.indexOf(".turbobit.net") + 1) == "turbobit.net"))
  696. css += " html {background:none!important;}";
  697. if (false || (document.domain == "velolive.com" || document.domain.substring(document.domain.indexOf(".velolive.com") + 1) == "velolive.com"))
  698. css += " body {background:url() !important;}";
  699. if (false || (document.domain == "vesti.ru" || document.domain.substring(document.domain.indexOf(".vesti.ru") + 1) == "vesti.ru"))
  700. css += [
  701. " .bottom_bg {background: none !important;}",
  702. " body, .head, .all_wrap {background: url(\" \") !important;}"
  703. ].join("\n");
  704. if (false || (document.domain == "dns-shop.ru" || document.domain.substring(document.domain.indexOf(".dns-shop.ru") + 1) == "dns-shop.ru"))
  705. css += " div.wrapper{width: auto !important;}";
  706. if (false || (document.domain == "yaplakal.com" || document.domain.substring(document.domain.indexOf(".yaplakal.com") + 1) == "yaplakal.com"))
  707. css += [
  708. " body{background:none !important;}",
  709. " #footer{background:url()!important;}",
  710. " #footer{background-image:none !important;}",
  711. " #top-line {background:none !important;padding:0 !important;}",
  712. " #header,#footer {background-color:skyblue!important;}",
  713. " #content{max-width:none !important;}"
  714. ].join("\n");
  715. if (false || (document.domain == "zaycev.net" || document.domain.substring(document.domain.indexOf(".zaycev.net") + 1) == "zaycev.net"))
  716. css += [
  717. " div[class=\"body-branding\"]{background:grey!important; padding-top: 0px!important; padding: 5px!important;}",
  718. " div[class=\"body-gaps\"]{max-width:100%!important;}"
  719. ].join("\n");
  720. if (false || (document.domain == "zalil.ru" || document.domain.substring(document.domain.indexOf(".zalil.ru") + 1) == "zalil.ru"))
  721. css += [
  722. " body{background:none !important;}",
  723. " body{background-color:gray !important;}",
  724. " body{background-image:none !important;}"
  725. ].join("\n");
  726. if (false || (document.domain == "taker.im" || document.domain.substring(document.domain.indexOf(".taker.im") + 1) == "taker.im"))
  727. css += [
  728. // !! скрываем рекламные ссылки (СПАМ) в тексте
  729. " a[href^=\"/phpBB2/goto/http://www.ebay.com/sch/\"][rel=\"nofollow\"]{color:#333!important; text-decoration: none !important; pointer-events: none !important;}"
  730. ].join("\n");
  731. if (typeof GM_addStyle != "undefined") {
  732. GM_addStyle(css);
  733. } else if (typeof PRO_addStyle != "undefined") {
  734. PRO_addStyle(css);
  735. } else if (typeof addStyle != "undefined") {
  736. addStyle(css);
  737. } else {
  738. var node = document.createElement("style");
  739. node.type = "text/css";
  740. node.appendChild(document.createTextNode(css));
  741. var heads = document.getElementsByTagName("head");
  742. if (heads.length > 0) {
  743. heads[0].appendChild(node);
  744. } else {
  745. // no head yet, stick it whereever
  746. document.documentElement.appendChild(node);
  747. }
  748. }
  749. })();
  750.  
  751. // позаимствовано у lainverse (https://greasyfork.org/ru/scripts/809-no-yandex-ads)
  752. // Удаляет рекламу из поиска Яндекс
  753. (function(){
  754. var lct = location.href;
  755. if(lct.match(/^https?:\/\/(news\.yandex\.|yandex\.[^\/]+\/(yand)?search[\/?])/)) {
  756. // Generic ads removal
  757. (function(s){
  758. for (var l = 0; l < s.length; l++) s[l].parentNode.removeChild(s[l]);
  759. })(document.querySelectorAll('.serp-adv,.b-spec-adv,#adbanner,.footer_distro_yes'));
  760.  
  761. // Search ads
  762. function removeAds() {
  763. var s = document.querySelectorAll('.serp-block,.search-item');
  764. for (var l = 0; l < s.length; l++) {
  765. var i = s[l].querySelector('.serp-item__label,.document__provider-name');
  766. if (!i) continue;
  767. if (i.textContent.indexOf('Реклама') > -1 || i.textContent.indexOf('Яндекс.Директ') > -1)
  768. s[l].parentNode.removeChild(s[l]);
  769. }
  770. }
  771.  
  772. // News ads
  773. function removeNewsAds() {
  774. var s = document.querySelectorAll('.story[id],.story__group[id],.document[id]');
  775. for (var l = 0; l < s.length; l++)
  776. if (window.getComputedStyle(s[l]).position === 'absolute')
  777. s[l].parentNode.removeChild(s[l]);
  778. }
  779.  
  780. // Attaches observer to the page elements which Yandex updates via AJAX to display new search or news results
  781. function pageUpdateObserver(func, obj) {
  782. if (obj)
  783. new MutationObserver(func).observe(obj,{childList:true});
  784. }
  785.  
  786. if (window.location.hostname.search(/^news\./i) === 0) {
  787. pageUpdateObserver(removeNewsAds, document.querySelector('BODY'));
  788. removeNewsAds();
  789. } else {
  790. pageUpdateObserver(removeAds, document.querySelector('.main__content'));
  791. removeAds();
  792. }
  793. }
  794. })();