Add css things

This commit is contained in:
jun7 2018-01-19 11:11:17 +09:00
parent aa4fe240f7
commit a0bde7558f
3 changed files with 18 additions and 5 deletions

View File

@ -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.
@ -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.

BIN
cssoutput

Binary file not shown.

View File

@ -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);
}