Update readme and a comment of css

This commit is contained in:
jun7 2018-06-09 23:21:26 +09:00
parent 5e45e93c46
commit a3c023e648
2 changed files with 5 additions and 4 deletions

View File

@ -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 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 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 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. [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 sudo make install
then then
copy **easylist.txt** to ~/.config/wyebadblock/ copy the **easylist.txt** to ~/.config/wyebadblock/
wyebadblock only checks 'easylist.txt' 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. And add the user.css to your browser as user css.
For wyeb, just copy the user.css to the conf dir. 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 ## Disabling

2
ab.c
View File

@ -219,7 +219,7 @@ int main(int argc, char **argv)
g_print("%s", tester->blockcss->str); g_print("%s", tester->blockcss->str);
g_print("\n\n\n\n{display:none !important}\n" g_print("\n\n\n\n{display:none !important}\n"
"\n/*\n" "\n/*\n"
"{height:0 !important; visibility:hidden !important;}\n" "{opacity:0 !important; position:absolute !important;}\n"
"\n*/\n"); "\n*/\n");
//g_print(tester->blockcssprivate->str); //g_print(tester->blockcssprivate->str);
} }