From a0bde7558fe10e8f5e4327d3a54e1d578fa90f17 Mon Sep 17 00:00:00 2001 From: jun7 Date: Fri, 19 Jan 2018 11:11:17 +0900 Subject: [PATCH] Add css things --- README.md | 19 ++++++++++++++++--- cssoutput | Bin 35600 -> 35600 bytes ephy-uri-tester.c | 4 ++-- 3 files changed, 18 insertions(+), 5 deletions(-) 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 dc607dd9efc40790a836dcd0ea53532906ca3696..35fb4268554e3e72673820f050cd594dd9139522 100755 GIT binary patch delta 782 zcmXw1Ye70q8^ZI#-9A+k2CTh9Lc}bBh$#7~z7OPX1 z-AF3)M_}?o3Wb+23=VA{ZPOFZ}xDbV(mAO=Q`P?mDodUIg-R(pv0`iIY_5bNu3}W5ZejQ z@KbUIG~tdEHSELE6g^oM;medwep9xt?6l+W1fglLdNY${V1bSGBqrYf1FFYB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.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); }