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

@ -6,8 +6,8 @@ most of code of this are from https://github.com/GNOME/epiphany/tree/master/embe
### usage: ### usage:
make make
make install make install
then then
copy **easylist.txt** to ~/.config/wyebadblock/ copy **easylist.txt** to ~/.config/wyebadblock/
@ -15,6 +15,9 @@ copy **easylist.txt** to ~/.config/wyebadblock/
wyebadblock only checks 'easylist.txt' wyebadblock only checks 'easylist.txt'
Check it on `http://simple-adblock.com/faq/testing-your-adblocker/`.
Testing element hiding is not supported.
### Disabling ### Disabling
Setting chars(whatever) to the env value $DISABLE_ADBLOCK disables adblock. Setting chars(whatever) to the env value $DISABLE_ADBLOCK disables adblock.
@ -36,7 +39,7 @@ On Arch Linux
### vimb ### vimb
sudo ln -s /lib/wyebrowser/adblock.so /lib/vimb sudo ln -s /lib/wyebrowser/adblock.so /lib/vimb
There is a PKGBUILD file. see PKGBULDs dir. There is a PKGBUILD file. see PKGBULDs dir.
For luakit, just change the strings in the file 'vimb' -> 'luakit'. 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 mkdir -p ~/.config/lariza/web_extensions
ln -s /lib/wyebrowser/adblock.so ~/.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); ephy_uri_tester_load(uri_tester);
g_print(uri_tester->blockcss->str); g_print(uri_tester->blockcss->str);
g_print("\n\n\n\n\n\n\n\n"); g_print("\n\n\n\n{display: none !important}\n\n\n\n");
g_print(uri_tester->blockcssprivate->str); // g_print(uri_tester->blockcssprivate->str);
exit(0); exit(0);
} }