RU Max4_ABP_Fix CSS

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

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

  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.20160410230026
  11. // @grant GM_addStyle
  12. // ==/UserScript==
  13. /* jshint -W084, esnext: true*/
  14. (function(){
  15. (function(){var css = "";
  16. // !! console.log("es");
  17. 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"))
  18. css += [
  19. "span.dats{position:relative!important;top: 10px!important;}",
  20. // !! скрываем рекламные ссылки (СПАМ) в сообщениях
  21. " a[href^=\"http://forum.ru-board.com/\"][href$=\"/\"][target=\"_blank\"]{color:#333!important; text-decoration: none !important; pointer-events: none !important;}"
  22. // !! ======= ПРАВКА СТРУКТУРЫ. вынесено в отдельный скрипт. См. Ru-Board_Extrim_Max4_ABP_Fix-CSS =======
  23. ].join("\n");
  24. 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 == "fastpic.ru" || document.domain.substring(document.domain.indexOf(".fastpic.ru") + 1) == "fastpic.ru") || (document.domain == "hd720.biz" || document.domain.substring(document.domain.indexOf(".hd720.biz") + 1) == "hd720.biz") || (document.domain == "ixbt.com" || document.domain.substring(document.domain.indexOf(".ixbt.com") + 1) == "ixbt.com") || (document.domain == "kinotochka.net" || document.domain.substring(document.domain.indexOf(".kinotochka.net") + 1) == "kinotochka.net") || (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 == "nnmclub.to" || document.domain.substring(document.domain.indexOf(".nnmclub.to") + 1) == "nnmclub.to") || (document.domain == "nnm-club.me" || document.domain.substring(document.domain.indexOf(".nnm-club.me") + 1) == "nnm-club.me") || (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 == "torrentom.com" || document.domain.substring(document.domain.indexOf(".torrentom.com") + 1) == "torrentom.com") || (document.domain == "zakon.kz" || document.domain.substring(document.domain.indexOf(".zakon.kz") + 1) == "zakon.kz"))
  25. css += "html:not(#id),body:not(#id) {background-image:none!important}";
  26. if (false || (document.domain == "baskino.club" || document.domain.substring(document.domain.indexOf(".baskino.club") + 1) == "baskino.club") || (document.domain == "hd720.biz" || document.domain.substring(document.domain.indexOf(".hd720.biz") + 1) == "hd720.biz") || (document.domain == "hdrezka.me" || document.domain.substring(document.domain.indexOf(".hdrezka.me") + 1) == "hdrezka.me") || (document.domain == "ixbt.com" || document.domain.substring(document.domain.indexOf(".ixbt.com") + 1) == "ixbt.com") || (document.domain == "kinopoisk.ru" || document.domain.substring(document.domain.indexOf(".kinopoisk.ru") + 1) == "kinopoisk.ru") || (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 == "nnmclub.to" || document.domain.substring(document.domain.indexOf(".nnmclub.to") + 1) == "nnmclub.to") || (document.domain == "nnm-club.me" || document.domain.substring(document.domain.indexOf(".nnm-club.me") + 1) == "nnm-club.me") || (document.domain == "roem.ru" || document.domain.substring(document.domain.indexOf(".roem.ru") + 1) == "roem.ru") || (document.domain == "tfilm.club" || document.domain.substring(document.domain.indexOf(".tfilm.club") + 1) == "tfilm.club") || (document.domain == "tfile.me" || document.domain.substring(document.domain.indexOf(".tfile.me") + 1) == "tfile.me") || (document.domain == "tfilm.me" || document.domain.substring(document.domain.indexOf(".tfilm.me") + 1) == "tfilm.me") || (document.domain == "tfilm.tv" || document.domain.substring(document.domain.indexOf(".tfilm.tv") + 1) == "tfilm.tv") || (document.domain == "vc.ru" || document.domain.substring(document.domain.indexOf(".vc.ru") + 1) == "vc.ru") || (document.domain == "virusinfo.info" || document.domain.substring(document.domain.indexOf(".virusinfo.info") + 1) == "virusinfo.info"))
  27. css += "body:not(#id) {padding-top:0!important}";
  28. 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 == "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"))
  29. css += "body:not(#id) {padding:0!important}";
  30. if (false || (document.domain == "101.ru" || document.domain.substring(document.domain.indexOf(".101.ru") + 1) == "101.ru"))
  31. css += " #layout {background:none!important;}";
  32. 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"))
  33. css += [
  34. "TD[height=\"70\"][style],#user2s[height=\"71\"],",
  35. " #userlinks[height=\"70\"] {display:none!important;}"
  36. ].join("\n");
  37. if (false || (document.domain == "4pda.ru" || document.domain.substring(document.domain.indexOf(".4pda.ru") + 1) == "4pda.ru"))
  38. css += [
  39. " #main {background-image:none!important;}",
  40. " *{background-image:url(\"\")!important;}",
  41. // !! " #header + #ruBlbZq {background-image:url()!important;}",
  42. // !! " #header + * {background-image:url()!important;}",
  43. " #header + #ruBlbZq {background-image: url(\"\") !important;}",
  44. " #main {padding: 0 !important;}",
  45. " .brand-page {display: none!important;}",
  46. " .brand-page {height:0!important;}",
  47. " body,#main,#rnd-replace-main {background: #E6E7E9!important}",
  48. " div#main>div.holder.no-hidden{padding:0 !important;}",
  49. " div#main>div.holder.no-hidden{width: inherit !important;}",
  50. " html>body>div#wrapper>div:nth-of-type(1)>div:nth-of-type(1)>header+div {background-image: url(\"\")!important;}",
  51. " article#content{width: 920px !important;}",
  52. // ! " #header~div:not(#contacts):not(#body) {background-image:none!important;background-color:#E6E7E9!important}",
  53. // ! " link~div[class$=\" \"] {display:none!important}",
  54. " div#main>div.holder.no-hidden{padding: 0 !important;}",
  55. " div#main>div.holder.no-hidden{width: inherit !important;}",
  56. " iv#main>div.holder.no-hidden>a{display: none!important;}",
  57. " div#main>div.holder.no-hidden>div.brand-page-counters{display: none!important;}",
  58. " div#ipbwrapper>div.borderwrap-header{display: none!important;}",
  59. " div.borderwrap-header>table{display: none!important;}",
  60. " div#dw-wrapper{display: none!important;}",
  61. " a.brand-page.main{display: none!important;}",
  62. " main{background-image: none !important;}",
  63. " div#wrapper>div:nth-of-type(1)>div:nth-of-type(1)>header+div>div:nth-of-type(4){display: none!important;}",
  64. " div#wrapper>div:nth-of-type(1)>div:nth-of-type(1)>header+div>div:nth-of-type(3){display: none!important;}"
  65. ].join("\n");
  66. if (false || (document.domain == "adultmult.tv" || document.domain.substring(document.domain.indexOf(".adultmult.tv") + 1) == "adultmult.tv"))
  67. css += ".adsbygoogle,#aswift_0_expand {display:none!important;}";
  68. if (false || (document.domain == "afisha.ru" || document.domain.substring(document.domain.indexOf(".afisha.ru") + 1) == "afisha.ru"))
  69. css += [
  70. ".page_block_content {width:100%!important;}",
  71. " .page_block_adv {background:none!important;}"
  72. ].join("\n");
  73. if (false || (document.domain == "ag.ru" || document.domain.substring(document.domain.indexOf(".ag.ru") + 1) == "ag.ru"))
  74. css += [
  75. " #new_logo_helper01 {top: 0!important;}",
  76. " #header-links {display: none!important;}"
  77. ].join("\n");
  78. if (false || (document.domain == "aif.ru" || document.domain.substring(document.domain.indexOf(".aif.ru") + 1) == "aif.ru"))
  79. css += "#container:not(#id) {margin-top:0!important}";
  80. if (false || (document.domain == "all-episodes.com" || document.domain.substring(document.domain.indexOf(".all-episodes.com") + 1) == "all-episodes.com"))
  81. css += " .wrapper {top:0!important;}";
  82. if (false || (document.domain == "allhockey.ru" || document.domain.substring(document.domain.indexOf(".allhockey.ru") + 1) == "allhockey.ru"))
  83. css += ".adr-top { height:0!important;min-height:0!important}";
  84. if (false || (document.domain == "aliexpress.com" || document.domain.substring(document.domain.indexOf(".aliexpress.com") + 1) == "aliexpress.com"))
  85. css += [
  86. " div.categories-main{ display: inline-block !important; width:auto !important; } dl.cl-item{display: inline-block !important;}",
  87. " div.index-page>div.user-helper-footer{position: relative !important; top: 120px !important; padding: 0 !important;}",
  88. " div.index-page>div.site-footer{position: relative !important; top: 120px !important; margin: 0 !important; padding: 0 !important;}",
  89. " div.index-page>div.footer-copywrite{position: relative !important; top: 120px !important;}",
  90. " div.index-page{height: inherit !important;}"
  91. ].join("\n");
  92. if (false || (document.domain == "animevost.org" || document.domain.substring(document.domain.indexOf(".animevost.org") + 1) == "animevost.org"))
  93. css += [
  94. "div[class^=\"headbg\"] {background-image:none!important;height:auto!important;}",
  95. " div[class^=\"headbg\"] > .menu {top:0px!important;}",
  96. " div[class^=\"headbg\"] > .menu .sar {bottom:auto!important;top:50px!important;z-index:100!important;}"
  97. ].join("\n");
  98. if (false || (document.domain == "anistar.ru" || document.domain.substring(document.domain.indexOf(".anistar.ru") + 1) == "anistar.ru"))
  99. css += [
  100. "body > .clear + div:not(.main),.news-fixed {display:none!important;}",
  101. " .wrapper.width1200 {margin-top:0 !important;}",
  102. " .drowmenu {z-index: 1999999999 !important;}"
  103. ].join("\n");
  104. if (false || (document.domain == "anti-malware.ru" || document.domain.substring(document.domain.indexOf(".anti-malware.ru") + 1) == "anti-malware.ru"))
  105. css += "#header-bg-enf {margin-top:0!important;}";
  106. if (false || (document.domain == "bestpersons.ru" || document.domain.substring(document.domain.indexOf(".bestpersons.ru") + 1) == "bestpersons.ru"))
  107. css += [
  108. "/* Fx compat fix */",
  109. " #userTabs {float:none!important;}"
  110. ].join("\n");
  111. if (false || (document.domain == "binmovie.org" || document.domain.substring(document.domain.indexOf(".binmovie.org") + 1) == "binmovie.org"))
  112. css += " #content {top:0!important;left:0!important;width:100%!important;margin-left:0!important;}";
  113. if (false || (document.domain == "bvedomosti.ru" || document.domain.substring(document.domain.indexOf(".bvedomosti.ru") + 1) == "bvedomosti.ru"))
  114. css += [
  115. ".art-Header {display:none!important;}",
  116. " #art-main {background-image:none!important;}",
  117. " .bg-top-menu {top:0!important;}"
  118. ].join("\n");
  119. if (false || (document.domain == "carambatv.ru" || document.domain.substring(document.domain.indexOf(".carambatv.ru") + 1) == "carambatv.ru"))
  120. css += " .content {background:none!important;padding:0!important;}";
  121. if (false || (document.domain == "cars.ru" || document.domain.substring(document.domain.indexOf(".cars.ru") + 1) == "cars.ru"))
  122. css += [
  123. "#main {margin-top:0!important;}",
  124. " A[href*=\"/adclick.php?bannerid=\"] {display:none!important;}"
  125. ].join("\n");
  126. if (false || (document.domain == "cinema-hd.ru" || document.domain.substring(document.domain.indexOf(".cinema-hd.ru") + 1) == "cinema-hd.ru"))
  127. css += ".wrap {padding-top:0!important}";
  128. if (false || (document.domain == "cxz.to" || document.domain.substring(document.domain.indexOf(".cxz.to") + 1) == "cxz.to") || (document.domain == "fs.to" || document.domain.substring(document.domain.indexOf(".fs.to") + 1) == "fs.to"))
  129. css += "div[id][class] + div[class]:not([id]):not([class=\"b-player-popup\"]),a[href*=\".js?\"][target=\"_blank\"],a[href^=\"//cdn.admixer.net/\"],.b-tab-item__edit-material ~ div[class^=\"b-\"]:not(.b-scroll-to):not(.b-clear),.b-iframe-player-wrap ~ div[class^=\"b-\"],.b-nowviewed ~ div[class^=\"b-\"]:not(.b-section-controls):not(.b-section-list) {position:fixed!important;top:-1000px!important}";
  130. if (false || (document.domain == "dota2.ru" || document.domain.substring(document.domain.indexOf(".dota2.ru") + 1) == "dota2.ru"))
  131. css += " body {background:black!important;}";
  132. if (false || (document.domain == "drive.ru" || document.domain.substring(document.domain.indexOf(".drive.ru") + 1) == "drive.ru"))
  133. css += "body>div {background:none!important;padding-top:0!important;}";
  134. if (false || (document.domain == "epravda.com.ua" || document.domain.substring(document.domain.indexOf(".epravda.com.ua") + 1) == "epravda.com.ua"))
  135. css += [
  136. " body {cursor:auto!important;}",
  137. " body>div[align=\"center\"] {width:auto!important;margin:0!important;}"
  138. ].join("\n");
  139. if (false || (document.domain == "firepic.org" || document.domain.substring(document.domain.indexOf(".firepic.org") + 1) == "firepic.org"))
  140. css += [
  141. "body {padding:0!important;background-image:none!important;}",
  142. " .container,.row {max-width:none!important;}",
  143. " .container {width:100%!important;}",
  144. " .row {padding:30px!important;margin:0px!important;}",
  145. " .span12 {clear:both}"
  146. ].join("\n");
  147. if (false || (document.domain == "fishki.net" || document.domain.substring(document.domain.indexOf(".fishki.net") + 1) == "fishki.net"))
  148. css += "#container {cursor:auto!important;}";
  149. if (false || (document.domain == "free-torrents.org" || document.domain.substring(document.domain.indexOf(".free-torrents.org") + 1) == "free-torrents.org"))
  150. css += [
  151. "#sidebar2 {padding-top:0!important;}",
  152. " #main-wrapper {width:100%!important;top:0!important;}"
  153. ].join("\n");
  154. if (false || (document.domain == "gamebomb.ru" || document.domain.substring(document.domain.indexOf(".gamebomb.ru") + 1) == "gamebomb.ru"))
  155. css += [
  156. "#ssdfsd,.dfgdjkfgh{background-image:none!important;}",
  157. " #content{padding-top:0!important;margin-top:0!important;}"
  158. ].join("\n");
  159. if (false || (document.domain == "gamer-info.com" || document.domain.substring(document.domain.indexOf(".gamer-info.com") + 1) == "gamer-info.com"))
  160. css += "#all-content-container {padding:0!important;}";
  161. if (false || (document.domain == "gastronom.ru" || document.domain.substring(document.domain.indexOf(".gastronom.ru") + 1) == "gastronom.ru"))
  162. css += [
  163. "body { cursor: auto !important;}",
  164. " #wrapper {max-width: auto !important;}"
  165. ].join("\n");
  166. if (false || (document.domain == "gidonline.club" || document.domain.substring(document.domain.indexOf(".gidonline.club") + 1) == "gidonline.club"))
  167. css += "#headerline {margin-top:0!important;}";
  168. if (false || (document.domain == "gidonlinekino.com" || document.domain.substring(document.domain.indexOf(".gidonlinekino.com") + 1) == "gidonlinekino.com"))
  169. css += " #headerline {margin-top:0!important;}";
  170. if (false || (document.domain == "goclips.tv" || document.domain.substring(document.domain.indexOf(".goclips.tv") + 1) == "goclips.tv"))
  171. css += " .video_content {height:auto!important;}";
  172. if (false || (document.domain == "goha.ru" || document.domain.substring(document.domain.indexOf(".goha.ru") + 1) == "goha.ru"))
  173. css += [
  174. "#full-brand-footer>div[style*=\"fixed\"], #head-tuppy>a {display:none!important;}",
  175. " #full-brand {background-image:none!important;}",
  176. " #head-tuppy {height: 7px!important;}"
  177. ].join("\n");
  178. if (false || (document.domain == "gotps3.ru" || document.domain.substring(document.domain.indexOf(".gotps3.ru") + 1) == "gotps3.ru"))
  179. css += "#Page {margin-top:0!important;}";
  180. if (false || (document.domain == "gstv.ru" || document.domain.substring(document.domain.indexOf(".gstv.ru") + 1) == "gstv.ru"))
  181. css += ".page-content {margin-top:0!important;}";
  182. if (false || (document.domain == "hdfilms.tv" || document.domain.substring(document.domain.indexOf(".hdfilms.tv") + 1) == "hdfilms.tv"))
  183. css += " #subheader{padding-top:1px!important;}";
  184. if (false || (document.domain == "iphones.ru" || document.domain.substring(document.domain.indexOf(".iphones.ru") + 1) == "iphones.ru"))
  185. css += "#contentShifter {height:127px!important}";
  186. if (false || (document.domain == "kino-dom.tv" || document.domain.substring(document.domain.indexOf(".kino-dom.tv") + 1) == "kino-dom.tv"))
  187. css += " #main {width: auto!important;}";
  188. if (false || (document.domain == "kino-serial.net" || document.domain.substring(document.domain.indexOf(".kino-serial.net") + 1) == "kino-serial.net"))
  189. css += "#header+div[style*=\"height\"] {height:90px!important}";
  190. if (false || (document.domain == "kinoafisha.spb.ru" || document.domain.substring(document.domain.indexOf(".kinoafisha.spb.ru") + 1) == "kinoafisha.spb.ru"))
  191. css += "#branding_wrapper {padding-right:0!important}";
  192. if (false || (document.domain == "kinobel.by" || document.domain.substring(document.domain.indexOf(".kinobel.by") + 1) == "kinobel.by"))
  193. css += ".bg-site {padding-top:0!important;}";
  194. if (false || (document.domain == "kinopoisk.ru" || document.domain.substring(document.domain.indexOf(".kinopoisk.ru") + 1) == "kinopoisk.ru"))
  195. css += [
  196. " body{background:none!important;}",
  197. " body{background:#C0C0C0!important;}",
  198. " html[style] {background-image: url()!important;}",
  199. " #top .png_block, #GoUpClickZone{background:url() !important;}",
  200. " #top {height:100px!important;}",
  201. " .master {top:1px!important;}",
  202. " .menu {top:1px!important;}",
  203. // !! выравниваем секцию поиск:
  204. " #top_form {top: 2px!important;}",
  205. " #top .png_block {top: 2px!important;}",
  206. // !! расширяем полезную площадь
  207. " #content_block, .contentBlock1, .shadow, #top, #top .png_block, .block_left_padtop{width:100% !important;}",
  208. " div[id\*=\"div_review_\"]{width:98% !important;}",
  209. " .brand_words, p[id\^=\"ext_text_\"], ._reachbanner_ {width:100% !important;}",
  210. " .reviewItem, .userReview, p[id\^=\"ext_text_\"][data-find], span._reachbanner_ {width:100% !important;}",
  211. " div#content_block.contentBlock1>table {width:95% !important;}",
  212. " div#content_block.contentBlock1>table>tbody[data-find]>tr[data-find] {width:95% !important;}",
  213. " #photoBlock {padding-left:20px !important;}",
  214. " div#nav_express {padding-left:40px !important;}"
  215. ].join("\n");
  216. if (false || (document.domain == "kinotochka.net" || document.domain.substring(document.domain.indexOf(".kinotochka.net") + 1) == "kinotochka.net"))
  217. css += ".center-box2 {margin-top:0!important}";
  218. if (false || (document.domain == "kinozadrot.net" || document.domain.substring(document.domain.indexOf(".kinozadrot.net") + 1) == "kinozadrot.net"))
  219. css += " body.brending {padding-top:180px!important;}";
  220. if (false || (document.domain == "krasview.ru" || document.domain.substring(document.domain.indexOf(".krasview.ru") + 1) == "krasview.ru"))
  221. css += " #dynamic-content{margin-top:0!important;}";
  222. 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"))
  223. css += " .b-branding__wrap {padding:0!important;}";
  224. if (false || (document.domain == "msn.com" || document.domain.substring(document.domain.indexOf(".msn.com") + 1) == "msn.com"))
  225. css += [
  226. "body {overflow: auto!important;}",
  227. " .promobanner {display: none!important;}"
  228. ].join("\n");
  229. if (false || (document.domain == "noob-club.ru" || document.domain.substring(document.domain.indexOf(".noob-club.ru") + 1) == "noob-club.ru"))
  230. css += "#header-new {margin-bottom:0!important;}";
  231. if (false || (document.domain == "online.anidub.com" || document.domain.substring(document.domain.indexOf(".online.anidub.com") + 1) == "online.anidub.com"))
  232. css += [
  233. ".background {background:none!important}",
  234. " .background > DIV[id^=\"b\"][class] {display:none!important;}"
  235. ].join("\n");
  236. if (false || (document.domain == "politobzor.net" || document.domain.substring(document.domain.indexOf(".politobzor.net") + 1) == "politobzor.net"))
  237. css += " .banner {height:90px!important;}";
  238. if (false || (document.domain == "povarenok.ru" || document.domain.substring(document.domain.indexOf(".povarenok.ru") + 1) == "povarenok.ru"))
  239. css += [
  240. ".car_content {margin:0!important;width:100%!important;}",
  241. " .car_recept {width:97%!important;}",
  242. " .cont_head, .cont_mid, .car_footer {background:none!important;}",
  243. " .car_header, .petushok, .cont_foot {display:none!important;}"
  244. ].join("\n");
  245. if (false || (document.domain == "promodj.com" || document.domain.substring(document.domain.indexOf(".promodj.com") + 1) == "promodj.com"))
  246. css += " #topbrandingspot {padding-top:0!important;}";
  247. if (false || (document.domain == "prophotos.ru" || document.domain.substring(document.domain.indexOf(".prophotos.ru") + 1) == "prophotos.ru"))
  248. css += [
  249. "body:not(#id) {",
  250. " padding-top: 130px!important",
  251. " }"
  252. ].join("\n");
  253. if (false || (document.domain == "riotpixels.com" || document.domain.substring(document.domain.indexOf(".riotpixels.com") + 1) == "riotpixels.com"))
  254. css += [
  255. "body {background-image:none!important;}",
  256. " .all-wrapper, .bottom-bar {top:0!important;}",
  257. " .bottom-bar, .action-menu {position:fixed!important;}"
  258. ].join("\n");
  259. if (false || (document.domain == "sc2tv.ru" || document.domain.substring(document.domain.indexOf(".sc2tv.ru") + 1) == "sc2tv.ru"))
  260. css += " #block-sc2tv_streams-0 {margin-top:0!important;}";
  261. if (false || (document.domain == "seasonvar.ru" || document.domain.substring(document.domain.indexOf(".seasonvar.ru") + 1) == "seasonvar.ru"))
  262. css += " body {background-color:#707070!important;}";
  263. if (false || (document.domain == "smotri.com" || document.domain.substring(document.domain.indexOf(".smotri.com") + 1) == "smotri.com"))
  264. css += " #wrapper>#all {margin-top:0!important;}";
  265. if (false || (document.domain == "smotri-filmi.net" || document.domain.substring(document.domain.indexOf(".smotri-filmi.net") + 1) == "smotri-filmi.net"))
  266. css += " .broda {margin-top:0!important}";
  267. if (false || (document.domain == "soccer.ru" || document.domain.substring(document.domain.indexOf(".soccer.ru") + 1) == "soccer.ru"))
  268. css += [
  269. "#beforecontent {display:none!important}",
  270. " #left {margin-top:15px!important}"
  271. ].join("\n");
  272. if (false || (document.domain == "sports.ru" || document.domain.substring(document.domain.indexOf(".sports.ru") + 1) == "sports.ru"))
  273. css += [
  274. "body.img-bg,#branding-layout {background:gray!important;padding-top:0!important}",
  275. " .pageLayout {top:0!important}"
  276. ].join("\n");
  277. if (false || (document.domain == "torrentom.com" || document.domain.substring(document.domain.indexOf(".torrentom.com") + 1) == "torrentom.com"))
  278. css += [
  279. "body, #footer_reklama {pointer-events: none!important}",
  280. " body > *:not(#footer_reklama), #footer_reklama > * { pointer-events: auto!important}"
  281. ].join("\n");
  282. if (false || (document.domain == "tort.fm" || document.domain.substring(document.domain.indexOf(".tort.fm") + 1) == "tort.fm"))
  283. css += "#topper_up {height:88px!important}";
  284. if (false || (document.domain == "tnt-online.ru" || document.domain.substring(document.domain.indexOf(".tnt-online.ru") + 1) == "tnt-online.ru"))
  285. css += [
  286. "/*self-ads for bitblock*/",
  287. " #contentShifter {display:none!important;}",
  288. " #all {top:15px!important;}"
  289. ].join("\n");
  290. if (false || (document.domain == "tree.tv" || document.domain.substring(document.domain.indexOf(".tree.tv") + 1) == "tree.tv"))
  291. css += ".wrapper {margin-top:0!important}";
  292. if (false || (document.domain == "unionpeer.org" || document.domain.substring(document.domain.indexOf(".unionpeer.org") + 1) == "unionpeer.org"))
  293. css += "#br_block,.bg_link {display:none!important}";
  294. if (false || (document.domain == "virusinfo.info" || document.domain.substring(document.domain.indexOf(".virusinfo.info") + 1) == "virusinfo.info"))
  295. css += "body {margin:0!important;}";
  296. if (false || (document.domain == "warfiles.ru" || document.domain.substring(document.domain.indexOf(".warfiles.ru") + 1) == "warfiles.ru"))
  297. css += "#header + .banner {height:100px!important;}";
  298. if (false || (document.domain == "vz.ru" || document.domain.substring(document.domain.indexOf(".vz.ru") + 1) == "vz.ru"))
  299. css += [
  300. " div.main-container{max-width: inherit !important;}",
  301. " div.main-menu>div.menu.sys_thumbs{overflow: inherit !important;}",
  302. " div.main-menu>div.menu.sys_thumbs>ul>li.thumb{margin-right: 0 !important;}",
  303. " div.menu{max-width: inherit !important;}"
  304. ].join("\n");
  305. if (false || (document.domain == "webfile.ru" || document.domain.substring(document.domain.indexOf(".webfile.ru") + 1) == "webfile.ru"))
  306. css += ".p_wrap {margin-top:0!important;}";
  307. if (false || (document.domain == "zaycev.net" || document.domain.substring(document.domain.indexOf(".zaycev.net") + 1) == "zaycev.net"))
  308. css += " .body-branding {background:none!important;padding-top:0!important;}";
  309. if (false || (document.domain == "zoneofgames.ru" || document.domain.substring(document.domain.indexOf(".zoneofgames.ru") + 1) == "zoneofgames.ru"))
  310. css += " .branding,div.logo {background:none!important;height:auto!important;}";
  311. if (false || (document.domain == "zoomby.ru" || document.domain.substring(document.domain.indexOf(".zoomby.ru") + 1) == "zoomby.ru"))
  312. css += [
  313. "#global_wrapper_cont {padding:0!important;}",
  314. " .wrapper {margin-top:60px!important;}"
  315. ].join("\n");
  316. if (false || (document.domain == "pogoda.mail.ru" || document.domain.substring(document.domain.indexOf(".pogoda.mail.ru") + 1) == "pogoda.mail.ru"))
  317. css += ".forecast-rb-bg {background-image:none!important}";
  318. if (false || (document.domain == "hi-tech.mail.ru" || document.domain.substring(document.domain.indexOf(".hi-tech.mail.ru") + 1) == "hi-tech.mail.ru"))
  319. css += "#portal-menu, .header-banner {margin:0!important}";
  320. if (false || (document.domain == "e.mail.ru" || document.domain.substring(document.domain.indexOf(".e.mail.ru") + 1) == "e.mail.ru"))
  321. css += "#leftcol-banners,.b-rb,.message-sent__hr.message-sent__hr_big,message-sent__hr.message-sent__hr_small,#preload_banner_1,.message-sent__ads,.message-sent__wrap:nth-of-type(4),.js-helper.direct-state {display:none!important;opacity:0!important;pointer-events:none!important;height:0!important;position:fixed!important;top:-1000px!important}";
  322. if (false || (new RegExp("^https?://anistar.ru/news(/(\\?.*)?)?$")).test(document.location.href))
  323. css += ".news:nth-child(1) {display:none!important;}";
  324. if (false || (document.domain == "ixbt.com" || document.domain.substring(document.domain.indexOf(".ixbt.com") + 1) == "ixbt.com"))
  325. css += [
  326. " body {background:white!important;}",
  327. " body {background-color:white!important}",
  328. " body{background-image: url()!important;}",
  329. " body{background-image: none !important;}",
  330. " div{background-image: url()!important;}",
  331. " .branding {padding-top: 5px!important;}",
  332. " body {padding-top: 5px!important;}",
  333. " .limiter{padding-top: 5px!important;}",
  334. " .main_tm_search_tool,.searchline {background: white!important;}",
  335. // !! для широкоформатных мониторов
  336. " .header_container, .bottom_container, #content, .content, .wrapper, .limiter {width: 100%!important;}",
  337. " div.limiter > div.wrapper > div.c_w > table > tbody > tr > td[align=\"center\"] > table[width=\"960\"] {width: 100%!important;}"
  338. ].join("\n");
  339. if (false || (document.domain == "nnmclub.to" || document.domain.substring(document.domain.indexOf(".nnmclub.to") + 1) == "nnmclub.to") || (document.domain == "nnm-club.me" || document.domain.substring(document.domain.indexOf(".nnm-club.me") + 1) == "nnm-club.me"))
  340. // ! console.log("es1");
  341. css += [
  342. "body{background:none !important;}",
  343. " body {padding-top:0px !important;}",
  344. " body{background-image:none !important;}",
  345. " body{padding:0 !important;}",
  346. " .skin-block{background-image:url(\" \") !important;}",
  347. " element.style{background-image:url(\"\") !important;}",
  348. " #brTop{background-image:url(\"\") !important;}",
  349. // !! --- широко
  350. // !! ".wrap{min-width:1030px;max-width:100% !important;}",
  351. " body>table[width=\"85%\"]{width:100% !important;}",
  352. " body>div.wrap{max-width:100% !important;}",
  353. " body>div.wrap{min-width:1030px !important;}"
  354. ].join("\n");
  355. 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") || (document.domain == "gismeteo.com" || document.domain.substring(document.domain.indexOf(".gismeteo.com") + 1) == "gismeteo.com"))
  356. css += [
  357. " #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,.content{background:url(http://www.refropkb.ru/Images/685414393.jpg)!important;background-attachment: fixed!important;}#weather-maps .fcontent{height:280px!important;}#weather-maps li{width:108px!important;} .wsection table{width: 690px!important;}",
  358. " .soft-promo, #soft-promo{display:none !important;}",
  359. // !!? " #graph{float:none !important;}", //проверить
  360. " div#post-container,div#pre-container,.soft-promo{background:url(\"\")!important;}",
  361. " td.content.editor{background:url(\"\")!important;} ",
  362. // !! оставим меню: снежинки вырезать, на бету сходить
  363. " #header, #header .fcontent{height:26px !important;}",
  364. " li#tourism_button{display:none !important;}"
  365. ].join("\n");
  366. if (false || (document.domain == "nnm.me" || document.domain.substring(document.domain.indexOf(".nnm.me") + 1) == "nnm.me"))
  367. css += [
  368. " html:not(#id),body:not(#id) {background-image:none!important}",
  369. " body{background: none !important;}",
  370. " body, #theme_8, #theme_2, #theme_3, #theme_4, #theme_5, #theme_6, #theme_7, #theme_1{background: url(\'\') !important;}",
  371. // !! " body {background-image:none !important;}",
  372. " body, div#page{background:gray !important;background-color:gray !important;}",
  373. " body, div#page, element.style, #brTop{background-image:url(\'\') !important;}",
  374. " body, div#page, .pirate-branding, .pb_button_play{background:none !important;}",
  375. " div#page, div#wrap{margin-top:0px !important;top: 0px !important;}",
  376. " div#optionspanel{margin-top:0px !important; margin-left:0px !important;}",
  377. " div#page>div[style*=\"width: 990px;\"][style*=\"height: 206px; position: relative;\"]{height: 0px !important;}",
  378. " .pb_top_img, .pirate-branding, a.pb_link, .pb_logo_brand, .pb_left_banner, .pb_right_banner, #b-logo{height: 0px !important;}",
  379. " .pirate-branding, .pb_button_play_big{top:0px !important;}",
  380. " body{padding-top: 0px !important;}",
  381. // !! " body:not(#id) {padding-top:0px !important}",
  382. " #mmmBanner{height: 0px !important;}",
  383. " .head_assn {height: 0px !important; width: 0px !important;}",
  384. " .head_assn .assn_logo {width: 0px !important; height: 0px !important; top: 0px !important; left: 0px !important; background: url(\" \") !important; }",
  385. " .head_assn .assn_slogan {width: 0px !important; height: 0px !important; top: 0px !important; left:0px !important; background: url(\" \") !important; }",
  386. " html{height: 0px !important;}",
  387. " body{click=(\'\')!important;}",
  388. // !! заполненяем всю ширину экрана
  389. " #wrap, htmlarea, text{width: 99% !important;}",
  390. " #scrollPanel{width: auto !important;}",
  391. " #cntnt{position: absolute !important; left: 0px !important; margin-top: 0px !important; margin-left: 0px !important;}",
  392. " #wrapper {width: auto !important;}",
  393. " #content{width: auto !important;}",
  394. " .categories{margin: 0 100px 10px !important; float: left !important;}",
  395. " body {text-align:center!important;}",
  396. " #page {display:inline-block !important; top:0px !important; margin-top:0 !important;}",
  397. " #wrap {text-align:initial !important;}"
  398. ].join("\n");
  399. 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"))
  400. css += [
  401. // ! site yandex
  402. // !!? ".adsrv {width:0px!important;min-width:0!important;max-width:0!important;",
  403. " .i-bem[style*=\'opacity:1!important\'] {width:0px!important;min-width:0!important;max-width:0!important;",
  404. " height:0!important;min-height:0!important;max-height:0!important;",
  405. " overflow:hidden!important;}",
  406. " .serp-header {margin-top: 0!important;}",
  407. " .b-top-wizard{width:1000px!important;} .b-body-items.b-serp-list{width:1000px!important;}",
  408. " /* Исправление для горизонтальной прокрутки на Погоде по выходным */",
  409. " .forecast-brief__item-temp-day { width: auto!important;}",
  410. // ! !! чистим maps.yandex
  411. " .ymaps-map{background:none !important;}",
  412. // " .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;}",
  413. " .ymaps-2-1-23-map,.ymaps-2-1-28-map-ru,.ymaps-2-1-30-hint__x,[class*=\"-copyright__\"]{background-image:url() !important;}",
  414. " .ymaps-2-1-23-map,.ymaps-2-1-28-map-ru,.ymaps-2-1-30-hint__x,[class*=\"-copyright__\"]{background:url(\'\') !important;}",
  415. // ! !! убрать все фоновые рисунки в картах
  416. // ! " ymaps{background-image:url() !important;}",
  417. " tv.yandex.ru##td[width=\"24%\"]{width:12%!important;}",
  418. " a{onmousedown=''!important;}",
  419. " a{onclick=''!important;}"
  420. ].join("\n");
  421. // !! 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"))
  422. if (false || (document.domain == "soft-club.me" || document.domain.substring(document.domain.indexOf(".soft-club.me") + 1) == "soft-club.me"))
  423. css += [
  424. // ! !! --- широко
  425. " .main,.main-wrap,.header,.header-main{width:100%!important;}",
  426. " div.all,div.all-wrap,.pageWidth{max-width:100%!important;width:100%!important;}",
  427. " article,.header,.header-main{width:100%!important;}",
  428. " div.content{width:80%!important;}div.sidebar1{width:18%!important;}"
  429. ].join("\n");
  430. if (false || (document.domain == "4seasons-ltc.com" || document.domain.substring(document.domain.indexOf(".4seasons-ltc.com") + 1) == "4seasons-ltc.com"))
  431. css += [
  432. "body{background-image:none !important;}",
  433. " body{font-family: Tahoma !important;}"
  434. ].join("\n");
  435. if (false || (document.domain == "80-e.ru" || document.domain.substring(document.domain.indexOf(".80-e.ru") + 1) == "80-e.ru"))
  436. css += [
  437. " div#ipbwrapper{margin: 0 !important;width: inherit !important;max-width: inherit !important;}"
  438. ].join("\n");
  439. if (false || (document.domain == "china-review.com.ua" || document.domain.substring(document.domain.indexOf(".china-review.com.ua") + 1) == "china-review.com.ua"))
  440. css += [
  441. "body{background:url()!important;}",
  442. " body{background-image:none !important;}",
  443. " body{background:none!important;}",
  444. " body{margin-top:0px!important;}"
  445. ].join("\n");
  446. if (false || (document.domain == "ag.ru" || document.domain.substring(document.domain.indexOf(".ag.ru") + 1) == "ag.ru"))
  447. css += [
  448. "body{background:none!important;} .layer_top {background:none!important;} .layer_bottom {background:none!important;} .cast_bg{background:none!important;}",
  449. " .contentbg {background-image:none!important;} #4iframe {background-image:none!important;} ",
  450. " #framescr{background-image:none!important;}"
  451. ].join("\n");
  452. if (false || (document.domain == "amovies.tv" || document.domain.substring(document.domain.indexOf(".amovies.tv") + 1) == "amovies.tv"))
  453. css += [
  454. // !! расширяем
  455. "article{width: 980px !important;}",
  456. " #vk_select {float:none !important;margin-left: 445px!important;}",
  457. " #vk_top,#vk_select {background:url()!important;}"
  458. ].join("\n");
  459. if (false || (document.domain == "apteka.ru" || document.domain.substring(document.domain.indexOf(".apteka.ru") + 1) == "apteka.ru"))
  460. css += [
  461. " div.wrapper_root>div.wrapper>section.middle{margin-bottom: 0 !important;}",
  462. " div.wrapper_root>div.wrapper>section.middle>div.container.clr{min-height: 180px !important;}",
  463. " div.wrapper_root>div.wrapper>section.middle>div.container.clr>div.content.bottom-content>section.items.items-tile.items-viewed{margin: 0!important;}",
  464. " div.wrapper_root>div.wrapper>section.middle>div.tabs.top-tabs.clr{margin-bottom: 0 !important;}"
  465. ].join("\n");
  466. if (false || (document.domain == "avito.ru" || document.domain.substring(document.domain.indexOf(".avito.ru") + 1) == "avito.ru"))
  467. css += " .bonprix-1{background: none !important;} ";
  468. if (false || (document.domain == "bash.im" || document.domain.substring(document.domain.indexOf(".bash.im") + 1) == "bash.im"))
  469. css += " span.csd{background:none !important;}";
  470. if (false || (document.domain == "best-cashback.ru" || document.domain.substring(document.domain.indexOf(".best-cashback.ru") + 1) == "best-cashback.ru"))
  471. css += [
  472. " [id=\"menu-osnovnoe-menyu\"]>[id^=\"menu-item-\"]>a.menu-item-link{color: black !important;}",
  473. " div#theme-page{top: 80px !important;}",
  474. " [class^=\"mk-header-\"]{background-color: lightgrey !important;}",
  475. " section#mk-footer{padding: 0 !important; top: 80px !important;}",
  476. " div#sub-footer{background-color: lightgrey !important;}"
  477. ].join("\n");
  478. if (false || (document.domain == "besplatnye-kupony.ru" || document.domain.substring(document.domain.indexOf(".besplatnye-kupony.ru") + 1) == "besplatnye-kupony.ru"))
  479. css += [
  480. " body{background: none !important; background-color: lightgrey !important;}",
  481. " div{width: inherit !important; margin: 0 !important;}",
  482. " div#site-container{border: none !important;}"
  483. ].join("\n");
  484. if (false || (document.domain == "bestrepack.net" || document.domain.substring(document.domain.indexOf(".bestrepack.net") + 1) == "bestrepack.net"))
  485. css += " div#body_container{padding: 0 !important;}";
  486. if (false || (document.domain == "bigpicture.ru" || document.domain.substring(document.domain.indexOf(".bigpicture.ru") + 1) == "bigpicture.ru"))
  487. css += [
  488. " div.content{padding: 0 !important;}",
  489. " div.podheader{width: 240px !important; float: right !important;}",
  490. " div.podheader-right{float: right !important;}"
  491. ].join("\n");
  492. if (false || (document.domain == "blogspot.ru" || document.domain.substring(document.domain.indexOf(".blogspot.ru") + 1) == "blogspot.ru") || (document.domain == "blogspot.com" || document.domain.substring(document.domain.indexOf(".blogspot.com") + 1) == "blogspot.com") || (document.domain == "blogspot.sk" || document.domain.substring(document.domain.indexOf(".blogspot.sk") + 1) == "blogspot.sk"))
  493. css += [
  494. " body{background-image:none !important;}",
  495. " body{background-image:url(\" \")!important;}",
  496. // !! --- расширим ---
  497. " .content-outer, .content-fauxcolumn-outer, .region-inner {max-width: none !important;}",
  498. " div#header-inner>div.descriptionwrapper{margin-bottom: 5px !important;}",
  499. " #outer-wrapper {width: 95% !important;}",
  500. " #main-wrapper {width: 95% !important;}"
  501. ].join("\n");
  502. if (false || (document.domain == "bookvoed.ru" || document.domain.substring(document.domain.indexOf(".bookvoed.ru") + 1) == "bookvoed.ru"))
  503. css += " .Fh{margin-top: 79px!important;}";
  504. if (false || (document.domain == "calend.ru" || document.domain.substring(document.domain.indexOf(".calend.ru") + 1) == "calend.ru"))
  505. css += " .pad, .main-l{width:95% !important;}";
  506. if (false || (document.domain == "clubupravdom.ru" || document.domain.substring(document.domain.indexOf(".clubupravdom.ru") + 1) == "clubupravdom.ru"))
  507. css += " *{background-image: none !important;}";
  508. if (false || (document.domain == "computerra.ru" || document.domain.substring(document.domain.indexOf(".computerra.ru") + 1) == "computerra.ru"))
  509. css += [
  510. " div.page.page-podl{padding-top: 0px!important;}",
  511. " div#under{width:auto!important;}",
  512. " a.link{font-weight:bold!important; font-family:Verdana!important;font-size: 12px!important;}",
  513. " div.column{max-width:80%!important;}"
  514. ].join("\n");
  515. if (false || (document.domain == "cont.ws" || document.domain.substring(document.domain.indexOf(".cont.ws") + 1) == "cont.ws"))
  516. css += [
  517. " body>div.content{width: 100% !important;}",
  518. " body>div.content>div{margin: 0 !important;}",
  519. " body>div.content{margin-left: 5px !important;}",
  520. " body>div.content{margin-right: 5px !important;}",
  521. " div.sidebar{width: 14% !important;}",
  522. " [class^=\"post\"]{width: 85% !important;}",
  523. " [class^=\"post\"]{max-width: 1880px !important; margin: 0 !important; padding: 0 !important;}",
  524. " div.post>[class^=\"article\"]{padding: 0 !important;}",
  525. " div#wp.author-bar2.wallpaper.plus{background-image: url() !important; padding: 0 !important;}",
  526. " div.author-bar2-inside{padding: 0 !important;}",
  527. " a.m_author{display: inline-block !important;}",
  528. " .plus .author-bar2-inside{color: #666 !important;}",
  529. " div.dark{background: url() !important;}",
  530. " .wallpaper .author-bar2-inside, .wallpaper .author-bar2-inside a, .wallpaper .author-bar2-inside textarea {color: inherit !important;}"
  531. ].join("\n");
  532. if (false || (document.domain == "crowdin.com" || document.domain.substring(document.domain.indexOf(".crowdin.com") + 1) == "crowdin.com"))
  533. css += " #user-cover-picture,#user-cover-picture-blurred{background:url()!important;}";
  534. 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"))
  535. css += [
  536. "body{background:none !important;}",
  537. " td{background-image:none !important;}"
  538. ].join("\n");
  539. if (false || (document.domain == "ebay-forum.ru" || document.domain.substring(document.domain.indexOf(".ebay-forum.ru") + 1) == "ebay-forum.ru"))
  540. 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;}";
  541. 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"))
  542. css += [
  543. "body{background:none !important;}",
  544. " body{background-image:none !important;}"
  545. ].join("\n");
  546. if (false || (document.domain == "ddlmkvhd.com" || document.domain.substring(document.domain.indexOf(".ddlmkvhd.com") + 1) == "ddlmkvhd.com"))
  547. css += [
  548. " body{background: none !important;}",
  549. " div.page-body-t{position: relative !important;}"
  550. ].join("\n");
  551. if (false || (document.domain == "ddlvillage.org" || document.domain.substring(document.domain.indexOf(".ddlvillage.org") + 1) == "ddlvillage.org"))
  552. css += [
  553. " div{background: none !important;}"
  554. ].join("\n");
  555. if (false || (document.domain == "f1news.ru" || document.domain.substring(document.domain.indexOf(".f1news.ru") + 1) == "f1news.ru"))
  556. css += [
  557. " div[id=\"bannerText\"]{border:0px!important;margin-left:10px!important;}",
  558. " body{background:url() top center no-repeat #000000 !important;}",
  559. // !! расширяем текстовое поле
  560. " div#textBlock{width:900px !important;}"
  561. ].join("\n");
  562. if (false || (document.domain == "facebook.com" || document.domain.substring(document.domain.indexOf(".facebook.com") + 1) == "facebook.com"))
  563. css += [
  564. " #contentArea {width: 750px !important;}",
  565. " .uiUfi {width: 650px !important;}",
  566. // !! " body {background:url(http://www.maxthon-fr.com/10ours/facebook/wb.jpg) fixed !important;}",
  567. // !! " #contentCol {background:url(http://www.maxthon-fr.com/10ours/facebook/wb.jpg) fixed !important;}",
  568. " div#profile_stream_composer {background-color:#C1D5F6;}",
  569. " #blueBar {background-color: transparent !important;}",
  570. " #headNav {background-color: #transparent !important;}",
  571. " .jewelButton {background-color: transparent !important;}",
  572. " #fbNotificationsFlyout {left: 50px !important;}",
  573. " .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;}",
  574. // !! " #pageNav a {color: #00ffff !important;display: inline-block;font-weight: bold;height: 22px;padding: 8px 10px 0px;text-decoration: none;}",
  575. " .UIImageBlock {color: #000000 !important;}",
  576. " .fcg {color: darkgreen !important;}",
  577. " .mts.uiAttachmentDesc.translationEligibleUserAttachmentMessage {color: black !important;}"
  578. ].join("\n");
  579. if (false || (document.domain == "fastpic.ru" || document.domain.substring(document.domain.indexOf(".fastpic.ru") + 1) == "fastpic.ru"))
  580. css += [
  581. " html, body {pointer-events: none!important; height: 110%!important }",
  582. " #mainContainer, #footerContainer, #content, #footer, #show-code-content { pointer-events: auto!important }",
  583. //??
  584. " html,body,#mainContainer,#footerContainer,#content,#footer {margin:0!important;width:100%!important;border-radius:0!important}",
  585. " #mainContainer>table {width:850px!important;margin:auto!important}",
  586. " #picContainer {float:none!important;margin:auto!important}",
  587. " html,body {cursor:auto!important}",
  588. " html,body {display:flex!important;flex-direction:column!important}",
  589. " #mainContainer {flex-grow:1!important}",
  590. " #mainContainer,#footerContainer {overflow:visible!important}",
  591. " #content,#footer {background-color:transparent!important}",
  592. " #content {display:flex!important;flex-grow:1!important;min-height:inherit!important}",
  593. //??
  594. " #logo-area{padding-top: 0px!important;}",
  595. " *{background:none !important;}",
  596. " *{background-image:none !important;}",
  597. " #footer-container {background-image:none!important;height:auto!important;}",
  598. " body > a {display:none!important;}",
  599. " div#show-code-content.rounded-corners{position: inherit!important;}",
  600. " div#foot-area.center.rounded-corners{position: inherit!important;}",
  601. " div#footer.center.rounded-corners{position: inherit!important;}",
  602. " .center {padding:0!important}",
  603. " div#right-bottom.rounded-corners{position: relative!important;margin-top:0px!important;height:0px!important;padding-top:5px!important;}",
  604. // !! всё - чёрным
  605. " *{color: black!important;}",
  606. " body{background: none!important;}"
  607. // " html {background-color:#171616!important;}"
  608. ].join("\n");
  609. if (false || (document.domain == "filmix.net" || document.domain.substring(document.domain.indexOf(".filmix.net") + 1) == "filmix.net"))
  610. css += " body{padding: 0px 0 0 0!important;}";
  611. if (false || (document.domain == "formulakino.ru" || document.domain.substring(document.domain.indexOf(".formulakino.ru") + 1) == "formulakino.ru"))
  612. css += [
  613. " div.backF>a>span{background-image:none !important; background:#fff !important;}",
  614. " div.vjs-poster{background:url()!important;}",
  615. " div.pagecontent{margin-top:0px!important;}",
  616. " div#wrapper{background:#fff!important;}"
  617. ].join("\n");
  618. if (false || (document.domain == "google.ru" || document.domain.substring(document.domain.indexOf(".google.ru") + 1) == "google.ru"))
  619. css += [
  620. " 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;}",
  621. " body[class=\"cP\"] tr td.Bu:last-child div.nH div.nH div.nH:first-child:hover {opacity:1;}",
  622. " body[class=\"cP\"] tr td.Bu:last-child div.nH {width: 0px!important;}",
  623. // ! расширяем выдачу в поиске
  624. " .center_col,#center_col {width:1000px!important; margin-left:10px !important; margin-right:10px !important;} .s {max-width:100% !important;}"
  625. ].join("\n");
  626. if (false || (document.domain == "ifmo.ru" || document.domain.substring(document.domain.indexOf(".ifmo.ru") + 1) == "ifmo.ru"))
  627. css += [
  628. " header.h-header, .b-header-pad{height: 100px !important;}"
  629. ].join("\n");
  630. if (false || (document.domain == "igromania.ru" || document.domain.substring(document.domain.indexOf(".igromania.ru") + 1) == "igromania.ru"))
  631. css += [
  632. // !! " *{background-image: none !important;}",
  633. " div.out_out, element.style {background-image: url() !important;}"
  634. ].join("\n");
  635. if (false || (document.domain == "inosmi.ru" || document.domain.substring(document.domain.indexOf(".inosmi.ru") + 1) == "inosmi.ru"))
  636. css += [
  637. " body{background-image:none !important;}",
  638. " body{background:url()!important;}",
  639. // !! поаккуратнее
  640. " .header{padding-top:0px!important;}",
  641. " #addbwr{margin-top:0px!important;}",
  642. // !! расширяем (если не надо - закомментировать (поставить воскл.знаки // ! перед след. строками )
  643. " .mainbox{width:95%!important;}",
  644. " .section{width:100%!important;}",
  645. " .floatleft{width:80%!important;}",
  646. " .floatleft.box3row{width:50%!important;}",
  647. " .floatleft.box3row3{width:50%!important;}",
  648. " .bodypage{width:100%!important; }",
  649. " .floatright{width:10%!important;}",
  650. " .article{width:100%!important; }",
  651. " .announce{width:80%!important; }"
  652. ].join("\n");
  653. if (false || (document.domain == "keeplinks.eu" || document.domain.substring(document.domain.indexOf(".keeplinks.eu") + 1) == "keeplinks.eu"))
  654. css += " div#header{background: none !important;}";
  655. if (false || (document.domain == "letitfilms.com" || document.domain.substring(document.domain.indexOf(".letitfilms.com") + 1) == "letitfilms.com"))
  656. css += [
  657. " body{background: url() !important; background-color: black !important;}",
  658. " div#container{width: inherit !important; margin: 0 !important;}",
  659. " div#container>div#main>*{padding: 0 !important;}",
  660. " div#container>div#main>aside{width: 20% !important;}",
  661. " div#container>div#main>div#content{width: 79% !important;}"
  662. ].join("\n");
  663. if (false || (document.domain == "livesport.ws" || document.domain.substring(document.domain.indexOf(".livesport.ws") + 1) == "livesport.ws"))
  664. css += [
  665. // !! убираем фон и баннер
  666. " body {background:none!important;color:#333!important;}",
  667. " body{background:url()!important;background-color:#000002!important;}",
  668. " body,.top-panel-wrap.fixed {background-image:url() !important;}",
  669. " body{background-image:none !important;}",
  670. " div[id=\"flash\"]{height: 0px !important;}"
  671. ].join("\n");
  672. if (false || (document.domain == "lostfilm.tv" || document.domain.substring(document.domain.indexOf(".lostfilm.tv") + 1) == "lostfilm.tv"))
  673. css += [
  674. // " body{background:#c0c0c0 !important;}",
  675. " .main_logo_link {margin-top:5px!important;background-color:transparent!important}",
  676. " .logo {margin-top:0!important;background-repeat:no-repeat;background-position:0 17px;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAAAmCAMAAAD0i1fJAAAB8lBMVEVMaXH/////////AAD/////////////AAD/////////////////////////////////////////////AAD/////////////////////////////////////////////////////////////////////////Cgr/////////jY3/////////////////AAD/////////AAD/////////cHD/////////AQH/////////////AAD/////////////////////////////////UFD/////bm7/////////////AAD/////AAD/////////////////////////////////////Bwf/////////////////////ZWX/////////FRX/////////////////RET/W1v/Zmb/////UVH/////LCz/////////////////Nzf/////Wlr/AAD/////////////////Li7/Ghr/////////////////////////AQH/AQH/AAD/AwP/CQn/AwP/////BQX/DQ3/////Cwv/Y2P/Fhb/Hh7/AAD/Nzf/IiL/VFT/CQn/JSX/FBT/////Jib/W1v/UFD/PT3/PDz/bW3/X1//amr/W1v/RET/UFD/a2v/bGz/ZWX/WVn/cXH///+wSnEyAAAApXRSTlMA1b3o5bDY6uSzrgS2yNPLwrvctLjK4NvGvvnR7M8C/c2oxLVQpev7wAEOpCT27dnt4rkFPOZJ9fEaQO8IHt4X6vhy7+oS8S+R86cHOjNtqyIMZa09mxf1N7KWauk6EOzrW3af7Orsf56h7G9gFEPrJet6hIhMjAYOKCzoVaNG1pApRmPHtKET4jMqCutTg6a7IOWZer5tm1Wj6p6t9tXSSzTCNx/HQ9oUAAAKzUlEQVR4XrSUjU/bVhDAz5VnRTRzisUcCPlqqQSJiGyFeSJR4oa6jEQVFCpYGFuooV27riulAmipUSVtYsvY1Hb97tbum/9zd7fIOMRBmpT8BNy7e/fuvZ8sAbfPErs70Enmeeg0tFIoTuU/OttMYWyLI8A5jlvQPdYSiQNkFTrJAM5MHCy01HMLSjWCF3pJDM9OWgmKAA/xVCJhQPfIDxMHt6CTZCM0cwmaKS4kUKqFTHHZpv4K6nJB7aZuhOi4LpIoQxMPI8MRP6rFZYfiOMAad3RTd35iIhKZ6LBuXwaHDjfrrkQm+KojZDIV1M3ggnRxOzKhdFM3Q1cdzEAnCeLQTLPug0yVb0LGbUN0MQJGcdmgsoW6vN9V3Qo+o9ph3SEcWo006WardE+1mojdyhcnm4jP9QwFg0NDqIsdmWq4m7rjFSTRWd09Gprx6j44qDDqChzDWpV6tG7qWuNI5DPoJJ/S0Mq2p3K6QtdYgRwcR75iYZPUTV1dtyw9c6xuam5yMn3yfwztsXRLr2yCSyGpY0WPbsHxupaOyNA9alEdaa8b35kZkehfi3lqY/oieEgvXi5v3+z1kB15kCoP9Pb2KTqq6XKQav1TALBsRqkkpcGPub1stjfbh7o6tkVRdwYLvlzaLpfP53cKwMD+h/7swxHucfkfqDmObZcq7XS3BhwrWmLwJclVcNmULIsUvFi11F4Un1wq2Tb+8m5mHgByXNGXwJdlxY5GbQN1badUcgYBNmwb57jojLuySqHGe99+7M8v96CZP7j6J9QMw3EM6zL4MXlp3GjCCq0DUxjQjRbE0mLqEq8conGkRrqOgal+vo2uRI0m6vKZJMAN0TgefTMFyK/XP/fl+kto5i0V/wKo1QOiGNB9dYtJsR4g6vTDiOYaEJsGp1j3YiymTnOnSPy3rbOuSLfYu210BWpVAOZxqhgIoS7NaMznawk3o4WzzbpfMHeP/r37pPnz7r/D4ru/UVetI7af7u1QnRHroWBfDANjrtPzVZX1uOaiGrVUjyflv1HW5aXTTlem3TDqBmjxAerW2yKKHFSF3vHyy/+4gPz+ipevnlwg9sHLKyo9wcWiaaqq6fjopq6ajLq0PhePL+9cVTlVggCwavByMz876mW9ALn10dHZ92hmvcybOwXSValirMBYKychPWgiEuriFarZj7oUld3G9KkzKhLYxnR2arcHe6lvlR9JwP1ryBtMiB+vEY/Aw/3fqPSadBVFMRXxa2hhylSI8Dw0eChx7qxAfI/26EJ/rlKjegNcciZfI/kh5NIx6hdQl688A/CcojYNDFw8QYfrzxvpWZ6lnACXT+4gb6DBozvEfTjktVtZ1LRwWKv76PYoWljTlClwyUvUK42cLMQ0JDALbbiJQzXFqxvWwojmB+qGKMqoyx2nUJeiVAMGCr00zyRdZoNSreTR/Qp5DA2+f0rpt3DICyrw914UBEkSzFbddZM2pLKnFD8tUW2wWEhS1M61/bo0VPPq4kFCaPm0OC6Xfp/qMYCaJGBhBGCV5suubh91hl3dNX5zJX6o+xPi6sJjSl+k3PyHK5g/5c89LcuCICutursCbWh58LAWFrAmb8WzFJR5aMMCDZW8ujgMkVvAUiyX7scoJFFXoMoA6tLGoKsbFDDXXN3RGLWNe3SvIN+56TdXiJ+hQeoZpc+AdQcJbQWOssEb8hh4icWouAGbEsXsbDtdapOfe3RlPigLPsi59BncjYVQV6auXtSlmHR19ygVVl3dJOX6oe6/fZiBS9tYHMff6vVKY7smZ3skSKVp7JHa0WMRLNPKoDAmc9c4u461MrleARF1yHQ6d+vUzcwbY8DB/uD9vi9p8tI2/cLIe9/f7/uSz17yCr74g/SE+brB/Go4+3ZJs9pXF7dQyOcLd7bHHxmFfCts6vDy++z5HT6YtyrddrLT6Tj9jR+9CyGLooibx13m9z6ujOntSn1JRjVNXxZvsxhr4Jp5OcRN5ml618fdyqH8t4BbnUlUBdzvNE+svRvO1hKJ6g1zcTOZQiFztzGGW6JCprARNrswMzZxZ8ZEzbNiW/4fAbeAu8wvsola0hBXCbeAYIpwYaR93Djs+YaPq6L8r4ALIOD6+5kgwzusypdVmnxyJ4/T6VwuPd9koxpQIV3YCZsNNKd1fPJpBH2loUJl2cNFNiPgPswhmH8bgasgLRNuDkEH9yGpPq6Uw7MEuEWUf4nGZVcJ0pw7flqj8c25O1lXVVoYjzaifSqouR9hcw+mWsGpJefUMaW9I2CDZ0XcNHKFKFwLYZNw0xh0GDvAtfjXENfGepkDH1dG+b8puP8DsfbCR197M3zNZLlYLKpnyIbU5v5G2NwoQvucoGfT8cKVz2dyvCD3vTaebQi4KpzcSgRulqqyRu9MEYoz1sTV9HF1TNMBron571Nw2RMwcud8Bi/28Ds+skxTlk17k43olHxTToZNCb3yqTfb3Hq1Qvp4fLy6uCGbJO3IxUW2KOLKCKoRuM8MZBXClRFsES4MzcctyWSrTR83hrbfpuF+TZBmbmn0GRvtn9J13dRoZeuIjWhHg4oPRO+RqpmaZu6wcS23TbQfM+iMmjT5QMDlNylG4SY1kkW4JoK2d3MlwIVdDHAVlP+chnt+Cd7vNLhP1/vXwi7GSObY0bxqKjFNMQ9FrynHYkrMumATdCgrSsw7TM+oSzGbAq6mUFL+GIEbj1E2RbgaBWM64ZKhWD7uQKNHkXd83GyMVvt1Gi42lR9WT4F9U/b9RQ1/ObHMRaQFPUop8O16YB3FLW49YxP0wbQsS75g0An6YicCLl/LjMKVLJJBuAoGwMU16+P2Edd83PUUynem4jLsau2aXeHyKbDrUjaLta3uaviFPtDIz8bOfN6ltsWdJpukMytLC7nvfoMvqS8HuDypReHaWZJDuBaCJca2sVgqwKV4NhbgOpjfnY77BifUl2/8V0j0eylPsU5376Dh6cdm3eZutn/Md/PZS91ta9Ft6rtLIe0+PLRQ65fdJQ2e3Fs/otIscHlSicRFNU64WQwGhIur4+O2eXrbx43T1MhPx72uEujlFXA/i/5m33AcB/8cwxiiG8YOW1Qc19T7eyd9m1og/n/elPSw4ine6m388xRf0Ei2dF16z3FpGcd6HYGrIywRLs/tEy7u1QlwDbItARdtBcL9+ol0PhGXzZHJtXYb8utdo5PsdJJhKausmRqaKSPpDjupHiIHqbF+Xtzyjuk4TbyABdwjh0bJbCQuOluEy9v6hAsj/tjH5ekAV8LyGcKdq9VqM7eTca9rLm3tioW1eWLEJ2i1fKiMespzxnEnBowe8/Q+qGc5bgfDVBRuCVWbscc80SZcXCUft8tXD3BbmKcJ90tiZuby3WRcNufiVl+wUb06sS0nLoXV6bGLk1QyMAyp8ZBxNTvSmJy48KP1mpq9EMd1F1yNwN1vSVJLJ1x0tQj3EIYd4PL0oY+rU1lSBdxqYmYc97P7Nn9hE7T7avu0WxK03++XThfYveZAt7lK7Q+AdXH1SqUkqlLpbj9ggpZ63QH3bY5L/TSM2t02qiXCLWEA3Ark4/K6HuzugKYDhXCfEGfk7t7eTwS/QuMqL8wKWiAtl/EhPlrf2tq692BX+GFGp6ClzYVZoRruKWMSDKHJrfQEbtvQKIfq/h28tmV8n09JZXaOyzUbFaooB/oJNupKs/CUb4kAAAAASUVORK5CYII=)}",
  677. " body,.logo>.up {background:none!important;background-color:#1c1e1f!important}",
  678. " div>div>a>div[style\*=\"height\"] {display:none!important;}",
  679. // " .prof,.user_menu_link,.wh {color:white!important;}",
  680. " .prof,.user_menu_link,.wh,.logo>.up {color:white!important}",
  681. " .prof,.logo {height:80px!important}",
  682. " .logo>a {text-decoration:underline!important}",
  683. " body{background:none!important;}",
  684. " body{background-image:none !important;}",
  685. " body{background:gray!important;}",
  686. " div[class=\"mid\"]{background:LightGrey!important;}",
  687. // !! ==== и меняем на читаемый цвет
  688. " div[class=\"user_avatar\"]{color:black !important;}",
  689. " span[class=\"wh\"]{color:black !important;}",
  690. " a[href*=\"\/my.php\"]{color:black !important;}",
  691. " a[href*=\"\/messages.php\"]{color:black !important;}",
  692. " a[href*=\"bogi.ru\/logout.php\"]{color:black !important;}",
  693. // !! расширяем полезную площадь
  694. " body>div#MainDiv>div[style^=\"width:1005px;\"]{margin-left:10px !important; width:100% !important;}",
  695. " div[style^=\"width:497px;\"]{width:58% !important;}",
  696. " body>div[style^=\"width:1005px;\"]{margin-left:10px !important; width:100% !important;}",
  697. " div[style^=\"width:498px;\"]{width:58% !important;}",
  698. " div[style*=\"background:#FFFFFF;display:block;padding:10px;float:left;overflow-x:hidden;width:350px;\"]{width:100% !important;}"
  699. ].join("\n");
  700. if (false || (document.domain == "mail.ru" || document.domain.substring(document.domain.indexOf(".mail.ru") + 1) == "mail.ru"))
  701. css += [
  702. " body,.forecast-rb-bg,.b-bg{background-image: none!important;}",
  703. " .SearchForm,.form,.txt1,.txt2,.txt3,.people1,.people2,.people3,.GRcorrect, .GRSpellingCorrect, .GRspelling {background: url('')!important;}"
  704. ].join("\n");
  705. if (false || (document.domain == "ncrypt.in" || document.domain.substring(document.domain.indexOf(".ncrypt.in") + 1) == "ncrypt.in"))
  706. css += [
  707. " body{background: none !important;}",
  708. " div#wrapper{margin: 0 0 0 0 !important;}"
  709. ].join("\n");
  710. 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"))
  711. css += [
  712. // !! "div {background-image:none !important;}",
  713. // !! "div {background:url()!important;}",
  714. // !! "div[class^=\"prl_slide_\"] {background:url()!important;}"
  715. "div[class=\"anonym_login\"]{width: 100% !important;}"
  716. ].join("\n");
  717. if (false || (document.domain == "overclockers.ru" || document.domain.substring(document.domain.indexOf(".overclockers.ru") + 1) == "overclockers.ru"))
  718. css += [
  719. " #main{background:none!important;background:#FFF!important;}",
  720. " div[id=\"main\"]>div[id=\"adw\"]{height:0px!important;}",
  721. " div[id=\"main\"]>div[class=\"box1\"]{height:0px!important;}",
  722. " div[id=\"main\"]>div:nth-of-type(1){height:0px!important;}",
  723. " #mainplace>table>tbody>tr:first-child,.needblock {display:none!important;}",
  724. " #wrapper {width:100%!important;}",
  725. " #main {padding-top:0!important;}"
  726. ].join("\n");
  727. if (false || (document.domain == "playground.ru" || document.domain.substring(document.domain.indexOf(".playground.ru") + 1) == "playground.ru"))
  728. css += "#foundationWrapper {background:#373737!important}";
  729. if (false || (document.domain == "pikabu.ru" || document.domain.substring(document.domain.indexOf(".pikabu.ru") + 1) == "pikabu.ru"))
  730. css += [
  731. " div.paral>a>div{background:url()!important;}",
  732. " div.paral>a>div{height:64px!important;}",
  733. " table#header_t {margin-top: 0px !important;}",
  734. " \\!! расширяем полезную площадь",
  735. " .b-story__content, .b-story__content_type_text {margin-left:5px !important; width: 800px !important; max-width: 800px !important;}"
  736. ].join("\n");
  737. if (false || (document.domain == "piter.tv" || document.domain.substring(document.domain.indexOf(".piter.tv") + 1) == "piter.tv"))
  738. css += [
  739. " body{background-image:none !important;}"
  740. ].join("\n");
  741. if (false || (document.domain == "politikus.ru" || document.domain.substring(document.domain.indexOf(".politikus.ru") + 1) == "politikus.ru"))
  742. css += [
  743. " body{background-image:none !important;}",
  744. " body{background:url()!important;}",
  745. // !! расширяем (если не надо - закомментировать (поставить воскл.знаки // ! перед след.четырьмя строками )
  746. // " #main_content_holder{width:100%!important; }",
  747. // " #left{width:80%!important; }",
  748. // " .holder, div.block, .content, #dle-content{width:100% !important; }",
  749. // " .fullstory{width:95% !important; }"
  750. // !! доработанный вариант от Buba5473
  751. " div#header{width: inherit !important; margin: 0 !important;}",
  752. " div#header>div.holder{width: inherit !important; margin: 0 !important;}",
  753. " div#main_content_holder{width: inherit !important; margin: 0 !important;}",
  754. " div#main_content_holder>div#maintpl>div.holder{width: inherit !important; margin: 0 !important;}",
  755. " div#main_footer_holder{width: inherit !important; margin: 0 !important;}",
  756. " div#main_footer_holder>div.holder{width: inherit !important; margin: 0 !important;}",
  757. " div#main_content{margin: 0 !important;}",
  758. " div#right{margin: 0 !important; float: none !important; width: inherit !important;}",
  759. " div#left{width: 80% !important;}"
  760. ].join("\n");
  761. if (false || (document.domain == "pikabu.ru" || document.domain.substring(document.domain.indexOf(".pikabu.ru") + 1) == "pikabu.ru"))
  762. css += [
  763. "div.paral>a>div{background:url()!important;}",
  764. " div.paral>a>div{height:64px!important;}",
  765. " table#header_t {margin-top: 0px !important;}"
  766. ].join("\n");
  767. if (false || (document.domain == "pleer.com" || document.domain.substring(document.domain.indexOf(".pleer.com") + 1) == "pleer.com"))
  768. css += [
  769. " div#main.clearfix>div#container>div#content{margin: 0 !important;}",
  770. " 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;}",
  771. " 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;}"
  772. ].join("\n");
  773. 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"))
  774. css += [
  775. " .brand_bg{background-image:none !important;}",
  776. " .base-page_wrapper {width:auto!important; padding:0!important}",
  777. " .content{padding-top:0px !important;}"
  778. ].join("\n");
  779. if (false || (document.domain == "rambler.ru" || document.domain.substring(document.domain.indexOf(".rambler.ru") + 1) == "rambler.ru") || (document.domain == "autorambler.ru" || document.domain.substring(document.domain.indexOf(".autorambler.ru") + 1) == "autorambler.ru"))
  780. css += [
  781. // !! из старого, режет почту ".b-left-column .b-left-column__wrapper{margin:0 !important;}",
  782. " div[class=\"appWindow\"]{right:0px!important;}",
  783. // !! --- чистим фон
  784. " body, html {background-image:url(\' \')!important; background: #f7f7f7 !important; }",
  785. " div.b-header, element.style, .topcover{background-image:url(\' \')!important; background: #bdbdbd !important; }",
  786. " header.header{background-image:url(\' \')!important; background: #bdbdbd !important; }",
  787. " .region-back, .main-page__background-wrap {background: none !important; background-image:url(\' \')!important; background:url(\' \')!important;}",
  788. " .sl, .sl_holder, .width.p16.tnav, .promo_def{background-image:url(\' \')!important; background: #bdbdbd !important; }",
  789. // !?##.b-informers__link{color:#030303 !important; }
  790. // !! --- расширяем полезную площадь страницы
  791. " .footer__wrap, .grid, .article, .nav__wrap, .j-metrics__views-out, .j-article__bounding, .j-statistics__cluster, .popup__wrap {width: 95% !important;}",
  792. " .grid, .article__inner.wide {margin-left: 50px !important;margin-right: 50px !important;}",
  793. " body, .body, .l-nav, .article-slide, .article__head, .main-wrapper, .main-wrapper main.root, .main-wrapper main.root section.content {max-width: 100% !important; width: 100% !important;}",
  794. " .l-columns, .l-column-15, .l-column-16-5, .b-topic-body {width: 100% !important;}",
  795. " .l-container, .b-topic-show__main, .mixednews__inner, .sizefix {width: 95% !important;}",
  796. " .article__inner.narrow {margin-right: 3% !important;}",
  797. " .action-panel, .content {margin-right: 3% !important; margin-left: 3% !important;}",
  798. " section.standalone-news section.main{padding: 0 !important;}",
  799. " .l-right-column-wrapper, .description-serial__container, .column, .card-full {padding-right: 0 !important;}",
  800. " table.r--main, .article-item, .b-root-layout__inner, .news-item-layout, .page-base, .card-full {max-width: 100% !important; width: 100% !important;}",
  801. " .appWindowWithBanner, .appSearchBar{right: 0px !important;}",
  802. " .appWindow {width: 100% !important;}",
  803. " .grid_18{width: 70% !important;}",
  804. " .container, .seasons-links, .l-content{margin-right: 20px !important; margin-left: 20px !important; width: 100% !important;}",
  805. " .tvguide-wrapper, .article-layout-wrapper {width: 95% !important;}",
  806. " .left-side, .left-column, .left-column.js-main-column, .main-content {width: 100% !important;}",
  807. " .seasons-links__slider-container._with-all-link{width: 85% !important;}",
  808. " .b-topic-show__content iframe, .b-topic-show__text img, .b-topic-show__image img {width: auto !important;}",
  809. " .preview {width: 70% !important; background: #fdfdfd !important;}",
  810. " .preview img, .preview>img {width: auto !important; hight: auto !important;}"
  811. ].join("\n");
  812. if (false || (document.domain == "rbc.ru" || document.domain.substring(document.domain.indexOf(".rbc.ru") + 1) == "rbc.ru"))
  813. css += " .article__content {margin-right: 0px !important;}";
  814. if (false || (document.domain == "riper.am" || document.domain.substring(document.domain.indexOf(".riper.am") + 1) == "riper.am"))
  815. css += [
  816. "#octo-set{background-image:none!important;padding-top:0!important;}",
  817. " #main-wrapper{width:auto!important;}",
  818. " body{background-image: none!important;} ",
  819. " body{background:none!important;}",
  820. " #main-wrapper{top:10px!important;}",
  821. // !! cкрыть заголовок
  822. " #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;}"
  823. ].join("\n");
  824. 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"))
  825. css += [
  826. "*{background:none!important;}",
  827. " *{background:url('')!important;}",
  828. " *{background:silver!important; color:black!important;}",
  829. " 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; }"
  830. ].join("\n");
  831. if (false || (document.domain == "rusnext.ru" || document.domain.substring(document.domain.indexOf(".rusnext.ru") + 1) == "rusnext.ru"))
  832. css += [
  833. // !! расширяем
  834. " .top-div{min-height: 30px !important;}",
  835. " .art-sheet {width: 100% !important;}",
  836. " .art-nav{width: 96% !important;}",
  837. " .region-content, span.field-content{width: 95% !important;}",
  838. " .panels-flexible-region, .panels-flexible-region-3-center, .panels-flexible-region-last, .panels-flexible-3-inside, .panel-flexible, .front-top-list, .view-id-front_news, .section-list{width: 100% !important;}"
  839. ].join("\n");
  840. if (false || (document.domain == "ruspravda.info" || document.domain.substring(document.domain.indexOf(".ruspravda.info") + 1) == "ruspravda.info"))
  841. css += [
  842. "body{background:white!important;}",
  843. " table#header_t {margin-top: 0px !important;}"
  844. ].join("\n");
  845. if (false || (document.domain == "rustorka.com" || document.domain.substring(document.domain.indexOf(".rustorka.com") + 1) == "rustorka.com"))
  846. css += " .topmenu{margin-top:25px !important;}";
  847. 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"))
  848. css += [
  849. // !! оформление от zuefhrf
  850. " div#brTop {background-image: url(\" \") !important;}",
  851. " div#ws div#sidebar{top: 0px !important;}",
  852. " div#ws div#sidebar{right: 8px !important;}",
  853. " div#ws div#sidebar div.sideblock{margin-top: 0px !important;}",
  854. " div#ws div#content{right: 6px !important;}",
  855. " h3{text-align: left !important;}"
  856. ].join("\n");
  857. if (false || (document.domain == "rutracker.org" || document.domain.substring(document.domain.indexOf(".rutracker.org") + 1) == "rutracker.org") || (document.domain == "rutracker.net" || document.domain.substring(document.domain.indexOf(".rutracker.net") + 1) == "rutracker.net"))
  858. css += [
  859. " .branding #page_container {background-image: url(\" \") !important;}",
  860. " body.branding{-webkit-transform: scaleX(1) !important;}"
  861. ].join("\n");
  862. if (false || (document.domain == "safety-gate.me" || document.domain.substring(document.domain.indexOf(".safety-gate.me") + 1) == "safety-gate.me"))
  863. css += [
  864. // ! !! --- широко
  865. " .main,.main-wrap,.header,.header-main{width:100%!important;}",
  866. " div.all,div.all-wrap,.pageWidth{max-width:100%!important;width:100%!important;}",
  867. " article,.header,.header-main{width:100%!important;}",
  868. " .xbBoxed,.pageContent{max-width:100%!important;}",
  869. " div.content{width:80%!important;}div.sidebar1{width:18%!important;}"
  870. ].join("\n");
  871. if (false || (document.domain == "samlab.ws" || document.domain.substring(document.domain.indexOf(".samlab.ws") + 1) == "samlab.ws"))
  872. css += [
  873. "div.box.main {width: auto; !important;}",
  874. " div#right {width: 2px; !important;}"
  875. ].join("\n");
  876. if (false || (document.domain == "samlib.ru" || document.domain.substring(document.domain.indexOf(".samlib.ru") + 1) == "samlib.ru"))
  877. css += [
  878. "body {font-family: sans-serif !important;line-height: 140% !important;color: #B2B2B2 !important;background: #3A3E46 !important;}",
  879. " font {color: #B2B2B2 !important;}",
  880. " table, td, td font {color: #BEBEBE !important;background-color: #555C66 !important;}",
  881. " a:link {color: #9DD7FF !important;}",
  882. " a:visited {color: #EAB6FF !important;}",
  883. " a:hover {color: #F0B2B2 !important;}",
  884. " dl {margin-top: 1em !important;}"
  885. ].join("\n");
  886. if (false || (document.domain == "securitylab.ru" || document.domain.substring(document.domain.indexOf(".securitylab.ru") + 1) == "securitylab.ru"))
  887. css += [
  888. " #content #left{margin-left: 0px!important;max-width: 1000px!important;}",
  889. // !! логотип
  890. " div#header{height:00px!important;background-color:white!important;} div#MAIN_MENU{top:0px!important;}"
  891. ].join("\n");
  892. if (false || (document.domain == "sportbox.ru" || document.domain.substring(document.domain.indexOf(".sportbox.ru") + 1) == "sportbox.ru"))
  893. css += [
  894. " body{background:none!important;padding-top: 0px!important;}",
  895. " .sb_c_topmed_olymp, .gold, .silver, .bronze {background:none!important;}"
  896. ].join("\n");
  897. if (false || (document.domain == "sports.ru" || document.domain.substring(document.domain.indexOf(".sports.ru") + 1) == "sports.ru"))
  898. css += [
  899. " body.img-bg,#branding-layout {background:gray!important;}",
  900. " body.img-bg,#branding-layout {padding-top:0!important;}",
  901. " .kaspersky, .overall {background:none!important;}",
  902. " .kaspersky, .pageLayout {top: 0px!important;}"
  903. ].join("\n");
  904. if (false || (document.domain == "tfile.me" || document.domain.substring(document.domain.indexOf(".tfile.me") + 1) == "tfile.me"))
  905. css += [
  906. " body{background:url()!important;}",
  907. " body{background-image: none !important;}",
  908. " div#brTop{background-image:url(\'\') !important;}",
  909. " element.style{background:url()!important;}",
  910. " element.style, #skin_crown{background-image:url()!important;}",
  911. " body{background:#D4D4D4 !important;}",
  912. " body{padding:0 !important;}",
  913. " table#home_c{width: inherit !important;}",
  914. " [id^=\"top_\"]{width: inherit !important;}",
  915. " body{padding-top:0px !important;}",
  916. // !! расширяем
  917. " #table_reduser, #head, #foot_links{width:98% !important;}",
  918. " #top_tools {padding-left:0!important}"
  919. ].join("\n");
  920. if (false || (document.domain == "torrent-tv.ru" || document.domain.substring(document.domain.indexOf(".torrent-tv.ru") + 1) == "torrent-tv.ru"))
  921. css += [
  922. " body {background-image:none!important;padding-top: 0px!important;}",
  923. " div#main-wrapper {top:auto!important;}",
  924. " div.news-text {width:auto!important;}",
  925. " div[class^=\"usual-header\"] {width:126%!important;}",
  926. " div[class=\"usual\"] {width:132%!important;}",
  927. " div[class^=\"usual-content\"] {width:99%!important;}"
  928. // !!
  929. // !! " body>div:nth-of-type(1) {background:url()!important;}",
  930. // !! " body {background:gray!important;}",
  931. ].join("\n");
  932. if (false || (document.domain == "turbobit.net" || document.domain.substring(document.domain.indexOf(".turbobit.net") + 1) == "turbobit.net"))
  933. css += " html {background:none!important;}";
  934. if (false || (document.domain == "velolive.com" || document.domain.substring(document.domain.indexOf(".velolive.com") + 1) == "velolive.com"))
  935. css += " body {background:url() !important;}";
  936. if (false || (document.domain == "vesti.ru" || document.domain.substring(document.domain.indexOf(".vesti.ru") + 1) == "vesti.ru"))
  937. css += [
  938. " .bottom_bg {background: none !important;}",
  939. " body, .head, .all_wrap {background: url(\" \") !important;}"
  940. ].join("\n");
  941. if (false || (document.domain == "vipfiles.nu" || document.domain.substring(document.domain.indexOf(".vipfiles.nu") + 1) == "vipfiles.nu"))
  942. css += [
  943. " div.loginformbox{background: none !important;}",
  944. " div.tophhhhheader{background: none !important; padding: 0 !important; height: 75px !important;}",
  945. " div.tophhhhheader>div.item1{height: 10px !important;}",
  946. " div.tophhhhheader>div.item2{float: left !important; width: 500px !important;}",
  947. " div.wrapper{margin: 0 !important; width: inherit !important;}",
  948. " div.wrapwide.topheadwide{background: none !important;}"
  949. ].join("\n");
  950. if (false || (document.domain == "dns-shop.ru" || document.domain.substring(document.domain.indexOf(".dns-shop.ru") + 1) == "dns-shop.ru"))
  951. css += " div.wrapper{width: auto !important;}";
  952. if (false || (document.domain == "yaplakal.com" || document.domain.substring(document.domain.indexOf(".yaplakal.com") + 1) == "yaplakal.com"))
  953. css += [
  954. " body{background:none !important;}",
  955. " #footer{background:url()!important;}",
  956. " #footer{background-image:none !important;}",
  957. " #footer,#top-line {background:none!important;padding:0!important;}",
  958. " #header,#footer {background-color:skyblue!important;}",
  959. " #content{max-width:none !important;}"
  960. ].join("\n");
  961. if (false || (document.domain == "zaycev.net" || document.domain.substring(document.domain.indexOf(".zaycev.net") + 1) == "zaycev.net"))
  962. css += [
  963. " div[class=\"body-branding\"]{background:grey!important; padding-top: 0px!important; padding: 5px!important;}",
  964. " div[class=\"body-gaps\"]{max-width:100%!important;}"
  965. ].join("\n");
  966. if (false || (document.domain == "zalil.su" || document.domain.substring(document.domain.indexOf(".zalil.su") + 1) == "zalil.su"))
  967. css += [
  968. " body{background:none !important;}",
  969. " body{background-color:gray !important;}",
  970. " body{background-image:none !important;}"
  971. ].join("\n");
  972. if (false || (document.domain == "taker.im" || document.domain.substring(document.domain.indexOf(".taker.im") + 1) == "taker.im"))
  973. css += [
  974. // !! скрываем рекламные ссылки (СПАМ) в тексте
  975. " a[href^=\"/phpBB2/goto/http://www.ebay.com/sch/\"][rel=\"nofollow\"]{color:#333!important; text-decoration: none !important; pointer-events: none !important;}"
  976. ].join("\n");
  977. if (typeof GM_addStyle != "undefined") {
  978. GM_addStyle(css);
  979. } else if (typeof PRO_addStyle != "undefined") {
  980. PRO_addStyle(css);
  981. } else if (typeof addStyle != "undefined") {
  982. addStyle(css);
  983. } else {
  984. var node = document.createElement("style");
  985. node.type = "text/css";
  986. node.appendChild(document.createTextNode(css));
  987. var heads = document.getElementsByTagName("head");
  988. if (heads.length > 0) {
  989. heads[0].appendChild(node);
  990. } else {
  991. // no head yet, stick it whereever
  992. document.documentElement.appendChild(node);
  993. }
  994. }
  995. }());
  996.  
  997. // позаимствовано у lainverse (https://greasyfork.org/ru/scripts/809-no-yandex-ads)
  998. // Удаляет рекламу из поиска Яндекс
  999. (function(){
  1000. 'use strict';
  1001. // var lct = location.href;
  1002. // if(lct.match(/^https?://(news\.yandex\.|(www\.)?yandex\.[^/]+/(yand)?search[/?])/)) {
  1003. // Generic ads removal and fixes
  1004. (function(s){
  1005. if (s) s.style.marginTop='0';
  1006. })(document.querySelector('.serp-header'));
  1007. (function(s){
  1008. while(s = document.querySelector('.serp-adv__head+.serp-item'))
  1009. s.parentNode.removeChild(s);
  1010. })();
  1011. (function(s){
  1012. for (var l = 0; l < s.length; l++) s[l].parentNode.removeChild(s[l]);
  1013. })(document.querySelectorAll(['#adbanner',
  1014. '.serp-adv',
  1015. '.b-spec-adv',
  1016. 'div[class*="serp-adv__"]',
  1017. '.footer_distro_yes'].join(',')));
  1018.  
  1019. // Search ads
  1020. function removeAds() {
  1021. var s = document.querySelectorAll(['.serp-block',
  1022. '.serp-item',
  1023. '.search-item'].join(','));
  1024. for (var l = 0; l < s.length; l++) {
  1025. var i = s[l].querySelector(['.label',
  1026. '.serp-item__label',
  1027. '.document__provider-name'].join(','));
  1028. if (!i) continue;
  1029. if (i.textContent.indexOf('Реклама') > -1 || i.textContent.indexOf('Яндекс.Директ') > -1){
  1030. s[l].parentNode.removeChild(s[l]);
  1031. console.log('Ads removed.');
  1032. }
  1033. }
  1034. }
  1035.  
  1036. // News ads
  1037. function removeNewsAds() {
  1038. var s = document.querySelectorAll(['.story[id]',
  1039. '.document[id]',
  1040. '.story__group[id]'].join(','));
  1041. for (var l = 0; l < s.length; l++)
  1042. if (window.getComputedStyle(s[l]).position === 'absolute') {
  1043. s[l].parentNode.removeChild(s[l]);
  1044. console.log('Ads removed.');
  1045. }
  1046. }
  1047. // News fixes
  1048. function removePageAdsClass() {
  1049. if (document.body.classList.contains("b-page_ads_yes")){
  1050. document.body.classList.remove("b-page_ads_yes");
  1051. console.log('Page ads class removed.');
  1052. }
  1053. }
  1054.  
  1055.  
  1056. // Attaches observer to the page elements which Yandex updates via AJAX to display new search or news results
  1057. function pageUpdateObserver(func, obj, params) {
  1058. if (obj)
  1059. new MutationObserver(func).observe(obj,(params?params:{childList:true}));
  1060. }
  1061.  
  1062. if (window.location.hostname.search(/^news\./i) === 0) {
  1063. pageUpdateObserver(removeNewsAds, document.querySelector('BODY'));
  1064. pageUpdateObserver(removePageAdsClass, document.body, {attributes:true, attributesFilter:['class']});
  1065. removeNewsAds();
  1066. removePageAdsClass();
  1067. } else {
  1068. pageUpdateObserver(removeAds, document.querySelector('.main__content'));
  1069. removeAds();
  1070. }
  1071. // }
  1072. })();
  1073. // Удаляет рекламу из вконтакта
  1074. (function(){
  1075. var lct = location.href;
  1076. if(lct.match(/^https?:\/\/(.*\.)?(vkontakte\.ru|vk\.com)\/.*/)) {
  1077. // Generic ads removal
  1078. (function(s){
  1079. for (var l = 0; l < s.length; l++) s[l].parentNode.removeChild(s[l]);
  1080. })(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'));
  1081. }
  1082. }());
  1083. }());