coliv_aja
Пользователь
Репутация: +5/-0
Offline
Сообщений: 82
|
|
« Ответ #800 : 10 июня 2015, 01:49:39 » |
|
This is a rule that I've been used for years to remove common antiblock overlay without any problem. ( http://antiblock.org/) You may add it to the Anti-AntiBlock rule. \<style\>\#\w+\{position\:fixed\s*\!important\;position:absolute\;[^\r\n]*
|
|
|
|
|
Михаил
|
|
« Ответ #801 : 10 июня 2015, 13:17:46 » |
|
Thanks. I'll add this rule.
As is discribed in doc's (sorry but doc's are only in russian), "Replace text" rules are slowest ones. It is preferred to not use it if there are other possible rule types can make same job.
Write please ifI there is possible to use other rule types for blocking this antiblock script.
|
|
|
|
|
coliv_aja
Пользователь
Репутация: +5/-0
Offline
Сообщений: 82
|
|
« Ответ #802 : 12 июня 2015, 02:13:49 » |
|
I'm afraid there will be no other rule that can achieve the same thing. The source is looks something like this. While the "id" is dynamically generated. <style>#rae1{position:fixed !important;position:absolute;top:-3px;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:3px;width:103%;height:98%;background-color:#fff;opacity:.95;filter:alpha(opacity=95);display:block;padding:20% 0}#rae1 *{text-align:center;margin:0 auto;display:block;filter:none;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none}#rae1 ~ *{display:none}</style>
|
|
|
|
|
Михаил
|
|
« Ответ #803 : 13 июня 2015, 00:13:43 » |
|
As I investigate there are cases when this antiblock.org script fills more than one line. In that cases this "Replace text" rule breaks a page. Sorry, but due to this reason I abstain from adding this rule to Anti-AntiBlock module.
|
|
|
|
|
|
LordMerlin
|
|
« Ответ #805 : 13 июня 2015, 09:28:17 » |
|
fishki.net совсем перекосило. Правилами из файла antiad
|
|
|
|
|
zakoul
|
|
« Ответ #806 : 13 июня 2015, 09:54:37 » |
|
https://mvd.ruУдаление по class/id Файл AntiAd: \Abn- Сильно много вырезает....
|
|
|
|
|
YuS
Ветеран
Репутация: +30/-4
Offline
Сообщений: 701
crazy
|
|
« Ответ #807 : 13 июня 2015, 10:47:46 » |
|
Михаил, в модуле работы фильтров adblock запрятался какой-то баг: вот здесь вырезает содержимое результатов поиска. Отключил все фильтры, кроме адблок. В адблок было подключено всего два файла (они в аттаче), поочередное отключение ничего не дает, но отключение обоих файлов приводит к положительному результату. Изучение логов тоже ничего не дает, написано, что вставлены правила CSS: но по факту вставляется одно правило только из одного файла (отключение этого правила ничего не дает), если он подключен.
|
|
|
|
|
Михаил
|
|
« Ответ #808 : 13 июня 2015, 15:11:46 » |
|
Apparently, it was due to special character on username. Recently I change the username from "L" to "^L". I share the connection with my phone with username "C". Because CM doesn't follow HC user name order and I want "L" to be appear first, so I change it to "^L". After I remove additional character it's working again.
Check version 2.07.6 please and report if bug is gone. Добавлено: 13 Июнь 2015, 15:09:09
https://mvd.ruУдаление по class/id Файл AntiAd: \Abn- Сильно много вырезает.... Поправил. Добавлено: 13 Июнь 2015, 15:10:17
fishki.net совсем перекосило. Правилами из файла antiad
Подрегулировал. Добавлено: 13 Июнь 2015, 15:10:30
Михаил, в модуле работы фильтров adblock запрятался какой-то баг: вот здесь вырезает содержимое результатов поиска. Там баговый сервер говорит, что файл HTML, а на самом деле это JS. Научил СМ распознавать такие попытки обмана. Проверьте.
|
|
|
|
|
YuS
Ветеран
Репутация: +30/-4
Offline
Сообщений: 701
crazy
|
|
« Ответ #809 : 13 июня 2015, 16:54:09 » |
|
Проверьте.
Спасибо! Теперь работает. Добавлено: 13-06-2015, 19:49:53
Check version 2.07.6 please
А где есть эта версия? У меня всё та же 2.07.3 CM_Whats_new.txt - Версия 2.07.6 Content_Master.lua - @version 2.07.3
|
|
|
|
|
Михаил
|
|
« Ответ #810 : 13 июня 2015, 17:09:39 » |
|
Это она и есть. Я в номере забыл цифру поменять. Сейчас исправил цифру.
|
|
|
|
|
coliv_aja
Пользователь
Репутация: +5/-0
Offline
Сообщений: 82
|
|
« Ответ #811 : 14 июня 2015, 16:47:46 » |
|
As I investigate there are cases when this antiblock.org script fills more than one line. In that cases this "Replace text" rule breaks a page. Sorry, but due to this reason I abstain from adding this rule to Anti-AntiBlock module.
Yes I'm afraid that will be the case. We can limit it to style tag. But that will left the antiblock message, even though it will not overlaying the entire page(usually appear at the top or bottom of content). <style\>\#\w+\{position\:fixed\s*\!important\;position:absolute\;.*?\<\/style>
Can you give me an example of the sites that used multi-line antiblock script. I notice the style usually followed by the message, so maybe we can do something like this. But it's not entirely safe. <style\>\#\w+\{position\:fixed\s*\!important\;position:absolute\;.*?\<\/div>
Check version 2.07.6 please and report if bug is gone.
Yep, it seems fixed. Thanks.
|
|
|
|
|
Михаил
|
|
« Ответ #812 : 14 июня 2015, 17:31:39 » |
|
I know no real sites with this antiblock script. I'm trying to check/uncheck different options on http://antiblock.org/?p=v3 and see the resulting code. In some cases this code includes more then one line. How to edit a bit this rule before adding it to AntiAntiBlock module? <style(?>\ type="text/css")?+>\#(\w++)\{position:fixed\ !important;position:absolute;(?>.*?</style>)(?>(?=<div\ id="\g-1")(?&html_element))?+(?=<script)(?&html_element)
|
|
|
|
|
coliv_aja
Пользователь
Репутация: +5/-0
Offline
Сообщений: 82
|
|
« Ответ #813 : 15 июня 2015, 09:06:39 » |
|
I know no real sites with this antiblock script. I'm trying to check/uncheck different options on http://antiblock.org/?p=v3 and see the resulting code. In some cases this code includes more then one line. How to edit a bit this rule before adding it to AntiAntiBlock module? <style(?>\ type="text/css")?+>\#(\w++)\{position:fixed\ !important;position:absolute;(?>.*?</style>)(?>(?=<div\ id="\g-1")(?&html_element))?+(?=<script)(?&html_element)
It's ok as long its work. I've question, in case of performance, which one is better. Combining a few rules to one, or just split it up. For example: (?:adcash|1phads|onclickads|exoclick|admaster|adspaces|mochiads|adsnative|plugrush|bongacash|medleyads)\.
or adcah\. 1phads\. onclickads\. ...
I saw your antiad rules it was very long list. An it slow when loading to browser. I've old rules that I want to convert to CM2 with respected tag and such. How if I split my rules to a few files, does it any different than using only one file?
|
|
|
|
|
Михаил
|
|
« Ответ #814 : 15 июня 2015, 09:27:46 » |
|
I've question, in case of performance, which one is better. Combining a few rules to one, or just split it up. Splitted rules produce an incredibly large performance. CM greatly optimizes them in initialization state. I saw your antiad rules it was very long list. An it slow when loading to browser. CM uses Google's "AngularJS" library for representing this lists in browser when CM Options are shown ( http://local.cm/options/). And AngularJS perfomance for large lists is poor. Now Angular 2.0 is in development (alpha) state. This version shall have a great performance. But no time of workable version is known.
|
|
|
|
|
coliv_aja
Пользователь
Репутация: +5/-0
Offline
Сообщений: 82
|
|
« Ответ #815 : 15 июня 2015, 11:13:25 » |
|
What do you mean by "large performance"? Do you mean splitted rules is slower than combined rules?
|
|
|
|
|
YuS
Ветеран
Репутация: +30/-4
Offline
Сообщений: 701
crazy
|
|
« Ответ #816 : 15 июня 2015, 11:52:51 » |
|
What do you mean by "large performance"?
Effectiveness
|
|
|
|
|
coliv_aja
Пользователь
Репутация: +5/-0
Offline
Сообщений: 82
|
|
« Ответ #817 : 16 июня 2015, 10:04:38 » |
|
Effectiveness
Well, combined rules doesn't less lethal than splitted rules. They're both effective. In efficiency we have to do benchmark. Splitted rules can be more efficient if it's short. On long list it's hard to decide, it may differ for every condition. Combined rules doing less job but take long run. Splitted rules doing more job but less in time for each.
|
|
|
|
|
Михаил
|
|
« Ответ #818 : 16 июня 2015, 10:43:42 » |
|
No. In CM splitted rules are always have MUCH better performance than combined. The longer is list, the more effective splitted rules are. CM have internal mechanizm that greatly optimize splitted rules.
|
|
|
|
|
ve51
Новичок
Репутация: +0/-0
Offline
Сообщений: 15
|
|
« Ответ #819 : 18 июня 2015, 22:13:21 » |
|
Фильтр ContentMaster на ebay блокирует закладку "Доставка и оплата"
|
|
|
|
|
|