diff --git a/README.md b/README.md index 5277cc9..fbff27f 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ most of code of this are from https://github.com/GNOME/epiphany/tree/master/embe ### usage: - make - make install + make + make install then copy **easylist.txt** to ~/.config/wyebadblock/ @@ -15,6 +15,9 @@ copy **easylist.txt** to ~/.config/wyebadblock/ wyebadblock only checks 'easylist.txt' +Check it on `http://simple-adblock.com/faq/testing-your-adblocker/`. +Testing element hiding is not supported. + ### Disabling Setting chars(whatever) to the env value $DISABLE_ADBLOCK disables adblock. @@ -36,7 +39,7 @@ On Arch Linux ### vimb sudo ln -s /lib/wyebrowser/adblock.so /lib/vimb - + There is a PKGBUILD file. see PKGBULDs dir. For luakit, just change the strings in the file 'vimb' -> 'luakit'. @@ -45,3 +48,13 @@ For luakit, just change the strings in the file 'vimb' -> 'luakit'. mkdir -p ~/.config/lariza/web_extensions ln -s /lib/wyebrowser/adblock.so ~/.config/lariza/web_extensions + + +## Element Hiding +Per domain CSS hider rule in not supported and this may crash webkit2gtk though. + + make cssoutput + ./cssoutput > user.css + +And add the user.css to your browser as user css. +On wyeb, just copy the user.css to the conf dir. diff --git a/cssoutput b/cssoutput index dc607dd..35fb426 100755 Binary files a/cssoutput and b/cssoutput differ diff --git a/ephy-uri-tester.c b/ephy-uri-tester.c index 36c8cfd..056a2c9 100644 --- a/ephy-uri-tester.c +++ b/ephy-uri-tester.c @@ -1017,8 +1017,8 @@ int main(int argc, char **argv) ephy_uri_tester_load(uri_tester); g_print(uri_tester->blockcss->str); - g_print("\n\n\n\n\n\n\n\n"); - g_print(uri_tester->blockcssprivate->str); + g_print("\n\n\n\n{display: none !important}\n\n\n\n"); +// g_print(uri_tester->blockcssprivate->str); exit(0); }