From a3c023e6483ffb9245a77fe364982e08b8e31ada Mon Sep 17 00:00:00 2001 From: jun7 Date: Sat, 9 Jun 2018 23:21:26 +0900 Subject: [PATCH] Update readme and a comment of css --- README.md | 7 ++++--- ab.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a96614f..364fb8a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ An adblock extension for [wyeb](https://github.com/jun7/wyeb), also webkit2gtk b most of code of this are from https://github.com/GNOME/epiphany/tree/master/embed/web-extension wyebab is shared by clients, So even nowadays, browsers spawn procs for each windows, -wyebab keeps single server proc that makes less memory and less cpu times. +wyebab keeps single server proc that makes less RAM and less CPU times. For example, while epiphay's webproc uses 240M RAM for [a page](http://simple-adblock.com/faq/testing-your-adblocker/), wyeb uses 160M for the same page. @@ -18,7 +18,7 @@ Don't worry, wyebab wills quit automatically when there is no client and 30 secs sudo make install then -copy **easylist.txt** to ~/.config/wyebadblock/ +copy the **easylist.txt** to ~/.config/wyebadblock/ wyebadblock only checks 'easylist.txt' @@ -84,7 +84,8 @@ Per domain CSS hider rule is not supported And add the user.css to your browser as user css. For wyeb, just copy the user.css to the conf dir. -Make sure the huge css takes mamory a lot. +Make sure the huge css takes RAM a lot. +Also it is often used to detect adblock. ## Disabling diff --git a/ab.c b/ab.c index cf1b886..9a9c042 100644 --- a/ab.c +++ b/ab.c @@ -219,7 +219,7 @@ int main(int argc, char **argv) g_print("%s", tester->blockcss->str); g_print("\n\n\n\n{display:none !important}\n" "\n/*\n" - "{height:0 !important; visibility:hidden !important;}\n" + "{opacity:0 !important; position:absolute !important;}\n" "\n*/\n"); //g_print(tester->blockcssprivate->str); }